-
Notifications
You must be signed in to change notification settings - Fork 9.1k
edit Response Payload Example #1187
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2046,15 +2046,15 @@ ColorSelection: | |
|
||
Would produce three links with the `colorName` of `red`, `green`, and `blue`: | ||
|
||
As with all links, it is at the clients' discretion to follow them, neither | ||
permissions nor the ability to make a successful call to that link is guaranteed | ||
Clients follow all links, including these, at their own discretion. Neither | ||
permissions, nor the capability to make a successful call to that link, is guaranteed | ||
solely by the existence of a relationship. | ||
|
||
|
||
##### Example | ||
|
||
The example below shows how relationships in the BitBucket API can be represented | ||
with the link schema. This example uses `operationId` values to link responses to | ||
by the link schema. This example uses `operationId` values to link responses to | ||
possible operations. | ||
|
||
```yaml | ||
|
@@ -2280,7 +2280,7 @@ components: | |
href: 'https://na2.gigantic-server.com/#/paths/~12.0~1repositories~1{$response.body#/username}' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this should be |
||
``` | ||
|
||
Note that in the use of `operationRef`, the _escaped forward-slash_ is necessary when | ||
Prefixing `operationRef` using the _escaped forward-slash_ is necessary when | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This needs clarification because the URL includes both escaped and unescaped forward slashes. The URL (right hand side) here is a reference to the path The The final forward slash in {
"id" : "u284230",
"username" : "darrelmiller"
} Forward slashes would be necessary here if and only if items in the response body themselves contain forward slashes, such as accessing the members in the the following JSON response body: {
"codeNames" : {
"mi/0" : "darrelmiller",
"mi/6" : "u284230",
}
} If one wanted to insert the value associated with Again, @darrelmiller please confirm. Perhaps this level of detail is not necessary, but some explanation of slash escaping should be here. |
||
using JSON references. | ||
|
||
#### <a name="headerObject"></a>Header Object | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can drop ', including these," here. I think.