GET /me
Retrieves the current trainer model.
URL
https://api.pokedexercice.ch/me
Parameters
No parameters
Return
200
{ id: number; name: string; created_at: string; updated_at: string;}
Example
fetch('https://api.pokedexercice.ch/me', { method: 'GET', headers: { 'Authorization': `Bearer MY_PERSONAL_TOKEN` }});
Response
{ "data": { "id": 1, "name": "Ash", "created_at": "1997-04-01T16:20:00.000000Z", "updated_at": "1997-04-01T16:20:00.000000Z" }}