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

Request variables wrongly replaced by (default) values in Markdown/cURL export #3

Open
holger-stenzhorn opened this issue Jun 7, 2017 · 0 comments

Comments

@holger-stenzhorn
Copy link

I define two request variables within a URL, name them patientId and eventId as shown below and provide the values 12345 and 67890 to them:
bug

When I now export this request as Markdown/cURL then I get the following:

GET - /persons/rest/patients/12345/events/67890

CURL

curl -X GET "http://localhost:8080/persons/rest/patients/12345/events/67890"

Path Parameters

  • RequestVariable should respect the following schema:
{
  "type": "string",
  "default": "12345"
}
  • RequestVariable_2 should respect the following schema:
{
  "type": "string",
  "default": "67890"
}

...but what I would expect to actually get is (something like) the following: (See also #2 for an issue with variable naming)

GET - /persons/rest/patients/$RequestVariable/events/$RequestVariable_2

Description

CURL

RequestVariable=12345;
RequestVariable_2=67890;
curl -X GET "http://localhost:8080/persons/rest/patients/$RequestVariable/events/$RequestVariable_2"

Path Parameters

  • RequestVariable should respect the following schema:
{
  "type": "string",
  "default": "12345"
}
  • RequestVariable_2 should respect the following schema:
{
  "type": "string",
  "default": "67890"
}
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