Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "swagger": "2.0",
- "info": {
- "title": "PhoenixService.ScheduleApi"
- },
- "paths": {
- "/api/Appointments/TakeAppointment": {
- "post": {
- "tags": [
- "Appointments"
- ],
- "summary": "Делает попытку занять прием у специалиста на выбранную дату и время",
- "operationId": "TakeAppointment",
- "consumes": [
- "application/json-patch+json",
- "application/json",
- "text/json",
- "application/*+json"
- ],
- "produces": [
- "text/plain",
- "application/json",
- "text/json"
- ],
- "parameters": [
- {
- "name": "takeAppointmentM",
- "in": "body",
- "description": "",
- "required": false,
- "schema": {
- "$ref": "#/definitions/TakeAppointmentM"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Success",
- "schema": {
- "type": "boolean"
- }
- }
- }
- }
- },
- "/api/Schedule/GetNearestAppointment": {
- "get": {
- "tags": [
- "Schedule"
- ],
- "summary": "Возвращает специалиста, у которого был последний прием пациента и дату ближайшего возможного приема",
- "operationId": "GetNearestAppointment",
- "consumes": [],
- "produces": [
- "text/plain",
- "application/json",
- "text/json"
- ],
- "parameters": [
- {
- "name": "requestId",
- "in": "query",
- "description": "ID запроса, сформировавшего дозвон",
- "required": false,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "Success",
- "schema": {
- "$ref": "#/definitions/SpecialistWithScheduleM"
- }
- }
- }
- }
- },
- "/api/Schedule/GetAvailableAppointments": {
- "post": {
- "tags": [
- "Schedule"
- ],
- "summary": "Возвращает доступные приемы у специалиста",
- "operationId": "GetAvailableAppointments",
- "consumes": [
- "application/json-patch+json",
- "application/json",
- "text/json",
- "application/*+json"
- ],
- "produces": [
- "text/plain",
- "application/json",
- "text/json"
- ],
- "parameters": [
- {
- "name": "getSpecialistScheduleM",
- "in": "body",
- "description": "",
- "required": false,
- "schema": {
- "$ref": "#/definitions/GetSpecialistScheduleM"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Success",
- "schema": {
- "$ref": "#/definitions/AvailableAppointmentsM"
- }
- }
- }
- }
- }
- },
- "definitions": {
- "TakeAppointmentM": {
- "type": "object",
- "properties": {
- "requestId": {
- "description": "ID запроса, сформировавшего дозвон",
- "type": "string"
- },
- "specialistId": {
- "description": "ID Специалиста",
- "type": "string"
- },
- "appointment": {
- "format": "date-time",
- "description": "Желаемое время начала приема (с датой)",
- "type": "string"
- }
- }
- },
- "SpecialistWithScheduleM": {
- "type": "object",
- "properties": {
- "specialistId": {
- "description": "ID Специалиста",
- "type": "string"
- },
- "speciality": {
- "description": "Специальность",
- "type": "string"
- },
- "name": {
- "description": "Имя специалиста (по возможности - ФИО)",
- "type": "string"
- },
- "nearestFreeAppointmentDate": {
- "format": "date-time",
- "description": "Дата ближайшего доступного для записи приема",
- "type": "string"
- }
- }
- },
- "GetSpecialistScheduleM": {
- "type": "object",
- "properties": {
- "specialistId": {
- "description": "ID Специалиста",
- "type": "string"
- },
- "requestId": {
- "description": "ID запроса, сформировавшего дозвон",
- "type": "string"
- },
- "wantedDate": {
- "format": "date-time",
- "description": "Желаемая дата приема",
- "type": "string"
- }
- }
- },
- "AvailableAppointmentsM": {
- "type": "object",
- "properties": {
- "specialistId": {
- "description": "ID Специалиста",
- "type": "string"
- },
- "availableAppointments": {
- "description": "Доступные приемы (время начала приема) - максимум 5",
- "uniqueItems": false,
- "type": "array",
- "items": {
- "format": "date-time",
- "type": "string"
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement