Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Import Process
Import API
Commits
d5dba036
Commit
d5dba036
authored
Apr 09, 2021
by
Jonas Waeber
Browse files
Add note request to type report writer
parent
86fc95ff
Pipeline
#24371
passed with stages
in 2 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
import_api_app/resources/WriteTypeReportToDrupal.py
View file @
d5dba036
...
...
@@ -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'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment