Building an API in rails
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
This is a solo project for the Turing School of Software and Design. In it, we learned how to create our own API and connect to endpoints, as well as testing with RSpec and Postman.
After cloning the repo:
bundle install
- Run
rails db:{create,migrate}
- Run
rails s
- API endpoints are:
GET /api/vi/items
POST /api/vi/items
GET /api/vi/items/find
GET /api/vi/items/:id
PATCH /api/vi/items/:id
DELETE /api/vi/items/:id
GET /api/v1/items/:item_id/merchant(.:format)
GET /api/v1/merchants
GET /api/v1/merchants/:id
GET /api/v1/merchants/:id/items
- Ruby
- Rails
- PostgreSQL
- RSpec
- Postman
Chloe Price - @chloell5 - [email protected]
Project Link: https://github.com/chloell5/rails-engine
- Thank you Turing, and your wonderful instructors!