- Create APIs in RESTful service to uses GET, POST, PUT, PATCH & DELETE verbs to perform actions
- Create Authentication server for JWT token generation and validation
This app is created usign S.O.L.I.D. design pattern with 'Program to Interface' development methodology.
The API returns:
- Status 1 for a successful request along with data (if requires)
- Status 0 for an unsuccessful request which is an error.
App is built on core PHP 8.0.9 and MySQL 8.0.26
- Do not use:
/api/itemstore/v1/getallitems
/api/itemstore/v1/createitem
/api/itemstore/v1/deleteitem
- A trailing forward slash (/) should not be included in URIs
Exapmle: /api/itemstore/v1/items/
Program to interfaces, not implementations
Implemented PSR-11
http://[host]:[port]/api/{service name}]/v{version number}/{resource}/{resource ID}
- Items URI : http://127.0.0.1:8080/api/itemstore/v2/items/1 [
requires JWT token on header
] - Users URI : http://127.0.0.1:8080/api/itemstore/v2/users/1 [
requires JWT token on header
] - Authentication URI: http://127.0.0.1:8080/api/itemstore/v2/auth/login [
JWT token generation
]
- Program to interfaces
- Object container - PSR-11
- CORS Compatible
- S.O.L.I.D. Disign
- Traits
- JWT Authentication
- Microservices Architecture
- Shorting & Filtering
- Pagination