feat(api): add react-query client generation and redesign api responses
This commit is contained in:
parent
378991e582
commit
fe2d1ff0f3
1 changed files with 51 additions and 0 deletions
51
next-swagger-doc.json
Normal file
51
next-swagger-doc.json
Normal file
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"apiFolder": "src/app/api",
|
||||
"definition": {
|
||||
"openapi": "3.0.0",
|
||||
"info": {
|
||||
"title": "MeetUP API",
|
||||
"version": "1.0"
|
||||
},
|
||||
"components": {
|
||||
"schemas": {
|
||||
"ErrorResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"success": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"message": {
|
||||
"type": "string",
|
||||
"description": "Error message"
|
||||
}
|
||||
}
|
||||
},
|
||||
"User": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": { "type": "string" },
|
||||
"name": { "type": "string" },
|
||||
"first_name": { "type": "string" },
|
||||
"last_name": { "type": "string" },
|
||||
"email": { "type": "string", "format": "email" },
|
||||
"image": { "type": "string", "format": "uri" },
|
||||
"timezone": { "type": "string", "description": "User timezone" }
|
||||
}
|
||||
},
|
||||
"PublicUser": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": { "type": "string" },
|
||||
"name": { "type": "string" },
|
||||
"first_name": { "type": "string" },
|
||||
"last_name": { "type": "string" },
|
||||
"image": { "type": "string", "format": "uri" },
|
||||
"timezone": { "type": "string", "description": "User timezone" }
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"security": []
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue