Skip to content

AlissonIC/api-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-php

This is a RESTFUL API made to speed up the development time of applications that use PHP as a base, in less than 5 minutes it is possible to obtain endpoints for queries already with security and pre-configured good practices.

Login auth

Example to login and get the bearer token:

curl --location --request POST 'http://localhost/api/v1/auth/login' \
--form 'mail="[email protected]"' \
--form 'password="202cb962ac59075b964b07152d234b70"'

Request

All requests need a bearer token generated in the login endpoint, the token can be passed in the request header or in the content (error prevention for servers that block authorization in the header).

Return

All returns produce a json with status and data elements, when the request does not produce errors, the return will be "success" and the data will be returned within the "data" object of the contract, the status will be "error" and "data" will display the reason why the request was not successful.

About

This is a RESTFUL API based PHP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages