cutalion / grape-api-example Goto Github PK
View Code? Open in Web Editor NEWGrape API example
Home Page: https://grape-api-example.herokuapp.com/
Grape API example
Home Page: https://grape-api-example.herokuapp.com/
For me, the following curl is not successful:
curl -d '{ "account": { "name": "John Doe", "email": "[email protected]" } }' -X POST https://grape-api-example.herokuapp.com/v1/accounts.json?api_key=e711541a4a79b037c15a8b01314d667e
Instead, I receive the following response:
{"error":"missing parameter: account"}
Can you see what I am missing? Thanks!
When I clone and run the tests, I'm seeing the following (cryptic) failures from rspec:
API::Accounts POST /v1/accounts should create an account
Failure/Error: post "/v1/accounts", params.merge(api_key: partner.api_key)
NoMethodError:
undefined method `each' for true:TrueClass
API::Accounts GET /v1/accounts/:id should return account info
Failure/Error: get "/v1/accounts/#{account.uuid}", api_key: partner.api_key
NoMethodError:
undefined method `each' for true:TrueClass
Are you also seeing this?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.