TheXobbitt / rest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run in docker

  1. Start docker compose
docker-compose up -d --build
  1. Install composer autoloader
composer install
  1. Run in postman
POST http://localhost/users/login

with credentials:

username: user
password: user
  1. After that add to headers
Authorization - Bearer <token>
  1. 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>

OAuth server

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.

About


Languages

Language:PHP 99.3%Language:JavaScript 0.7%