Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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