A Flask-API to handle publications of research data
Contact information:
fokus@izus.uni-stuttgart.de
License: MIT
adds new user
Code
Description
Schema
200
success
object
400
required information missing
422
unprocessable, user could not be added
/roles/{identifier}/token
get (new) JSON Web Token for authentication
Name
Located in
Description
Required
Schema
identifier
path
identifier of registered user
Yes
string
Code
Description
Schema
200
success
object
400
required information missing
401
authentication missing
403
not allowed, required permission missing
422
unprocessable, user could not be added
gets all available publications
Code
Description
Schema
200
success
object
401
authentication missing
403
not allowed, required permission missing
add a new publication
Name
Located in
Description
Required
Schema
publication
body
The publication to create
No
Publication
Code
Description
Schema
200
success
object
400
required information missing
401
authentication missing
403
not allowed, required permission missing
422
unprocessable, user could not be added
get the publication with id {pid}
Name
Located in
Description
Required
Schema
pid
path
Yes
integer
Code
Description
Schema
200
success
object
400
required information missing
401
authentication missing
403
not allowed, required permission missing
422
unprocessable, user could not be added
deletes the publication with id {pid}
Name
Located in
Description
Required
Schema
pid
path
Yes
integer
Code
Description
Schema
200
success
object
401
authentication missing
403
not allowed, required permission missing
404
publication not found
422
unprocessable, publication could not be deleted
/publications/{pid}/giveok
indicates, that author has finished checklist
Name
Located in
Description
Required
Schema
pid
path
Yes
integer
Code
Description
Schema
200
success
object
401
authentication missing
403
not allowed, required permission missing
404
required information missing
409
WorkflowError, giving ok to already published or exported publication
422
unprocessable, user could not be added
/publications/{pid}/publish
publishes a data publication
Name
Located in
Description
Required
Schema
pid
path
Yes
integer
Code
Description
Schema
200
success
object
401
authentication missing
403
not allowed, required permission missing
404
required information missing
409
WorkflowError, giving ok to already published or exported publication
422
unprocessable, user could not be added
/publications/{pid}/export
exports a data publication
Name
Located in
Description
Required
Schema
pid
path
Yes
integer
Code
Description
Schema
200
success
object
401
authentication missing
403
not allowed, required permission missing
404
required information missing
409
WorkflowError, trying to export publication that is not published
422
unprocessable, user could not be added
/publications/{pid}/feedbacks
returns all feedback for publication with id {pid}
Name
Located in
Description
Required
Schema
pid
path
Yes
integer
Code
Description
Schema
200
success
object
401
authentication missing
403
not allowed, required permission missing
404
publication not found
adds a new feedback to publication with id {pid}
Name
Located in
Description
Required
Schema
pid
path
Yes
integer
feedback
body
No
FeedbackShort
Code
Description
Schema
200
success
object
400
text is missing in JSON-Body
401
authentication missing
403
not allowed, required permission missing
404
publication not found
422
unprocessable, feedback could not be saved in database
/publications/{pid}/feedbacks/{fid}
gets a specific feedback
Name
Located in
Description
Required
Schema
pid
path
ID of the publication
Yes
integer
fid
path
ID of the feedback
Yes
integer
Code
Description
Schema
200
success
object
401
authentication missing
403
not allowed, required permission missing
404
publication or feedback not found
409
conflict, feedback does not belong to publication
changes the text of a specific feedback
Name
Located in
Description
Required
Schema
pid
path
Yes
integer
fid
path
ID of the feedback
Yes
integer
feedback
body
No
FeedbackShort
Code
Description
Schema
200
success
object
400
required information missing
401
authentication missing
403
not allowed, required permission missing
404
publication or feedback not found
409
conflict, feedback does not belong to publication
422
unprocessable, feedback could not be updated
/publications/{pid}/feedbacks/{fid}/done
marks a feedback as done
Name
Located in
Description
Required
Schema
pid
path
Yes
integer
fid
path
Yes
integer
Code
Description
Schema
200
success
object
400
required information missing
401
authentication missing
403
not allowed, required permission missing
404
publication or feedback not found
409
conflict, feedback does not belong to publication
422
unprocessable, feedback could not be updated
Name
Type
Description
Required
id
integer
Yes
invocationId
string
Yes
doi
string
Yes
displayName
string
Yes
status
string
No
okAuthor
dateTime
No
published
dateTime
No
exported
dateTime
No
Name
Type
Description
Required
id
integer
Yes
text
string
Yes
done
boolean
Yes
publication
Publication
No
author
Role
No
Name
Type
Description
Required
text
string
Yes
Name
Type
Description
Required
id
integer
Yes
name
string
Yes
identifier
string
No
roles
[ string ]
No