Skip to content

Commit

Permalink
update swagger file
Browse files Browse the repository at this point in the history
  • Loading branch information
Alino committed Jul 24, 2018
1 parent c192281 commit 250365a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 234 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tapicc-api",
"private": true,
"version": "0.0.0",
"version": "0.0.1",
"description": "a Sails application",
"keywords": [],
"dependencies": {
Expand Down
236 changes: 3 additions & 233 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "tapicc-api",
"description": "a Sails application",
"version": "0.0.0",
"version": "0.0.1",
"contact": {
"name": "alino"
},
Expand Down Expand Up @@ -94,8 +94,8 @@
"format": "date-time"
},
"submitter": {
"type": "string",
"format": "string"
"type": "integer",
"format": "int32"
},
"createdAt": {
"type": "string",
Expand Down Expand Up @@ -701,236 +701,6 @@
"description": "Deletes a Task which belongs to a specific job"
}
},
"/task/{id}": {
"get": {
"summary": "Get a Task",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/task"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
},
"tags": [
"Task"
],
"description": "Get a Task"
},
"put": {
"summary": "Update a Task",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "task",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/task"
}
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/task"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
},
"tags": [
"Task"
],
"description": "Update a Task"
},
"delete": {
"summary": "Delete a Task",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/task"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
},
"tags": [
"Task"
],
"description": "Delete a Task"
}
},
"/asset/{id}": {
"get": {
"summary": "Get an Asset",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/asset"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
},
"tags": [
"Asset"
],
"description": "Get an Asset"
},
"put": {
"summary": "Update an Asset",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
},
{
"name": "asset",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/asset"
}
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/asset"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
},
"tags": [
"Asset"
],
"description": "Update an Asset"
},
"delete": {
"summary": "Delete an Asset",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "The requested resource",
"schema": {
"$ref": "#/definitions/asset"
}
},
"404": {
"description": "Resource not found"
},
"500": {
"description": "Internal server error"
}
},
"tags": [
"Asset"
],
"description": "Delete an Asset"
}
},
"/webhook/{id}": {
"get": {
"summary": "Get a Webhook",
Expand Down

0 comments on commit 250365a

Please sign in to comment.