Created
September 3, 2020 17:52
-
-
Save angusbreno/fd16fb03ed309d63a85b7c76b21d87f6 to your computer and use it in GitHub Desktop.
HBLog WorkSchedule APIs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger": "2.0", | |
"info": { | |
"version": "v1", | |
"title": "HBLOG WorkSchedule API" | |
}, | |
"paths":{ | |
"/api/WorkSchedule/getall": { | |
"get": { | |
"tags": [ | |
"WorkSchedule" | |
], | |
"operationId": "GetAll", | |
"consumes": [], | |
"produces": [ | |
"text/plain", | |
"application/json", | |
"text/json" | |
], | |
"parameters": [], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"schema": { | |
"$ref": "#/definitions/PageResult[WorkSchedule]" | |
} | |
} | |
} | |
} | |
}, | |
"/api/WorkSchedule/getbyid": { | |
"get": { | |
"tags": [ | |
"WorkSchedule" | |
], | |
"operationId": "GetById", | |
"consumes": [], | |
"produces": [ | |
"text/plain", | |
"application/json", | |
"text/json" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "query", | |
"required": false, | |
"type": "string" | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"schema": { | |
"$ref": "#/definitions/WorkSchedule" | |
} | |
} | |
} | |
} | |
}, | |
"/api/WorkSchedule/upsert": { | |
"post": { | |
"tags": [ | |
"WorkSchedule" | |
], | |
"operationId": "Upsert", | |
"consumes": [ | |
"application/json-patch+json", | |
"application/json", | |
"text/json", | |
"application/*+json" | |
], | |
"produces": [ | |
"text/plain", | |
"application/json", | |
"text/json" | |
], | |
"parameters": [ | |
{ | |
"name": "model", | |
"in": "body", | |
"required": false, | |
"schema": { | |
"$ref": "#/definitions/WorkSchedule" | |
} | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"schema": { | |
"$ref": "#/definitions/WorkSchedule" | |
} | |
} | |
} | |
} | |
}, | |
"/api/WorkSchedule/delete": { | |
"delete": { | |
"tags": [ | |
"WorkSchedule" | |
], | |
"operationId": "Delete", | |
"consumes": [], | |
"produces": [ | |
"text/plain", | |
"application/json", | |
"text/json" | |
], | |
"parameters": [ | |
{ | |
"name": "id", | |
"in": "query", | |
"required": false, | |
"type": "string" | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Success", | |
"schema": { | |
"$ref": "#/definitions/WorkSchedule" | |
} | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment