Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

TheXobbitt/rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published