Skip to content

Commit

Permalink
fix indent in versions api doc
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Oct 29, 2024
1 parent 0c07129 commit 25b524a
Showing 1 changed file with 64 additions and 64 deletions.
128 changes: 64 additions & 64 deletions docs/api/apiv3/paths/versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
---
get:
parameters:
- description: |-
JSON specifying filter conditions.
Accepts the same format as returned by the [queries](https://www.openproject.org/docs/api/endpoints/queries/) endpoint.
Currently supported filters are:
- description: |-
JSON specifying filter conditions.
Accepts the same format as returned by the [queries](https://www.openproject.org/docs/api/endpoints/queries/) endpoint.
Currently supported filters are:
+ sharing: filters versions by how they are shared within the server (*none*, *descendants*, *hierarchy*, *tree*, *system*).
example: '[{ "sharing": { "operator": "*", "values": ["system"] }" }]'
in: query
name: filters
required: false
schema:
type: string
+ sharing: filters versions by how they are shared within the server (*none*, *descendants*, *hierarchy*, *tree*, *system*).
example: '[{ "sharing": { "operator": "*", "values": ["system"] }" }]'
in: query
name: filters
required: false
schema:
type: string
responses:
'200':
content:
Expand All @@ -23,57 +23,57 @@ get:
value:
_embedded:
elements:
- _links:
availableInProjects:
href: "/api/v3/versions/11/projects"
definingProject:
href: "/api/v3/projects/12"
self:
href: "/api/v3/versions/11"
_type: Version
description:
format: plain
html: This version has a description
raw: This version has a description
endDate:
id: 11
name: v3.0 Alpha
startDate: '2014-11-20'
status: Open
- _links:
availableInProjects:
href: "/api/v3/versions/12/projects"
definingProject:
href: "/api/v3/projects/11"
self:
href: "/api/v3/versions/12"
_type: Version
description:
format: plain
html: ''
raw: ''
endDate:
id: 12
name: v2.0
startDate:
status: Closed
- _links:
availableInProjects:
href: "/api/v3/versions/13/projects"
definingProject:
href: "/api/v3/projects/13"
self:
href: "/api/v3/versions/10"
_type: Version
description:
format: plain
html: ''
raw: ''
endDate:
id: 10
name: v1.0
startDate:
status: Open
- _links:
availableInProjects:
href: "/api/v3/versions/11/projects"
definingProject:
href: "/api/v3/projects/12"
self:
href: "/api/v3/versions/11"
_type: Version
description:
format: plain
html: This version has a description
raw: This version has a description
endDate:
id: 11
name: v3.0 Alpha
startDate: '2014-11-20'
status: Open
- _links:
availableInProjects:
href: "/api/v3/versions/12/projects"
definingProject:
href: "/api/v3/projects/11"
self:
href: "/api/v3/versions/12"
_type: Version
description:
format: plain
html: ''
raw: ''
endDate:
id: 12
name: v2.0
startDate:
status: Closed
- _links:
availableInProjects:
href: "/api/v3/versions/13/projects"
definingProject:
href: "/api/v3/projects/13"
self:
href: "/api/v3/versions/10"
_type: Version
description:
format: plain
html: ''
raw: ''
endDate:
id: 10
name: v1.0
startDate:
status: Open
_links:
self:
href: "/api/v3/versions"
Expand All @@ -85,7 +85,7 @@ get:
description: OK
headers: {}
tags:
- Versions
- Versions
description: Returns a collection of versions. The client can choose to filter the
versions similar to how work packages are filtered. In addition to the provided
filters, the server will reduce the result set to only contain versions, for which
Expand Down Expand Up @@ -130,7 +130,7 @@ post:
* a constraint for a property was violated (`PropertyConstraintViolation`)
headers: {}
tags:
- Versions
- Versions
description: |-
Creates a new version applying the attributes provided in the body. Please note that while there is a fixed set of attributes, custom fields can extend a version's attributes and are accepted by the endpoint.
Expand Down

0 comments on commit 25b524a

Please sign in to comment.