Skip to content

dieume-n/blog

Repository files navigation

Blog API

Laravel 5.7 API that uses the API resources. This is a simple blog API allowing you to perform CRUD operation of articles and give you pagination out of the box

Quick setup

# Install Dependencies
composer install

# Run Migrations
php artisan migrate

# Import Articles
php artisan db:seed

# Add virtual host if using Apache

# If you get an error about an encryption key
php artisan key:generate

Endpoints

List all articles with links and meta

GET api/articles

Get single article

GET api/article/{id}

Delete article

DELETE api/article/{id}

Add article

POST api/article
title/body

Update article

PUT api/article/{id}
title/body

App Info

Author

Luteranya Nyange

Credit

Brad Traversy Traversy Media

Version

1.0.0

License

This project is licensed under the MIT License

About

Laravel Rest Resource API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published