Files
Dorod-Sky/docs/api-reference/organizations/openapi.json

78 lines
1.7 KiB
JSON
Raw Normal View History

{
"openapi": "3.0.0",
"info": {
"title": "Organizations API",
"version": "1.0.0"
},
"paths": {
"/organizations": {
"get": {
"summary": "Get Organizations",
"description": "Retrieves the organization information for the current authenticated user.",
"operationId": "getOrganizations",
"tags": [
"Organizations"
],
"security": [
{
"BearerAuth": []
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetOrganizationsResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"500": {
"description": "Internal Server Error"
}
}
}
}
},
"components": {
"schemas": {
"GetOrganizationsResponse": {
"type": "object",
"properties": {
"organizations": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Organization"
}
}
}
},
"Organization": {
"type": "object",
"properties": {
"organization_id": {
"type": "string",
"format": "uuid"
},
"organization_name": {
"type": "string"
}
}
}
},
"securitySchemes": {
"BearerAuth": {
"type": "http",
"scheme": "bearer"
}
}
}
}