Commit d5dba036 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Add note request to type report writer

parent 86fc95ff
Pipeline #24371 passed with stages
in 2 minutes and 5 seconds
......@@ -11,38 +11,38 @@ 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']
......
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