mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
- fix : invalid syntax (ref) for phpstorm openapi plugin (was ok with swaggerhub ?)
This commit is contained in:
@@ -39,12 +39,10 @@ paths:
|
|||||||
servers:
|
servers:
|
||||||
- url: 'https://alpha.preprod.alchemyasp.com/api/v1'
|
- url: 'https://alpha.preprod.alchemyasp.com/api/v1'
|
||||||
responses:
|
responses:
|
||||||
'200':
|
200:
|
||||||
description: successful operation
|
description: successful operation
|
||||||
'400':
|
default:
|
||||||
description: Any other error
|
description: Any error
|
||||||
'404':
|
|
||||||
description: Record not found
|
|
||||||
|
|
||||||
'/records/{base_id}':
|
'/records/{base_id}':
|
||||||
post:
|
post:
|
||||||
@@ -79,8 +77,14 @@ paths:
|
|||||||
allOf:
|
allOf:
|
||||||
- $ref: schemas.yaml#/RecordPatch
|
- $ref: schemas.yaml#/RecordPatch
|
||||||
responses:
|
responses:
|
||||||
|
200:
|
||||||
|
description: ok
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: schemas.yaml#/ApiResponse_record
|
||||||
default:
|
default:
|
||||||
$ref: responses.yaml#/record_response
|
$ref: 'responses.yaml#/error_response'
|
||||||
security:
|
security:
|
||||||
- api_key: []
|
- api_key: []
|
||||||
'/records/{sbas_id}/{record_id}':
|
'/records/{sbas_id}/{record_id}':
|
||||||
@@ -104,5 +108,13 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: schemas.yaml#/ID
|
$ref: schemas.yaml#/ID
|
||||||
responses:
|
responses:
|
||||||
|
200:
|
||||||
|
description: ok
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: schemas.yaml#/ApiResponse_record
|
||||||
|
404:
|
||||||
|
description: Record not found
|
||||||
default:
|
default:
|
||||||
$ref: responses.yaml#/record_response
|
$ref: 'responses.yaml#/error_response'
|
||||||
|
@@ -1,11 +1,2 @@
|
|||||||
record_response:
|
error_response:
|
||||||
'200':
|
description: Any (other) error
|
||||||
description: successful operation
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: schemas.yaml#/ApiResponse_record
|
|
||||||
'400':
|
|
||||||
description: Any other error
|
|
||||||
'404':
|
|
||||||
description: Record not found
|
|
||||||
|
Reference in New Issue
Block a user