Earth-Miles-Challenge / Express-Server

Backend server powered by Express.js
0 stars 0 forks source link

API Endpoint: Add a new athlete #4

Closed ericnicolaas closed 1 year ago

ericnicolaas commented 1 year ago

Add a new athlete.

Request

Endpoint: POST /athlete/

Body:

Maybe include an optional parameter that sets whether to onboard the athlete's activities (#3).

The API endpoint should only be accessible from the client app; all other requests should be denied.

Response

The response object should contain the athlete's ID.

ericnicolaas commented 1 year ago

Closing this as we have opted for a different approach, where the Strava connection is created via the Express server instead of via the client.