This is API that returns details about state and national parks. You can search by park name as well and there is a route for returning a random park.
Run these following commands in the terminal
git clone https://github.com/jaybones90/park-lookup-api-RAILS.git
cd park-lookup-api-RAILS
bundle install
rails db:create
rails db:migrate
rails db:seed
rails server
Usage | METHOD | URL | Params |
---|---|---|---|
See All Parks | GET | localhost:3000/api/v1/parks |
|
See A Specific Park | GET | localhost:3000/api/v1/parks/:id |
|
Search By Park Name | GET | localhost:3000/api/v1/parks?name= |
name |
See A Random Park | GET | localhost:3000/api/v1/park/random |
|
Create A Park | POST | localhost:3000/api/v1/parks |
name, city, state, category(national or state) |
Update A Park | PATCH | localhost:3000/api/v1/parks/:id |
name, city, state, category(national or state) |
Delete A Park | DELETE | localhost:3000/api/v1/parks/:id |
- No known bugs. Please submit a pull request, leave a comment, or email with any discovered bugs.
-
Ruby 2.4.1
-
Rails 5.1.2
-
PostgreSQL
Jason Ainsworth
MIT Copyright (c) 2017 Jason Ainsworth