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

Add GET path template for slot update using RFC 6570 § 2.4.2 #15

Open
davidjsherman opened this issue Aug 14, 2016 · 1 comment
Open
Assignees

Comments

@davidjsherman
Copy link
Owner

The REST verb for slot update is properly POST. However the Scratch protocol requires GET for all requests. So asebahttp accepts GET requests for slot update, with the value vector encoded in the URI separated by slashes. This variant needs to be documented in the api-docs.

Since OAS uses RFC 6570 path templates, in the general case we can use a composite value and rely on convention to encode the values: Q_set_odometer{/values*}.

When the slot is an event and we know the parameter names, we can instead expand the values explicitly: Q_set_odometer/{angle}/{x}/{y}.

@davidjsherman davidjsherman self-assigned this Aug 14, 2016
davidjsherman added a commit that referenced this issue Aug 14, 2016
@davidjsherman
Copy link
Owner Author

Fixed for variables in a944eef.

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