Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akrabat/slim-bookshelf-api
A simple API written in Slim Framework
https://github.com/akrabat/slim-bookshelf-api
Last synced: 3 months ago
JSON representation
A simple API written in Slim Framework
- Host: GitHub
- URL: https://github.com/akrabat/slim-bookshelf-api
- Owner: akrabat
- License: bsd-3-clause
- Created: 2017-01-30T12:19:46.000Z (almost 8 years ago)
- Default Branch: slim4
- Last Pushed: 2024-03-26T11:36:50.000Z (10 months ago)
- Last Synced: 2024-10-17T04:41:22.459Z (3 months ago)
- Language: PHP
- Size: 164 KB
- Stars: 90
- Watchers: 12
- Forks: 30
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slim Bookshelf API
A simple [Slim Framework][1] API.
## Branches
* [slim3](https://github.com/akrabat/slim-bookshelf-api/tree/slim3) for a Slim 3 version with OAuth and a website.
* [slim4](https://github.com/akrabat/slim-bookshelf-api) for a Slim 4 version with both HTTP and a GraphQL APIs.## Install
1. Run the migrations:
$ composer migrate
2. Load the `api/db/fixtures/default.sql` into your database:
$ cat api/db/fixtures/default.sql | sqlite3 api/db/bookshelf.db
3. Run the API:
$ php -S 0.0.0.0:8888 -t public/
4. Access the API:
* HTTP: `http://localhost:8888/authors` - [JSON-API][2] compatible
* GraphQL: `http://localhost:8888/graphql` - [GraphiQL][3]/[Postman][4]/[Paw][5] compatible for exploration[1]: https://www.slimframework.com
[2]: https://jsonapi.org
[3]: https://chrome.google.com/webstore/detail/graphiql-extension/jhbedfdjpmemmbghfecnaeeiokonjclb
[4]: https://www.postman.com
[5]: https://paw.cloud