Skip to content
Snippets Groups Projects
Commit 2db94e27 authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Add ElementParents

parent 6d4268cb
No related branches found
No related tags found
No related merge requests found
Pipeline #28287 passed
...@@ -3514,6 +3514,149 @@ paths: ...@@ -3514,6 +3514,149 @@ paths:
description: '' description: ''
tags: tags:
- elements - elements
/api/v1/elements/{id}/parents/:
get:
description: List all parents of an element
operationId: ListElementParents
parameters:
- description: ''
in: path
name: id
required: true
schema:
type: string
- description: A page number within the paginated result set.
in: query
name: page
required: false
schema:
type: integer
- description: Number of results to return per page.
in: query
name: page_size
required: false
schema:
type: integer
- description: Filter elements by type
in: query
name: type
required: false
schema:
enum:
- volume
- act
- page
- surface
responses:
'200':
content:
application/json:
schema:
properties:
count:
example: 123
type: integer
next:
nullable: true
type: string
number:
example: 123
type: integer
previous:
nullable: true
type: string
results:
items:
properties:
corpus:
properties:
id:
format: uuid
type: string
name:
maxLength: 250
type: string
public:
type: boolean
readOnly: true
required:
- name
type: object
id:
format: uuid
type: string
name:
maxLength: 250
type: string
thumbnail_put_url:
format: uri
pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\\
.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\\
.]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\
-\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\
.(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\
.?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
readOnly: true
type: string
thumbnail_url:
format: uri
pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\\
.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\\
.]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\
-\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\
.(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\
.?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
readOnly: true
type: string
type:
enum:
- volume
- act
- page
- surface
readOnly: true
zone:
properties:
center:
items:
type: integer
type: array
id:
format: uuid
type: string
image_url:
format: uri
pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\\
.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\\
.]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\
-\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\
.(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\
.?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
type: string
polygon:
items:
type: array
type: array
url:
readOnly: true
type: string
readOnly: true
required:
- polygon
- center
- image_url
type: object
required:
- name
type: array
type: object
description: ''
security: []
tags:
- elements
/api/v1/entity/: /api/v1/entity/:
post: post:
description: Create a new entity description: Create a new entity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment