Removes unsupported read-only flag on File schema for now
This commit is contained in:
parent
93a97e8835
commit
918a6d5ab7
47
crc/api.yml
47
crc/api.yml
|
@ -51,19 +51,19 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
/study/{study_id}:
|
||||
parameters:
|
||||
- name: study_id
|
||||
in: path
|
||||
required: true
|
||||
description: The id of the study for which workflows should be returned.
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
get:
|
||||
operationId: crc.api.study.get_study
|
||||
summary: Provides a single study
|
||||
tags:
|
||||
- Studies
|
||||
parameters:
|
||||
- name: study_id
|
||||
in: path
|
||||
required: true
|
||||
description: The id of the study for which workflows should be returned.
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
responses:
|
||||
'200':
|
||||
description: An Study Object
|
||||
|
@ -77,19 +77,11 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
post:
|
||||
put:
|
||||
operationId: crc.api.study.update_study
|
||||
summary: Updates an existing study with the given parameters.
|
||||
tags:
|
||||
- Studies
|
||||
parameters:
|
||||
- name: study_id
|
||||
in: path
|
||||
required: true
|
||||
description: The id of the study for which workflows should be returned.
|
||||
schema:
|
||||
type: integer
|
||||
format: int32
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
|
@ -363,21 +355,27 @@ paths:
|
|||
$ref: "#/components/schemas/File"
|
||||
put:
|
||||
operationId: crc.api.file.update_file_info
|
||||
summary: Update a file
|
||||
summary: Updates existing file info with the given parameters.
|
||||
tags:
|
||||
- Files
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/File"
|
||||
$ref: '#/components/schemas/File'
|
||||
responses:
|
||||
'200':
|
||||
description: Metadata about the uploaded file, but not the file content.
|
||||
description: File info updated successfully.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/File"
|
||||
default:
|
||||
description: unexpected error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Error"
|
||||
delete:
|
||||
operationId: crc.api.file.delete_file
|
||||
summary: Removes an existing file
|
||||
|
@ -613,25 +611,20 @@ components:
|
|||
properties:
|
||||
id:
|
||||
type: number
|
||||
readOnly: true
|
||||
name:
|
||||
type: string
|
||||
example: "random_fact.bpmn"
|
||||
version:
|
||||
type: string
|
||||
readOnly: true
|
||||
type: integer
|
||||
last_updated:
|
||||
type: string
|
||||
format: date_time
|
||||
example: "2019-12-25T09:12:33.001Z"
|
||||
readOnly: true
|
||||
type:
|
||||
type: enum
|
||||
type: string
|
||||
enum: ['bpmn','svg', 'dmn']
|
||||
readOnly: true
|
||||
primary:
|
||||
type: boolean
|
||||
readOnly: true
|
||||
content_type:
|
||||
type: string
|
||||
example: "application/xml"
|
||||
|
|
Loading…
Reference in New Issue