swagger OK resopnse bodies
This commit is contained in:
66
public/swagger/v1/entities/id.yaml
Normal file
66
public/swagger/v1/entities/id.yaml
Normal file
@@ -0,0 +1,66 @@
|
||||
paths:
|
||||
summary: "Interact with one entity within a namespace"
|
||||
delete:
|
||||
description: "Delete an existing entity"
|
||||
tags:
|
||||
- entities
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/token"
|
||||
- $ref: "#/components/parameters/id"
|
||||
responses:
|
||||
200:
|
||||
$ref: "#/components/schemas/responseOK"
|
||||
|
||||
get:
|
||||
description: "Get an existing entity"
|
||||
tags:
|
||||
- entities
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/token"
|
||||
- $ref: "#/components/parameters/id"
|
||||
responses:
|
||||
200:
|
||||
$ref: "#/components/schemas/responseOneResolved"
|
||||
|
||||
put:
|
||||
description: "Replace an existing entity"
|
||||
tags:
|
||||
- entities
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/token"
|
||||
- $ref: "#/components/parameters/id"
|
||||
requestBody:
|
||||
$ref: "#/components/schemas/requestOne"
|
||||
responses:
|
||||
200:
|
||||
$ref: "#/components/schemas/responseOne"
|
||||
|
||||
patch:
|
||||
description: "Update an existing entity"
|
||||
tags:
|
||||
- entities
|
||||
parameters:
|
||||
- $ref: "#/components/parameters/token"
|
||||
- $ref: "#/components/parameters/id"
|
||||
requestBody:
|
||||
$ref: "#/components/schemas/requestOne"
|
||||
responses:
|
||||
200:
|
||||
$ref: "#/components/schemas/responseOne"
|
||||
|
||||
components:
|
||||
parameters:
|
||||
token:
|
||||
$ref: "../swagger.yaml#/components/parameters/token"
|
||||
id:
|
||||
$ref: "../swagger.yaml#/components/parameters/id"
|
||||
|
||||
schemas:
|
||||
requestOne:
|
||||
$ref: "../swagger.yaml#/components/schemas/requestOne"
|
||||
responseOne:
|
||||
$ref: "../swagger.yaml#/components/schemas/responseOne"
|
||||
responseOneResolved:
|
||||
$ref: "../swagger.yaml#/components/schemas/responseOneResolved"
|
||||
responseOK:
|
||||
$ref: "../swagger.yaml#/components/schemas/responseOK"
|
||||
Reference in New Issue
Block a user