https://github.com/mogahidgaffar/laravel9-todo-app-apis-with-jwt-authentication
To-Do Api endpoints using JWT auth in laravel
https://github.com/mogahidgaffar/laravel9-todo-app-apis-with-jwt-authentication
Last synced: 7 months ago
JSON representation
To-Do Api endpoints using JWT auth in laravel
- Host: GitHub
- URL: https://github.com/mogahidgaffar/laravel9-todo-app-apis-with-jwt-authentication
- Owner: MogahidGaffar
- Created: 2022-08-22T17:38:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-23T07:35:57.000Z (about 3 years ago)
- Last Synced: 2025-01-15T18:39:46.520Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 991 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## What is Rest API?
The REST API (also known as the RESTful API) is an application programming interface (API or web API) that follows the specifications of the REST architecture style and enables interaction with RESTful web services. REST stands for Representative State Transition and was developed by the computer scientist Roy Fielding.## When should you use JSON Web Tokens?
Here are some scenarios where JSON Web Tokens are useful:
1. Authorization: This is the most common scenario for using JWT. Once the user is logged in, each subsequent request will include the JWT, allowing the user to access routes, services, and resources that are permitted with that token. Single Sign On is a feature that widely uses JWT nowadays, because of its small overhead and its ability to be easily used across different domains.2. Information Exchange: JSON Web Tokens are a good way of securely transmitting information between parties. Because JWTs can be signed—for example, using public/private key pairs—you can be sure the senders are who they say they are. Additionally, as the signature is calculated using the header and the payload, you can also verify that the content hasn't been tampered with.
### Whats this app provide ?
* Login api endpoint.
* Register api endpoint.
* Logout api endpoint.
* Create to-do api endpoint.
* Update to-do api endpoint.
* Show to-dos api endpoint.
* Delete to-do api endpoint.## Built With
* Laravel
* Bootstrap
* Baldes
* Mysql DB#### Register Endpoint
#### Login Endpoint
#### Logout Endpoint
#### Create To-Do Endpoint
#### Show All To-Dos Endpoint
#### Show single To-Dos Endpoint
#### Update To-Do Endpoint
#### Delete To-Do Endpoint
## Getting Started
This is an example of how you may give instructions on setting up your project locally.
To get a local copy up and running follow these simple example steps.### Installation
_Below is an example of how you can instruct your audience on installing and setting up your app
1. Clone the repo
```sh
gh repo clone MogahidGaffar/laravel9_ToDoApp_jwt_Api_authentication
```
2. Install NPM packages
```sh
npm install
```
3. composer update
```sh
composer update
```3. Database Migrattion
```sh
php artisan migrate
```
3. Server establish
```sh
php artisan serve
```## Contact
Mogahid Gaffar - mogahidgaffar@gmail.com