mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
api docs adjusted to patch/post address on thirdparty
This commit is contained in:
parent
d94fec3352
commit
e9b1f442bc
@ -26,22 +26,14 @@ components:
|
||||
type: string
|
||||
telephone:
|
||||
type: string
|
||||
comment:
|
||||
type: string
|
||||
# centers:
|
||||
# type: array
|
||||
# items:
|
||||
# type: object
|
||||
# $ref: "#/components/schemas/CenterById"
|
||||
# CenterById:
|
||||
# type: object
|
||||
# properties:
|
||||
# type:
|
||||
# type: string
|
||||
# enum:
|
||||
# - "Center"
|
||||
# id:
|
||||
# type: integer
|
||||
address:
|
||||
$ref: "#/components/schemas/Address"
|
||||
Address:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
type: integer
|
||||
|
||||
|
||||
paths:
|
||||
/1.0/thirdparty/thirdparty.json:
|
||||
@ -118,33 +110,3 @@ paths:
|
||||
description: "OK"
|
||||
422:
|
||||
description: "Object with validation errors"
|
||||
put:
|
||||
tags:
|
||||
- thirdparty
|
||||
summary: Edit an existing thirdparty
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
description: The thirdparty's id
|
||||
schema:
|
||||
type: integer
|
||||
format: integer
|
||||
minimum: 1
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Thirdparty"
|
||||
responses:
|
||||
401:
|
||||
description: "Unauthorized"
|
||||
404:
|
||||
description: "Not found"
|
||||
200:
|
||||
description: "OK"
|
||||
422:
|
||||
description: "Unprocessable entity (validation errors)"
|
||||
400:
|
||||
description: "Bad Request"
|
||||
|
Loading…
x
Reference in New Issue
Block a user