Documentation

You can copy paste the code in your browser console to quickly test Store API.

Auth

Login

fetch('STORE_CLIENT_API_BASE_URL/auth/login',
  {
    method: 'POST',
    body: JSON.stringify({
      email: '[email protected]',
      password: 'simple_password'
    }),
    headers: {
      'Content-type': 'application/json; charset=UTF-8',
    },
  })
  .then(response => response.json())
  .then(json => console.log(json))

Registration

fetch('STORE_CLIENT_API_BASE_URL/auth/register',
  {
    method: 'POST',
    body: JSON.stringify({
      name: 'Alex Pi',
      email: '[email protected]',
      number: 12025550108,
      password: 'Simple12345'
      password_repeat: 'Simple12345'
    }),
    headers: {
      'Content-type': 'application/json; charset=UTF-8',
    },
  })
  .then(response => response.json())
  .then(json => console.log(json))

Refresh Token

fetch('STORE_CLIENT_API_BASE_URL/auth/refresh',
  {
    method: 'POST',
    body: JSON.stringify({
      refresh_token: 'asd0909asf99f.0sd9fs9df09sd0fi4as4sd0909asf99f0sd9f.s9df09sd0fi',
    }),
    headers: {
      'Content-type': 'application/json; charset=UTF-8',
    },
  })
  .then(response => response.json())
  .then(json => console.log(json))