🌐 Gateway Service
The Gateway Service is the entry point to the ExerciseDB API. It is responsible for:
- Authenticating requests using a valid RapidAPI key
- Forwarding requests to the appropriate internal service (such as the Exercise or Image Service)
- Exposing a status endpoint to check if the API is online
By default, every request made to the ExerciseDB API through RapidAPI automatically passes through the gateway — no additional configuration is required.
✅ Endpoint: GET /status
This endpoint allows you to confirm that the ExerciseDB API is reachable and operational.
fetch("https://exercisedb.p.rapidapi.com/status?rapidapi-key=YOUR_API_KEY")
.then((res) => res.text())
.then((data) => console.log("API Status:", data))
.catch((err) => console.error(err));
📝 Notes
- A successful response returns
200 OK
with the status of each service. - A valid API key is required for all requests. You can authenticate using:
- The
rapidapi-key
query parameter - The
X-RapidAPI-Key
request header
- The
- This endpoint is useful for:
- Uptime monitoring
- Verifying that your API key is working
- Basic integration checks
- No additional configuration is needed — all requests to the ExerciseDB API on RapidAPI automatically pass through the gateway.