MCP OpenAPI Server

by ReAPI-com
Verified
openapi: 3.0.0 info: title: User Management API version: 1.0.0 description: A User Management API with references between User and Group schemas x-spec-id: user-management components: schemas: Error: type: object properties: code: type: integer format: int32 message: type: string User: type: object properties: id: type: string format: uuid username: type: string minLength: 3 email: type: string format: email groupIds: type: array items: type: string format: uuid createdAt: type: string format: date-time required: - id - username - email Group: type: object properties: id: type: string format: uuid name: type: string description: type: string memberIds: type: array items: type: string format: uuid adminIds: type: array items: type: string format: uuid required: - id - name UserWithoutGroups: type: object properties: id: type: string format: uuid username: type: string email: type: string format: email required: - id - username - email GroupWithoutUsers: type: object properties: id: type: string format: uuid name: type: string description: type: string required: - id - name paths: /users: get: summary: List users operationId: listUsers parameters: - name: groupId in: query schema: type: string format: uuid responses: '200': description: List of users content: application/json: schema: type: array items: $ref: '#/components/schemas/User' /groups: get: summary: List groups operationId: listGroups responses: '200': description: List of groups content: application/json: schema: type: array items: $ref: '#/components/schemas/Group' /groups/{groupId}/members: post: summary: Add user to group operationId: addUserToGroup parameters: - name: groupId in: path required: true schema: type: string format: uuid requestBody: required: true content: application/json: schema: type: object properties: userId: type: string format: uuid required: - userId responses: '200': description: User added to group content: application/json: schema: $ref: '#/components/schemas/Group' '404': description: User or group not found content: application/json: schema: $ref: '#/components/schemas/Error'
ID: b2a2m8ekxb