@@ -1248,6 +1248,44 @@ paths:
12481248 $ref: '#/components/schemas/Error'
12491249 tags:
12501250 - series
1251+ {% if version >= (1, 4) %}
1252+ patch:
1253+ summary: Link series to set a relationship between them
1254+ description: |
1255+ Apply a partial update to a Series, where only a few fields of the model are allowed:
1256+ - previous_series: Set the provided series as coming before the one specified by the id;
1257+ - subsequent_series: Set the provided series as coming after the one specified by the id;
1258+ - required_series: Set the provided series as requirements for one specified by the id;
1259+ - required_by_series: Set the series specified by the id as a requirement for the provided ones.
1260+ operationId: series_link
1261+ responses:
1262+ '200':
1263+ description: 'Updated series'
1264+ content:
1265+ application/json:
1266+ schema:
1267+ $ref: '#/components/schemas/Series'
1268+ '400':
1269+ description: 'Bad request'
1270+ content:
1271+ application/json:
1272+ schema:
1273+ $ref: '#/components/schemas/Error'
1274+ '403':
1275+ description: 'Forbidden'
1276+ content:
1277+ application/json:
1278+ schema:
1279+ $ref: '#/components/schemas/Error'
1280+ '404':
1281+ description: 'Not found'
1282+ content:
1283+ application/json:
1284+ schema:
1285+ $ref: '#/components/schemas/Error'
1286+ tags:
1287+ - series
1288+ {% endif %}
12511289 /api/{{ version_url }}users:
12521290 get:
12531291 summary: List users.
@@ -2699,6 +2737,36 @@ components:
26992737 $ref: '#/components/schemas/PatchEmbedded'
27002738 readOnly: true
27012739 uniqueItems: true
2740+ {% if version >= (1, 4) %}
2741+ previous_series:
2742+ title: Previous series
2743+ type: array
2744+ items:
2745+ $ref: '#/components/schemas/Series'
2746+ readOnly: true
2747+ uniqueItems: true
2748+ subsequent_series:
2749+ title: Subsequent series
2750+ type: array
2751+ items:
2752+ $ref: '#/components/schemas/Series'
2753+ readOnly: true
2754+ uniqueItems: true
2755+ required_series:
2756+ title: Required series
2757+ type: array
2758+ items:
2759+ $ref: '#/components/schemas/Series'
2760+ readOnly: true
2761+ uniqueItems: true
2762+ required_by_series:
2763+ title: Required by series
2764+ type: array
2765+ items:
2766+ $ref: '#/components/schemas/Series'
2767+ readOnly: true
2768+ uniqueItems: true
2769+ {% endif %}
27022770 User:
27032771 type: object
27042772 title: User
0 commit comments