Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.3 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.3 KB

edi-wholesaler

Build Status Coverage Status

Requirements

  • PHP 7.0 or above
  • openssl

Install

  1. Install the dependencies using the composer install command;
  2. Assigns write permission to the var/logs and var/cache directories.

JWT Authentication

JWT Authentication has been implemented in this API. To authenticate using a token, send a POST request to the /user_token route with the header Content-Type: application/json and the following body:

{
  "_username": "teste",
  "_password": "1234"
}

Use the token in the other requests that will be made, including the Authorization: Bearer <token> header.

Clear production cache

By default, the environment in which the API is run is a production environment. To avoid loss of performance, Symfony caches its key features and needs to be removed whenever a configuration or source change is made.

To clear the production cache, run the command php bin/console cache:clear --env=prod.