Rest API PlantaPop! (0.1.0)

Download OpenAPI specification:Download

chats

Operations about chat

Create a new chat

Authorizations:
bearerAuth
Request Body schema: application/json
id
string <uuid>
member1
string <uuid>
member2
string <uuid>
createdAt
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "member1": "27964b4a-cd68-4072-a10f-a06f8987b88f",
  • "member2": "26b2184f-f114-485e-aa8d-a57e41ef525f",
  • "createdAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "code": 0,
  • "message": "string"
}

Get a specific chat

Authorizations:
bearerAuth
path Parameters
id
required
string^[0-9a-fA-F]{24}$

Responses

Response samples

Content type
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "member1": "27964b4a-cd68-4072-a10f-a06f8987b88f",
  • "member2": "26b2184f-f114-485e-aa8d-a57e41ef525f",
  • "createdAt": "2019-08-24T14:15:22Z"
}

Delete a specific chat

Authorizations:
bearerAuth
path Parameters
id
required
string^[0-9a-fA-F]{24}$

Responses

Response samples

Content type
application/json
{
  • "code": 0,
  • "message": "string"
}

Get user's notifications

Authorizations:
bearerAuth
path Parameters
userId
required
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]