Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradtraversy/larticles_api
Laravel 5.5 API using resources
https://github.com/bradtraversy/larticles_api
Last synced: 3 months ago
JSON representation
Laravel 5.5 API using resources
- Host: GitHub
- URL: https://github.com/bradtraversy/larticles_api
- Owner: bradtraversy
- Created: 2017-12-30T00:34:09.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T16:57:37.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T21:06:33.892Z (9 months ago)
- Language: PHP
- Size: 1.7 MB
- Stars: 194
- Watchers: 13
- Forks: 132
- Open Issues: 19
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Larticles API
> Laravel 5.5 API that uses the API resources. This is an API for an article CRUD app
## Quick Start
``` bash
# 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
``` bash
GET api/articles
```
### Get single article
``` bash
GET api/article/{id}
```### Delete article
``` bash
DELETE api/article/{id}
```### Add article
``` bash
POST api/article
title/body
```### Update article
``` bash
PUT api/article
article_id/title/body
``````
## App Info
### Author
Brad Traversy
[Traversy Media](http://www.traversymedia.com)### Version
1.0.0
### License
This project is licensed under the MIT License