user.json•3.95 kB
{
"paths": {
"/v1/user": {
"get": {
"tags": ["User"],
"summary": "Get authenticated user",
"security": [{ "bearerAuth": [] }],
"parameters": [
{
"name": "include",
"in": "query",
"schema": {
"type": "string",
"enum": ["teams"]
}
}
],
"responses": {
"200": {
"description": "User information",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"id": { "type": "integer" },
"name": { "type": "string" },
"screen_name": { "type": "string" },
"created_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"icon": {
"type": "string",
"format": "uri"
},
"email": {
"type": "string",
"format": "email"
}
}
}
}
}
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"401": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"402": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"403": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"404": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"405": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"406": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"409": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"429": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
},
"500": {
"content": {
"application/json": {
"schema": {
"$ref": "./openapi.json#/components/schemas/ErrorResponseBody"
}
}
}
}
}
}
}
}
}