Parcourir la source

openapi

master
Florian Eisenmenger il y a 2 ans
Parent
révision
5a26a374f4
2 fichiers modifiés avec 186 ajouts et 47 suppressions
  1. +1
    -1
      export/openapi.json
  2. +185
    -46
      export/openapi.yaml

+ 1
- 1
export/openapi.json
Fichier diff supprimé car celui-ci est trop grand
Voir le fichier


+ 185
- 46
export/openapi.yaml Voir le fichier

@@ -500,20 +500,20 @@ paths:
required: true
deprecated: false
parameters: []
/api/media_objects:
/api/medias:
get:
operationId: api_media_objects_get_collection
operationId: api_medias_get_collection
tags:
- MediaObject
- Media
responses:
200:
description: 'MediaObject collection'
description: 'Media collection'
content:
application/ld+json:
schema:
type: object
properties:
'hydra:member': { type: array, items: { $ref: '#/components/schemas/MediaObject.jsonld-media_object.read' } }
'hydra:member': { type: array, items: { $ref: '#/components/schemas/Media.jsonld-media_object.read' } }
'hydra:totalItems': { type: integer, minimum: 0 }
'hydra:view': { type: object, properties: { '@id': { type: string, format: iri-reference }, '@type': { type: string }, 'hydra:first': { type: string, format: iri-reference }, 'hydra:last': { type: string, format: iri-reference }, 'hydra:previous': { type: string, format: iri-reference }, 'hydra:next': { type: string, format: iri-reference } }, example: { '@id': string, type: string, 'hydra:first': string, 'hydra:last': string, 'hydra:previous': string, 'hydra:next': string } }
'hydra:search': { type: object, properties: { '@type': { type: string }, 'hydra:template': { type: string }, 'hydra:variableRepresentation': { type: string }, 'hydra:mapping': { type: array, items: { type: object, properties: { '@type': { type: string }, variable: { type: string }, property: { type: [string, 'null'] }, required: { type: boolean } } } } } }
@@ -523,25 +523,25 @@ paths:
schema:
type: array
items:
$ref: '#/components/schemas/MediaObject-media_object.read'
$ref: '#/components/schemas/Media-media_object.read'
text/html:
schema:
type: array
items:
$ref: '#/components/schemas/MediaObject-media_object.read'
$ref: '#/components/schemas/Media-media_object.read'
application/hal+json:
schema:
type: object
properties:
_embedded: { type: array, items: { $ref: '#/components/schemas/MediaObject.jsonhal-media_object.read' } }
_embedded: { type: array, items: { $ref: '#/components/schemas/Media.jsonhal-media_object.read' } }
totalItems: { type: integer, minimum: 0 }
itemsPerPage: { type: integer, minimum: 0 }
_links: { type: object, properties: { self: { type: object, properties: { href: { type: string, format: iri-reference } } }, first: { type: object, properties: { href: { type: string, format: iri-reference } } }, last: { type: object, properties: { href: { type: string, format: iri-reference } } }, next: { type: object, properties: { href: { type: string, format: iri-reference } } }, previous: { type: object, properties: { href: { type: string, format: iri-reference } } } } }
required:
- _links
- _embedded
summary: 'Retrieves the collection of MediaObject resources.'
description: 'Retrieves the collection of MediaObject resources.'
summary: 'Retrieves the collection of Media resources.'
description: 'Retrieves the collection of Media resources.'
parameters:
-
name: page
@@ -573,32 +573,32 @@ paths:
allowReserved: false
deprecated: false
post:
operationId: api_media_objects_post
operationId: api_medias_post
tags:
- MediaObject
- Media
responses:
201:
description: 'MediaObject resource created'
description: 'Media resource created'
content:
application/ld+json:
schema:
$ref: '#/components/schemas/MediaObject.jsonld-media_object.read'
$ref: '#/components/schemas/Media.jsonld-media_object.read'
application/json:
schema:
$ref: '#/components/schemas/MediaObject-media_object.read'
$ref: '#/components/schemas/Media-media_object.read'
text/html:
schema:
$ref: '#/components/schemas/MediaObject-media_object.read'
$ref: '#/components/schemas/Media-media_object.read'
application/hal+json:
schema:
$ref: '#/components/schemas/MediaObject.jsonhal-media_object.read'
$ref: '#/components/schemas/Media.jsonhal-media_object.read'
links: { }
400:
description: 'Invalid input'
422:
description: 'Unprocessable entity'
summary: 'Creates a MediaObject resource.'
description: 'Creates a MediaObject resource.'
summary: 'Creates a Media resource.'
description: 'Creates a Media resource.'
parameters: []
requestBody:
description: ''
@@ -613,31 +613,31 @@ paths:
required: false
deprecated: false
parameters: []
'/api/media_objects/{id}':
'/api/medias/{id}':
get:
operationId: api_media_objects_id_get
operationId: api_medias_id_get
tags:
- MediaObject
- Media
responses:
200:
description: 'MediaObject resource'
description: 'Media resource'
content:
application/ld+json:
schema:
$ref: '#/components/schemas/MediaObject.jsonld-media_object.read'
$ref: '#/components/schemas/Media.jsonld-media_object.read'
application/json:
schema:
$ref: '#/components/schemas/MediaObject-media_object.read'
$ref: '#/components/schemas/Media-media_object.read'
text/html:
schema:
$ref: '#/components/schemas/MediaObject-media_object.read'
$ref: '#/components/schemas/Media-media_object.read'
application/hal+json:
schema:
$ref: '#/components/schemas/MediaObject.jsonhal-media_object.read'
$ref: '#/components/schemas/Media.jsonhal-media_object.read'
404:
description: 'Resource not found'
summary: 'Retrieves a MediaObject resource.'
description: 'Retrieves a MediaObject resource.'
summary: 'Retrieves a Media resource.'
description: 'Retrieves a Media resource.'
parameters:
-
name: id
@@ -1114,16 +1114,16 @@ paths:
content:
application/ld+json:
schema:
$ref: '#/components/schemas/Post.jsonld'
$ref: '#/components/schemas/Post.jsonld-posting_create'
application/json:
schema:
$ref: '#/components/schemas/Post'
$ref: '#/components/schemas/Post-posting_create'
text/html:
schema:
$ref: '#/components/schemas/Post'
$ref: '#/components/schemas/Post-posting_create'
application/hal+json:
schema:
$ref: '#/components/schemas/Post.jsonhal'
$ref: '#/components/schemas/Post.jsonhal-posting_create'
required: true
deprecated: false
parameters: []
@@ -1238,7 +1238,7 @@ paths:
content:
application/merge-patch+json:
schema:
$ref: '#/components/schemas/Post'
$ref: '#/components/schemas/Post-posting_patch'
required: true
deprecated: false
parameters: []
@@ -1500,6 +1500,7 @@ components:
- string
- 'null'
owner:
readOnly: true
'owl:maxCardinality': 1
type:
- string
@@ -1511,7 +1512,7 @@ components:
type:
- string
- 'null'
posting:
post:
'owl:maxCardinality': 1
type:
- string
@@ -1545,6 +1546,7 @@ components:
- string
- 'null'
owner:
readOnly: true
'owl:maxCardinality': 1
type:
- string
@@ -1556,7 +1558,7 @@ components:
type:
- string
- 'null'
posting:
post:
'owl:maxCardinality': 1
type:
- string
@@ -1604,6 +1606,7 @@ components:
- string
- 'null'
owner:
readOnly: true
'owl:maxCardinality': 1
type:
- string
@@ -1615,7 +1618,7 @@ components:
type:
- string
- 'null'
posting:
post:
'owl:maxCardinality': 1
type:
- string
@@ -1635,6 +1638,7 @@ components:
required:
- firstName
- lastName
- partner
properties:
firstName:
type:
@@ -1683,13 +1687,15 @@ components:
type:
- string
- 'null'
postings:
posts:
readOnly: true
type: array
items:
type: string
format: iri-reference
example: 'https://example.com/'
createdAt:
readOnly: true
type:
- string
- 'null'
@@ -1701,6 +1707,7 @@ components:
required:
- firstName
- lastName
- partner
properties:
_links:
type: object
@@ -1758,13 +1765,15 @@ components:
type:
- string
- 'null'
postings:
posts:
readOnly: true
type: array
items:
type: string
format: iri-reference
example: 'https://example.com/'
createdAt:
readOnly: true
type:
- string
- 'null'
@@ -1776,6 +1785,7 @@ components:
required:
- firstName
- lastName
- partner
properties:
'@context':
readOnly: true
@@ -1847,18 +1857,20 @@ components:
type:
- string
- 'null'
postings:
posts:
readOnly: true
type: array
items:
type: string
format: iri-reference
example: 'https://example.com/'
createdAt:
readOnly: true
type:
- string
- 'null'
format: date-time
MediaObject-media_object.read:
Media-media_object.read:
type: object
description: ''
deprecated: false
@@ -1871,7 +1883,7 @@ components:
type:
- string
- 'null'
MediaObject.jsonhal-media_object.read:
Media.jsonhal-media_object.read:
type: object
description: ''
deprecated: false
@@ -1893,7 +1905,7 @@ components:
type:
- string
- 'null'
MediaObject.jsonld-media_object.read:
Media.jsonld-media_object.read:
type: object
description: ''
deprecated: false
@@ -1987,6 +1999,7 @@ components:
- 'null'
format: date-time
contacts:
readOnly: true
type: array
items:
type: string
@@ -2059,6 +2072,7 @@ components:
- 'null'
format: date-time
contacts:
readOnly: true
type: array
items:
type: string
@@ -2145,6 +2159,7 @@ components:
- 'null'
format: date-time
contacts:
readOnly: true
type: array
items:
type: string
@@ -2167,6 +2182,7 @@ components:
- string
- 'null'
owner:
readOnly: true
'owl:maxCardinality': 1
type:
- string
@@ -2193,6 +2209,7 @@ components:
format: iri-reference
example: 'https://example.com/'
comments:
readOnly: true
type: array
items:
$ref: '#/components/schemas/Comment'
@@ -2202,6 +2219,52 @@ components:
- string
- 'null'
format: date-time
Post-posting_create:
type: object
description: ''
deprecated: false
required:
- headline
- message
properties:
headline:
type:
- string
- 'null'
message:
type:
- string
- 'null'
partner:
'owl:maxCardinality': 1
type:
- string
- 'null'
format: iri-reference
example: 'https://example.com/'
contact:
'owl:maxCardinality': 1
type:
- string
- 'null'
format: iri-reference
example: 'https://example.com/'
Post-posting_patch:
type: object
description: ''
deprecated: false
required:
- headline
- message
properties:
headline:
type:
- string
- 'null'
message:
type:
- string
- 'null'
Post.jsonhal:
type: object
description: ''
@@ -2228,6 +2291,7 @@ components:
- string
- 'null'
owner:
readOnly: true
'owl:maxCardinality': 1
type:
- string
@@ -2254,6 +2318,7 @@ components:
format: iri-reference
example: 'https://example.com/'
comments:
readOnly: true
type: array
items:
$ref: '#/components/schemas/Comment.jsonhal'
@@ -2263,6 +2328,45 @@ components:
- string
- 'null'
format: date-time
Post.jsonhal-posting_create:
type: object
description: ''
deprecated: false
required:
- headline
- message
properties:
_links:
type: object
properties:
self:
type: object
properties:
href:
type: string
format: iri-reference
headline:
type:
- string
- 'null'
message:
type:
- string
- 'null'
partner:
'owl:maxCardinality': 1
type:
- string
- 'null'
format: iri-reference
example: 'https://example.com/'
contact:
'owl:maxCardinality': 1
type:
- string
- 'null'
format: iri-reference
example: 'https://example.com/'
Post.jsonld:
type: object
description: ''
@@ -2303,6 +2407,7 @@ components:
- string
- 'null'
owner:
readOnly: true
'owl:maxCardinality': 1
type:
- string
@@ -2329,6 +2434,7 @@ components:
format: iri-reference
example: 'https://example.com/'
comments:
readOnly: true
type: array
items:
$ref: '#/components/schemas/Comment.jsonld'
@@ -2338,6 +2444,36 @@ components:
- string
- 'null'
format: date-time
Post.jsonld-posting_create:
type: object
description: ''
deprecated: false
required:
- headline
- message
properties:
headline:
type:
- string
- 'null'
message:
type:
- string
- 'null'
partner:
'owl:maxCardinality': 1
type:
- string
- 'null'
format: iri-reference
example: 'https://example.com/'
contact:
'owl:maxCardinality': 1
type:
- string
- 'null'
format: iri-reference
example: 'https://example.com/'
User:
type: object
description: ''
@@ -2370,7 +2506,8 @@ components:
- 'null'
active:
type: boolean
postings:
posts:
readOnly: true
type: array
items:
type: string
@@ -2423,7 +2560,8 @@ components:
- 'null'
active:
type: boolean
postings:
posts:
readOnly: true
type: array
items:
type: string
@@ -2490,7 +2628,8 @@ components:
- 'null'
active:
type: boolean
postings:
posts:
readOnly: true
type: array
items:
type: string


Chargement…
Annuler
Enregistrer