Comment on page
Admin
Use the API to managing users, keys, and access as PDAP staff
https://data-sources.pdap.io
post
[base-url]
/user
Creates a new user.
Users can sign up for an account through the post function in resources/User.py. The user's password is hashed using werkzeug.security’s generate_pasword_hash function. The user's email and hashed password is stored in the users table in the Data Sources database.
Parameters
Body
email*
String
User's email - must be unique
password*
String
User's password
Responses
201: Created
User successfully created
400: Bad Request
Failed to create user
get
[base-url]
/user
Logs in the user and returns an API key.
Last modified 16d ago