Is your feature request related to a problem? Please describe.
The request body should have the UserAdditionalInfo keys with the stripe_id omitted. The endpoint should be created in server\src\service-layer\controllers\AdminController.ts.
You will have to make use of the UserDataService to create a new document.
Following this, you should return the uid of the user that was created. Note that the ResponseModels must extend CommonResponse so we have a defined data format in case of an error.
Tests MUST be written for this in routes.test.ts - use the command yarn firebase-test "jest routes" to test this.
Is your feature request related to a problem? Please describe.
The request body should have the
UserAdditionalInfo
keys with thestripe_id
omitted. The endpoint should be created inserver\src\service-layer\controllers\AdminController.ts
.You will have to make use of the
UserDataService
to create a new document.Following this, you should return the
uid
of the user that was created. Note that theResponseModels
must extendCommonResponse
so we have a defined data format in case of an error.Tests MUST be written for this in
routes.test.ts
- use the commandyarn firebase-test "jest routes"
to test this.BEFORE MERGING
yarn workspace server tsoa spec-and-routes
)git fetch origin master:master
, thengit rebase master
orgit merge master
)