Make HTTP requests using curl
, and AJAX for:
- Deleting a resource.
Set up the client:
- Fork and clone this repository.
- Create and checkout a new branch (training).
- Install dependencies with
npm install
.
We'll make requests of and receive responses from the library-api:
- Open a new terminal (window or tab).
- Change into the directory where your library-api lives.
- Run
rails s
orrails server
to start the API(they do the same thing).
We're now ready to make requests.
- Delete /books/:id using curl
- Make a form to delete books
- Delete /books/:id using AJAX
- All content is licensed under a CCBYNCSA 4.0 license.
- All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact [email protected].