Commit 5356ded2 authored by Matthias's avatar Matthias
Browse files

fix swagger documentation

parent 841e66e4
Pipeline #24450 passed with stages
in 2 minutes and 54 seconds
......@@ -11,39 +11,40 @@ class WriteTypeReportToDrupal(Resource):
Write a report for an recordset or institution Drupal
---
tags:
- reporting
- reporting
parameters:
- in: body
name: body
required: true
schema:
item:
type: object
properties:
node_type:
type: string
example: 'recordset'
description: Either 'recordset' or 'institution'.
id:
type: string
example: 'sag'
description: The memobase id of the record set or institution.
status:
type: boolean
example: True
description: The status
report:
type: string
example: "Failed to process record set."
description: Text message of the report.
- in: body
name: body
required: true
schema:
item:
type: object
properties:
node_type:
type: string
example: 'recordset'
description: Either 'recordset' or 'institution'.
id:
type: string
example: 'sag'
description: The memobase id of the record set or institution.
status:
type: boolean
example: True
description: The status
report:
type: string
example: "Failed to process record set."
description: Text message of the report.
responses:
200:
description: It was successful
404:
description: No content with such a id found
500:
description: There was a problem
200:
description: It was successful
404:
description: No content with such a id found
500:
description: There was a problem
"""
try:
node_type = request.json[0]['node_type']
identifier = request.json[0]['id']
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment