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

use URI::Template to Level 2 RFC 6570 URI Template parameters. #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bmenasha
Copy link

Some API discovery documents (like Cloud Pub/Sub API) use level 2 url parameters like

"list": {
"id": "pubsub.projects.topics.list",
"path": "v1/{+project}/topics",
"httpMethod": "GET",
...

The {+project} parameter above implies "Reserved Expansion". To support it and other
more complex URI parameters use the URI::Template per module.

Additionally, was getting an error when a body was not supplied in a request that
did not need a body, so check for that case.

Some API discovery documents (like Cloud Pub/Sub API) use level 2 url parameters like

"list": {
   "id": "pubsub.projects.topics.list",
   "path": "v1/{+project}/topics",
   "httpMethod": "GET",
...

The {+project} parameter above implies "Reserved Expansion". To support it and other
more complex URI parameters use the URI::Template per module.

Additionally, was getting an error when a body was not supplied in a request that
did not need a body, so check for that case.
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

Successfully merging this pull request may close these issues.

2 participants