A an application that has animals for adoption at shelters. This is intended to demonstrate an understanding of building an API in Ruby and Rails.
- Clone repository.
- Enter project root directory and type "bundle install" to install all necessary gems.
- Type "rake db:create" to create the databases.
- Type "rake db:seed" to seed the products and reviews
- Sign into Postman to test API calls
Behavior | Route Input | Output |
---|---|---|
GET animals | localhost:3000/animals | Returns list of all animals |
GET animals ID | localhost:3000/animals/{id} | Returns the animal record with the given id |
GET animals random | localhost:3000/animals/random | Returns the animal record with the given id |
GET animals search | localhost:3000/animals/search | String required for term to search for |
POST animals | localhost:3000/animals | Create a new animal record |
Update animals | localhost:3000/animals/{id} | Allows shelter to make updates |
DELETE animal | localhost:3000/animals/{id} | Deletes an animal record |
No known bugs
Please contact us if you have any issues at: [email protected]
- Ruby
- PostgreSQL
- RubyGems
- Atom
- GitHub
- Rails
Thank you to my teachers and partners this week. I wouldn't be where I am without you all.
This software is licensed under MIT license.
Copyright (c) 2019 Jessica Doss