Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/napestershine/simple-lumen-api
A simple REST API based on Lumen
https://github.com/napestershine/simple-lumen-api
Last synced: 23 days ago
JSON representation
A simple REST API based on Lumen
- Host: GitHub
- URL: https://github.com/napestershine/simple-lumen-api
- Owner: napestershine
- Created: 2018-08-04T11:01:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2016-01-19T10:22:33.000Z (almost 9 years ago)
- Last Synced: 2023-03-01T15:51:32.316Z (over 1 year ago)
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Products Api
This is a REST API for managing products and it is based on the Lumen framework.
The availavle endpoints are:
- `GET api/v1/products`
- `GET api/v1/products/{id}`
- `POST api/v1/products`
- `PUT api/v1/products/{id}`
- `DELETE api/v1/products/{id}`### Installation
First you need to clone the repo and create a .env file or you can just copy the example.env file.Then in the root directory run the following commands
```sh
$ composer install
$ php artisan migrate
$ php artisan db:seed
```### Testing
Tests are written for each endpoint. You can run tests by just running `phpuinit` in the root directory.