Fixed parameters for CustomerCategory
This commit is contained in:
29
dfc.yaml
29
dfc.yaml
@@ -238,11 +238,14 @@ paths:
|
|||||||
- "@id": http://test.host/api/dfc/Enterprises/10000/customerCategories/10005
|
- "@id": http://test.host/api/dfc/Enterprises/10000/customerCategories/10005
|
||||||
"@type": dfc-b:customerCategory
|
"@type": dfc-b:customerCategory
|
||||||
dfc-b:definedBy: http://test.host/api/dfc/Enterprises/10000
|
dfc-b:definedBy: http://test.host/api/dfc/Enterprises/10000
|
||||||
'401':
|
|
||||||
description: unauthorized
|
|
||||||
post:
|
post:
|
||||||
summary: create a new Customer Category for a given Enterprise
|
summary: create a new Customer Category for a given Enterprise
|
||||||
parameters: []
|
parameters:
|
||||||
|
- name: enterprise_id
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
responses:
|
responses:
|
||||||
'201':
|
'201':
|
||||||
description: created
|
description: created
|
||||||
@@ -286,22 +289,24 @@ paths:
|
|||||||
- "@id": http://test.host/api/dfc/Enterprises/10000/customerCategories/10005
|
- "@id": http://test.host/api/dfc/Enterprises/10000/customerCategories/10005
|
||||||
"@type": dfc-b:customerCategory
|
"@type": dfc-b:customerCategory
|
||||||
dfc-b:definedBy: http://test.host/api/dfc/Enterprises/10000
|
dfc-b:definedBy: http://test.host/api/dfc/Enterprises/10000
|
||||||
'404':
|
|
||||||
description: not found
|
|
||||||
delete:
|
delete:
|
||||||
summary: remove a Customer Category for a given Enterprise
|
summary: remove a Customer Category for a given Enterprise
|
||||||
parameters: []
|
parameters:
|
||||||
|
- name: enterprise_id
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
- name: id
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
responses:
|
responses:
|
||||||
'204':
|
'204':
|
||||||
description: no content
|
description: no content
|
||||||
'401':
|
'401':
|
||||||
description: unauthorized
|
description: unauthorized
|
||||||
requestBody:
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
example:
|
|
||||||
"@id": http://test.host/api/dfc/Enterprises/10000/customerCategories/10006
|
|
||||||
|
|
||||||
|
|
||||||
"/api/dfc/Enterprises/{enterprise_id}/affiliatedBy":
|
"/api/dfc/Enterprises/{enterprise_id}/affiliatedBy":
|
||||||
|
|||||||
Reference in New Issue
Block a user