openapi: 3.0.2 info: title: API Title version: "1.0" servers: - url: https://atypikoo.com paths: "/members-list": get: responses: "200": description: OK content: application/json: schema: type: object properties: id: type: number name: type: string imageUri: type: string age: type: number city: type: string distance: type: object properties: unit: type: string value: type: number matchingScore: type: number "/discussions": get: parameters: - in: query name: cursor schema: type: integer nullable: true - in: query name: limit schema: type: integer responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/PaginationOutput" - type: object properties: items: type: array items: type: object properties: discussionId: type: number personId: type: number name: type: string imageUri: type: string lastMessageText: type: string lastMessageTimestamp: type: number isOnline: type: boolean "/discussions/{id}": get: parameters: - in: path name: id required: true schema: type: integer - in: query name: cursor schema: type: integer nullable: true - in: query name: limit schema: type: integer responses: "200": description: OK content: application/json: schema: allOf: - $ref: "#/components/schemas/PaginationOutput" - type: object properties: items: type: array items: $ref: "#/components/schemas/ChatMessage" components: schemas: PaginationOutput: type: object properties: previousId: type: string nullable: true nextId: type: string nullable: true hasMore: type: number total: type: number ChatMessage: type: object properties: sender: type: string enum: ["me", "otherPerson"] sentAt: type: number wasSent: type: boolean wasDelivered: type: boolean wasRead: type: boolean content: type: string