mirror of
https://github.com/joaovitoriasilva/endurain.git
synced 2026-01-10 08:17:59 -05:00
[frontend] added docs icon with link to documentation in footer [backend] removed unused STRAVA_DAYS_ACTIVITIES_ONLINK env variable [README] removed unused STRAVA_DAYS_ACTIVITIES_ONLINK env variable [docs] updated docs
622 B
622 B
Developer guide
API Integration (v0.3.0+)
Endurain supports integration with other apps:
- For web apps, the backend sends access/refresh tokens as HTTP-only cookies.
- For mobile apps, tokens are included in the response body.
API Requirements
- Add a header: Every request must include an
X-Client-Typeheader with eitherwebormobileas the value. Requests with other values will receive a403error. - Login and refresh endpoint:
/api/v1/tokenand/api/v1/refresh. - Activity Upload: Use the
/api/v1/activities/create/uploadendpoint (expects a .gpx or .fit file).