项目作者: RuanAyram
项目描述 :
Assessment for L.G.
高级语言: Ruby
项目地址: git://github.com/RuanAyram/search_address_api.git
README
Tool |
Purpose |
Postman |
Requests in the api |
Gems
Getting started
Clone the repository
git clone git@github.com:RuanAyram/search_address_api.git
Edit config/database.yml
, if necessary
Enter in the folder, then run these commands to install gems, create a database and populate, then run api locally
cd search_address_api
bundle install
rails db:create && rails db:migrate && rails db:seed
rails s
My API Endpoints
Address
Method + url |
Output |
GET {base_url}/api/v1/addresses?cep={cep} |
Returns a list params according API ‘http://cep.la/‘ |
For test, run:
$ bundle exec rspec