Skip to content

Commit

Permalink
Update swagger.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
hr20k committed Nov 25, 2019
1 parent 23dce8b commit 59c6e49
Showing 1 changed file with 33 additions and 64 deletions.
97 changes: 33 additions & 64 deletions api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ paths:
status:
type: "integer"
example: 400

/login:
post:
tags:
Expand Down Expand Up @@ -119,11 +120,6 @@ paths:
produces:
- "application/json"
parameters:
- name: "x-sc-token"
in: "header"
description: "JWT token"
required: true
type: "string"
responses:
200:
description: "OK"
Expand All @@ -147,6 +143,8 @@ paths:
status:
type: "integer"
example: 401
security:
- token: []

/users/{id}/password:
put:
Expand All @@ -158,11 +156,6 @@ paths:
produces:
- "application/json"
parameters:
- name: "x-sc-token"
in: "header"
description: "JWT token"
required: true
type: "string"
- name: "id"
in: "path"
description: "User Id"
Expand Down Expand Up @@ -202,6 +195,8 @@ paths:
status:
type: "integer"
example: 401
security:
- token: []

/images:
post:
Expand All @@ -213,11 +208,6 @@ paths:
produces:
- "application/json"
parameters:
- name: "x-sc-token"
in: "header"
description: "JWT token"
required: true
type: "string"
- name: "body"
in: "body"
description: ""
Expand Down Expand Up @@ -254,6 +244,8 @@ paths:
status:
type: "integer"
example: 401
security:
- token: []

/users/{id}/items:
get:
Expand All @@ -265,11 +257,6 @@ paths:
produces:
- "application/json"
parameters:
- name: "x-sc-token"
in: "header"
description: "JWT token"
required: true
type: "string"
- name: "id"
in: "path"
description: "User Id"
Expand All @@ -292,6 +279,9 @@ paths:
status:
type: "integer"
example: 401
security:
- token: []

post:
tags:
- "items"
Expand All @@ -301,11 +291,6 @@ paths:
produces:
- "application/json"
parameters:
- name: "x-sc-token"
in: "header"
description: "JWT token"
required: true
type: "string"
- name: "id"
in: "path"
description: "User Id"
Expand Down Expand Up @@ -351,6 +336,8 @@ paths:
status:
type: "integer"
example: 401
security:
- token: []

/users/{id}/items/{itemId}:
get:
Expand All @@ -360,11 +347,6 @@ paths:
description: ""
operationId: "getItem"
parameters:
- name: "x-sc-token"
in: "header"
description: "JWT token"
required: true
type: "string"
- name: "id"
in: "path"
description: "User Id"
Expand Down Expand Up @@ -400,7 +382,9 @@ paths:
status:
type: "integer"
example: 401

security:
- token: []

put:
tags:
- "items"
Expand All @@ -410,11 +394,6 @@ paths:
produces:
- "application/json"
parameters:
- name: "x-sc-token"
in: "header"
description: "JWT token"
required: true
type: "string"
- name: "id"
in: "path"
description: "User Id"
Expand Down Expand Up @@ -463,18 +442,16 @@ paths:
status:
type: "integer"
example: 401
security:
- token: []

delete:
tags:
- "items"
summary: "Delete a Item"
description: ""
operationId: "deleteItem"
parameters:
- name: "x-sc-token"
in: "header"
description: "JWT token"
required: true
type: "string"
- name: "id"
in: "path"
description: "User Id"
Expand Down Expand Up @@ -508,6 +485,8 @@ paths:
status:
type: "integer"
example: 401
security:
- token: []

/users/{id}/tags:
get:
Expand All @@ -519,11 +498,6 @@ paths:
produces:
- "application/json"
parameters:
- name: "x-sc-token"
in: "header"
description: "JWT token"
required: true
type: "string"
- name: "id"
in: "path"
description: "User Id"
Expand All @@ -546,6 +520,9 @@ paths:
status:
type: "integer"
example: 401
security:
- token: []

post:
tags:
- "tags"
Expand All @@ -555,11 +532,6 @@ paths:
produces:
- "application/json"
parameters:
- name: "x-sc-token"
in: "header"
description: "JWT token"
required: true
type: "string"
- name: "id"
in: "path"
description: "User Id"
Expand Down Expand Up @@ -590,6 +562,8 @@ paths:
status:
type: "integer"
example: 401
security:
- token: []

/users/{id}/tags/{tagId}:
put:
Expand All @@ -601,11 +575,6 @@ paths:
produces:
- "application/json"
parameters:
- name: "x-sc-token"
in: "header"
description: "JWT token"
required: true
type: "string"
- name: "id"
in: "path"
description: "User Id"
Expand Down Expand Up @@ -637,18 +606,16 @@ paths:
status:
type: "integer"
example: 401
security:
- token: []

delete:
tags:
- "tags"
summary: "Delete a Tag"
description: ""
operationId: "deleteTag"
parameters:
- name: "x-sc-token"
in: "header"
description: "JWT token"
required: true
type: "string"
- name: "id"
in: "path"
description: "User Id"
Expand All @@ -672,11 +639,13 @@ paths:
status:
type: "integer"
example: 401

security:
- token: []

securityDefinitions:
api_key:
token:
type: "apiKey"
name: "api_key"
name: "x-sc-token"
in: "header"
definitions:
Item:
Expand Down

0 comments on commit 59c6e49

Please sign in to comment.