KEY | BADGE |
---|---|
AUTHOR | |
BUILD STATUS | |
MAINTAINABILITY | |
TEST COVERAGE |
This API is A graphql
-powered interface running on the ruby on rails framework.
- Ruby version
- 2.6.0
- Bundler version
- 2.1.4
- System dependencies
- Once this repository is pulled, run
bundle install
in the working directory to install the necessary dependencies
- Database creation
- Run
bin/rails db:create
- How to run the test suite
- Run
bundle exec rspec spec
-
Visit this endpoint 👉 https://coinbox.herokuapp.com/graphiql
-
On the leftmost pane, enter a graphql request of the following format:
{
calculatePrice(
type: "sell"
margin: 0.1
exchangeRate: 363.5
) {
price
}
}
{
"data": {
"calculatePrice": {
"price": 3260359.46
}
}
}