Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ullenius/book-api-js
Book Database API web app
https://github.com/ullenius/book-api-js
crud es6 javascript vanilla-javascript
Last synced: 8 days ago
JSON representation
Book Database API web app
- Host: GitHub
- URL: https://github.com/ullenius/book-api-js
- Owner: ullenius
- Created: 2020-08-28T10:52:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T13:11:02.000Z (about 2 years ago)
- Last Synced: 2024-11-08T10:50:40.313Z (2 months ago)
- Topics: crud, es6, javascript, vanilla-javascript
- Language: JavaScript
- Homepage:
- Size: 86.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Book Database Web App
Lets you view, create, delete and update books in a remote book database.Client CRUD web app for the
[Forverkliga Database API](https://www.forverkliga.se/JavaScript/api/crud.php).## Screenshot
![Screenshot of app listing 4 books](screenshot.png)## Summary of API
The *API* itself simulates a poorly designed Book Database API with CRUD-functionality.1. The API has a high likelihood of failing. On every operation.
2. The API returns `HTTP 200` on every operation
3. The API returns a `JSON` but the MIME-type is erroneously set to `text/html`.
4. The API accepts only query-parameters.
5. Only `GET` is used.## Specs
* The app can request a API-key
* All AJAX-calls are repeated until they succeed (with a limit of 10 tries).
* CRUD functionality:
* Add data to database
* View data in database
* Modify data in database
* Delete data## Get Started
Disable CORS in your browser (CORS everywhere extension) or launch a simple
Python webserver in the app's root folder:~~~sh
$ python -m SimpleHTTPServer 8080
~~~# Requirements
ES6