-
Notifications
You must be signed in to change notification settings - Fork 1
Posts
Finn Lippok edited this page Apr 9, 2023
·
7 revisions
Authorization Bearer {JWT-Token}
Endpoint: POST /api/v1/post
{
"title": "String",
"content": "String"
}{
"id": "UUID",
"title": "String",
"content": "String",
"user_id": "UUID",
"user_name": "String",
"date": "Datetime",
"edited": "bool"
}Endpoint: GET /api/v1/post/ {id}
{
"id": "UUID",
"title": "String",
"content": "String",
"user_id": "UUID",
"user_name": "String",
"date": "Datetime",
"edited": "bool"
}Endpoint: DELETE /api/v1/post/ {id}
{
"id": "UUID",
"title": "String",
"content": "String",
"user_id": "UUID",
"user_name": "String",
"date": "Datetime",
"edited": "bool"
}Endpoint: PUT /api/v1/post/ {id}
{
"id": "UUID",
"title": "String",
"content": "String",
"user_id": "UUID",
"user_name": "String",
"date": "Datetime",
"edited": "bool"
}Endpoint: GET /api/v1/post/search/ {query}/{page}
{
{
"id": "UUID",
"title": "String",
"content": "String",
"user_id": "UUID",
"user_name": "String",
"date": "Datetime",
"edited": "bool"
},
{
"id": "UUID",
"title": "String",
"content": "String",
"user_id": "UUID",
"user_name": "String",
"date": "Datetime",
"edited": "bool"
},
}Endpoint: GET /api/v1/post/user/ {id}/{page}
{
{
"id": "UUID",
"title": "String",
"content": "String",
"user_id": "UUID",
"user_name": "String",
"date": "Datetime",
"edited": "bool"
},
{
"id": "UUID",
"title": "String",
"content": "String",
"user_id": "UUID",
"user_name": "String",
"date": "Datetime",
"edited": "bool"
},
}Endpoint: GET /api/v1/post/page/ {page}
{
{
"id": "UUID",
"title": "String",
"content": "String",
"user_id": "UUID",
"user_name": "String",
"date": "Datetime",
"edited": "bool"
},
{
"id": "UUID",
"title": "String",
"content": "String",
"user_id": "UUID",
"user_name": "String",
"date": "Datetime",
"edited": "bool"
},
}