FAQ | This is a LIVE service | Changelog

Expand Account model to hold user details and expose them through the API

Description

This task is to add user details to the Account model and expose them through the API where the frontend can access them when authenticated.

Further details

The user details that need to be added are:

  • Name (this is a naive string field, no assumption about what this is composed of)
  • Affiliation
  • College

This will be as a separate model with a OneToOne mapping to the user account.

The API endpoint that we currently have (/v1alpha1/account/) can be expanded to add these details, as a flat serialised structure.

Task list

  • Add user details to new modelAccountDetails
  • Add 1 to 1 mapping from Account to AccountDetails
  • Expose user details on existing /v1alpha1/account/ API endpoint

Acceptance criteria

  • Account details are exposed through the existing /v1alph1/account/ API endpoint

Links/references

Edited by Mike Knee