Skip to content

fullstackondemand/php-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Php Rest API Application

Installation

Run the Composer command to install the latest stable version of RestJS:

composer required restjs/php-rest-api

Used Feature

json, headers_authorization, upload_file, access_token

Quick links

  1. Get API for GET, POST, PUT, DELETE
  2. Upload File for POST, DELETE

API Routes

HTTP Method Path Action Scope Desciption
GET /<collection_name> index document:list Get all document
POST /<collection_name> store document:create Create an document
GET /<collection_name>/{_id} show document:read Fetch an document by id
PUT /<collection_name>/{_id} update document:write Update an document by id
DELETE /<collection_name>/{_id} destroy document:delete Delete an document by id