POST
/
api
/
meows
curl --request POST \
  --url https://maas-alpha.vercel.app/api/meows \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "breed": "<string>",
  "image": "<string>",
  "personality": "Playful"
}'
{
  "message": "<string>",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "breed": "<string>",
    "image": "<string>",
    "personality": "Playful",
    "owner_id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201
application/json

Resource created successfully

The response is of type object.

POST
/
api
/
meows
curl --request POST \
  --url https://maas-alpha.vercel.app/api/meows \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "breed": "<string>",
  "image": "<string>",
  "personality": "Playful"
}'
{
  "message": "<string>",
  "data": {
    "id": "<string>",
    "name": "<string>",
    "breed": "<string>",
    "image": "<string>",
    "personality": "Playful",
    "owner_id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201
application/json

Resource created successfully

The response is of type object.