Skip to content

vsguts/rest-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST Prototype

Simple REST prototype

INSTALLATION

Clone repo

Console:

git clone git@github.com:vsguts/rest-prototype.git

REQUIREMENTS

  • PHP 7 or higher

RUNING

PHP builtin server

Start PHP builtin server:

cd public
php -S localhost:8000

And open the following URL: http://localhost:8000

USING

Authenticate

Login: root

Password: root

You need to set Authorization.

Header must contain 'Basic ' . base64_encode($login . ':' . $password).

Example:

Authorization: Basic cm9vdDpyb290

Available formats

  • application/json
  • text/plain

You need to set Accept header, to use this feature

Available routes

Without Authenticate

  • GET /

Authenticate required

About

Simple REST prototype

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages