Deploying a REST API
Beam apps can be deployed using the RestAPI trigger.
Input and output fields are serialized and validated by the Beam.Types module.
Here’s an example of what
this might look like:
Calling the API
After deploying the API, you’ll be able to copy a cURL request to hit the API. In your app dashboard, click Call API.
Example Request
Example Response
Beam Types
The beam library includes several basic data types that can be used to
validate your inputs against.
Types can be labeled optional by passing in required=falsebeam.types.Boolean(required=false)beam.types.Dataframe(required=false)