An API that displays blog's post, creating new versions with new features without altering the old ones.
Client: TailwindCSS
Server: Laravel
- Clone this repository.
- Navegate to the project directory
- Run
composer install
to install the dependencies.
- Configure your environment variables.
- Run
php artisan key:generate
to generate an application key.
- Run
php artisan migrate
to create the tables in your database.
- Run
php artisan db:seed
to fill the database with test data.
Type |
Path |
Description |
Params |
Return |
Post |
/api/login |
Validate that the user exists |
name, email, password |
token |
Type |
Path |
Description |
Get |
/api/v1/posts |
Display all posts |
Type |
Path |
Description |
Get |
/api/v1/posts/${id} |
Display one specific post |
Type |
Path |
Description |
Delete |
/api/v1/posts/${id} |
Delete one post |
Type |
Path |
Description |
Get |
/api/v2/posts |
Display all posts |
Type |
Path |
Description |
Get |
/api/v2/posts/${id} |
Display one specific post |
The Laravel framework is open-sourced software licensed under the MIT license.