- Start docker compose
docker-compose up -d --build
- Install composer autoloader
composer install
- Run in postman
POST http://localhost/users/login
with credentials:
username: user
password: user
- After that add to headers
Authorization - Bearer <token>
- Run endpoints with articles
OPTIONS http://localhost/articles
GET http://localhost/articles
POST http://localhost/articles
OPTIONS http://localhost/articles/<id>
GET http://localhost/articles/<id>
PATCH http://localhost/articles/<id>
PUT http://localhost/articles/<id>
DELETE http://localhost/articles/<id>
POST http://localhost:8080/token
Available only Resource Owner Password Credentials grant type
API server sends http requests to OAuth server via curl and docker network.