-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Background
We want a way for the ARO frontend to get and update information about the current user. This task is to implement this feature
Requirements
Create the endpoints for /api/v1/aro/endpoints/aro_user.py
Post/
Creates a new user based on the first name, email, call sign, phone number, optionally email. Returns the data sent along with the user's id.
Get /
Gets the current user’s info. See the db schema for information on what data to be sent back. Return the data under the data field.
Put /
Modifies the current user’s info based on the payload. Check the db schema for data that can be modified. The user can’t change their email address or password using this method. User can't modify ID
Return the new user’s info under the data field. So basically you will have to reuse the logic that was in get /