An open API service indexing awesome lists of open source software.

https://github.com/nehakadam/rails_market_place_api

This repository contains the Market Place API as demonstrated in the book APIs on Rails - Building REST APIs with Rails by Abraham Kuri Vargas ( @kurenn )
https://github.com/nehakadam/rails_market_place_api

rest-api ruby-on-rails

Last synced: about 2 months ago
JSON representation

This repository contains the Market Place API as demonstrated in the book APIs on Rails - Building REST APIs with Rails by Abraham Kuri Vargas ( @kurenn )

Awesome Lists containing this project

README

          

# README

This README would normally document whatever steps are necessary to get the
application up and running.

Things you may want to cover:

* Ruby version

* System dependencies

* Configuration

* Database creation

* Database initialization

* How to run the test suite

* Services (job queues, cache servers, search engines, etc.)

* Deployment instructions

* ...

Test Commands

`curl -H 'Accept: application/vnd.marketplaceapi.v1' http://api.marketplaceapi.test/users/1`

`bundle exec rspec spec/controllers/api/v1/users_controller_spec.rb`

`bundle exec rspec lib/spec/api_constraints_spec.rb`

bundle exec rspec spec/models/user_spec.rb

`bundle exec rspec spec/controllers/api/v1/sessions_controller_spec.rb`

`bundle exec rspec spec/controllers/concerns/authenticable_spec.rb`

`bundle exec rspec spec/models/product_spec.rb`

`bundle exec rspec spec/`

`bundle exec rspec spec/controllers/api/v1/products_controller_spec.rb`

Test User

Email : example@marketplace.com
Password : 12345678
Auth Token : sLfTud3L6zyyGwjCJ7Pq

bundle exec rspec spec/mailers/order_mailer_spec.rb

bundle exec rspec spec/controllers/api/v1/orders_controller_spec.rb

bundle exec rspec spec/models/order_spec.rb

Git Commands

git checkout -b

git add -A

git commit -m

git push --set-upstream origin

git checkout master

git merge

git push