Animal Shelter API

By Jesse Hoare Evans

Description

API app that allows the user to return information regarding animals that are listed at an animal shelter

Functionality

Endpoints for GET (all and by id), POST, PUT and DELETE.

A RANDOM endpoint that randomly returns an animal.

A second custom endpoint that accepts a name and returns all animals that share that name.

Serialization of parameter (name, breed and age)

Thorough exception handling.

Complete testing with request specs.

Randomized data with Faker.

Installation


$ git clone https://github.com/jessehoareevans/api-shelter.git
$ cd animal_shelter

Install required gems:

$ bundle install

Install postman app:

https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en

Start postgres:

$ postgres

Create databases:

$ rails db:create
$ rails db:migrate
$ rails db:seed

Start the webserver:

$ rails s

Using this app

  1. Open the postman app

Known Bugs

NA

Technologies Used

Ruby on Rails, HTML, CSS

License

MIT

Copyright (c) 2017 Jesse Hoare Evans