Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specification is incomplete re. payloads in request body #8

Open
fgabolde opened this issue Aug 28, 2013 · 0 comments
Open

Specification is incomplete re. payloads in request body #8

fgabolde opened this issue Aug 28, 2013 · 0 comments

Comments

@fgabolde
Copy link

The specification does not handle at all parameters passed via the
request body, for e.g. POST, PATCH or PUT.

The notion of payload is briefly mentioned in the specification but
does not reappear in the list of parameters available for e.g. method
description.

Using the Net::HTTP::Spore module, a method spec like

"login" : {
   "path" : "/blah/:format",
   "method" : "POST",
   "description" : "Creates a new session for the current client.",
   "required_params" : [
      "format",
      "username",
      "password"
   ]
},

results in a POST request with an empty body and both the username and
password method passed through the query string. This agrees with the
spec as published, but is not the intended result.

The spore_validation.rx file has three "payload", "optional_payload"
and "required_payload" parameters but they are not documented
anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant