openapi: 3.0.0 info: title: LetVPN version: 1.0.0 servers: - url: /api paths: /servers: get: tags: - Server summary: getServerList description: Get all Servers operationId: getServerList responses: '200': description: successful operation content: application/json: schema: properties: success: type: boolean data: type: array items: $ref: '#/components/schemas/Server' message: type: string type: object /servers/{id}: get: tags: - Server summary: getServerItem description: Get Server operationId: getServerDetail parameters: - name: id in: path description: id of Server required: true schema: type: integer responses: '200': description: successful operation content: application/json: schema: properties: success: type: boolean data: $ref: '#/components/schemas/Server' message: type: string type: object /servers/initial-server: get: tags: - Server summary: initialServer description: Get Initial Server operationId: initialServer responses: '200': description: successful operation content: application/json: schema: properties: success: type: boolean data: $ref: '#/components/schemas/Server' message: type: string type: object components: schemas: Server: required: - hostname - username - password - is_active - is_premium - country_code - country_name properties: hostname: description: '' type: string readOnly: false nullable: false username: description: '' type: string readOnly: false nullable: false password: description: '' type: string readOnly: false nullable: false is_active: description: '' type: integer format: int32 readOnly: false nullable: false is_premium: description: '' type: integer format: int32 readOnly: false nullable: false country_code: description: '' type: string readOnly: false nullable: false country_name: description: '' type: string readOnly: false nullable: false created_at: description: '' type: string format: date-time readOnly: true nullable: true updated_at: description: '' type: string format: date-time readOnly: true nullable: true type: object