Service and Action creation
Services are the core components that partners create to enable Snapshot to access and respond to their users' needs. When a service is created, it can have multiple actions associated with it.
Creating a Service
Partners can create a service by defining its basic information and purpose. This service will act as a container for various actions that can be performed.
Services page
Creating a new service
Service details
Adding Actions to a Service
Each service can have multiple actions. An action represents a specific operation that can be performed within the service. When creating an action, the following information is required:
- Action Name: A descriptive name for the action.
- Loader Text (optional): Text to display while the action is loading.
- Action Description: A brief explanation of what the action does.
- Input Type: The type of input required for the action.
- Input Description: A description of the input expected from the user.
- Endpoint Method: The HTTP method used for the API call (e.g., GET, POST, PUT, DELETE).
- Endpoint: The URL of the API endpoint to be called.
- Headers (if any): Any additional headers required for the API call.
- Payload (if any): The data to be sent with the request, if applicable.
- Response Description: A description of the expected response from the API.
By providing this information for each action, partners can create a comprehensive set of operations that Snapshot can use to interact with their services and fulfill user requests.