Skip to content

Instantly share code, notes, and snippets.

@angusbreno
Created September 3, 2020 17:52
Show Gist options
  • Save angusbreno/fd16fb03ed309d63a85b7c76b21d87f6 to your computer and use it in GitHub Desktop.
Save angusbreno/fd16fb03ed309d63a85b7c76b21d87f6 to your computer and use it in GitHub Desktop.
HBLog WorkSchedule APIs
{
"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