a Laravel based API in PHP Weather API Documentation
#Requirements
• Vs code
• Thunder Client
• PHP Version 7.4 or higher
RUNNING THE PROJECT
Create database “weather_api” in php myadmin and then Install composer. Then Run php artisan migrate to install database tables. Then run php artisan serve
Base URL : http://127.0.0.1:8000/api
Register URL : http://127.0.0.1:8000/api/register
Method : POST
#Params:
• name:String
• email:String
• password:String
#Response:
Type : JSON
Values :
• status:String
• message:String
#Login URL : http://120.0.0.1:8000/login
Method : POST
#Params:
• email:String
• password:String
#Response:
Type : JSON
#Params :
• status:String
• access_token:String
• token_type:String
• expires_in:int
• message