Creating an API Endpoint
If an API is considered the messenger passes data from your backend to your front-end, each individual API endpoint defines the specific command that messenger knows.
API Endpoints have a "method" or HTTP Verb associated them and the most common are POST, GET, PUT, PATCH, and DELETE. These verbs correspond to the CRUD (Create, Read, Update, Delete) operations, respectively. When you create an API endpoint, you must first define what type of verb it is.
- Authentication - Creates an API endpoint with authentication logic
auth/loginAllows a user to login and generates a JWE token that lets them login.
auth/signupAllows a user to sign up to your app and generates a token for them to login.
auth/mereturns the authenticated user
- Upload Content - Creates an API endpoint that allows you to upload Images, videos or attachments.
- Import Query - You import any API endpoint you've exported using the three-dot menu
- Start from scratch - Define the API name, Verb, and description from scratch