mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 04:19:06 +08:00
parent
af94af3667
commit
2c05a1ccc1
1 changed files with 50 additions and 0 deletions
50
backend/swagger.json
Normal file
50
backend/swagger.json
Normal file
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"version": "1.0.0",
|
||||
"title": "Monkeytype",
|
||||
"termsOfService": "http://monkeytype.com/terms-of-service",
|
||||
"contact": {
|
||||
"name": "Developer",
|
||||
"email": "jack@monkeytype.com"
|
||||
}
|
||||
},
|
||||
"host": "api.monkeytype.com",
|
||||
"basePath": "/",
|
||||
"schemes": ["https"],
|
||||
"consumes": ["application/json"],
|
||||
"produces": ["application/json"],
|
||||
"paths": {
|
||||
"/users": {
|
||||
"get": {
|
||||
"description": "Returns user data",
|
||||
"produces": ["application/json"],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "User data.",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"Response": {
|
||||
"type": "object",
|
||||
"required": ["error", "message", "data"],
|
||||
"properties": {
|
||||
"error": {
|
||||
"type": "string"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"data": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue