https://github.com/vyzaldysanchez/services-call-storage
UNAPEC project to serve as API calls registry
https://github.com/vyzaldysanchez/services-call-storage
api-rest api-server lumen lumen-php-framework php php7
Last synced: 3 months ago
JSON representation
UNAPEC project to serve as API calls registry
- Host: GitHub
- URL: https://github.com/vyzaldysanchez/services-call-storage
- Owner: vyzaldysanchez
- Created: 2018-03-08T07:22:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-17T17:34:04.000Z (about 7 years ago)
- Last Synced: 2025-01-01T17:13:53.218Z (4 months ago)
- Topics: api-rest, api-server, lumen, lumen-php-framework, php, php7
- Language: PHP
- Homepage:
- Size: 41 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# services-call-storage
UNAPEC project to serve as API calls registry.Must have ([PHP](https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04) version >= 7.x) installed, also [composer](https://getcomposer.org/download/) to install dependencies.
[Upgrading PHP to version `7.x`.](https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-ubuntu-14-04)
In order for you to get this working, you must run the following commands:
Run `composer install` to get all the dependencies.
Run `php artisan migrate` to generate the database.
Run `php -S localhost:8050 -t public` to run your server locally.
Do not forget to create your own `.env` file to setup the configuration.
# API endpoints
`GET /api/services` will return all the services called from 3rd party apps consuming this API.
`GET /api/services/:name?since=YYYY-MM-DD[&to=YYYY-MM-DD]` will return all the services within the date range in `YYYY-MM-DD` format by name. (`:to` is optional)
To register a service call:
```
POST /api/servicesbody -> {
name: 'service-name'
}
```See it here in [heroku](http://pure-fortress-91669.herokuapp.com/).
Happy Coding!! :computer: :heart: