Skip to content

Connect with the API

Base URL

The base URL of the api is https://api.pokedexercice.ch.

Authentication

To authenticate yourself, all requests need to contain a bearer token in their Authorization header.

headers: {
Authorization: `Bearer YOUR_TRAINER_TOKEN`
}

If you don’t have a token yet, go to the registration page.

Note that Professor Oak already did the setup for you in his Pokedex Angular application, so you shouldn’t need to do anything.