File tree Expand file tree Collapse file tree 1 file changed +30
-14
lines changed Expand file tree Collapse file tree 1 file changed +30
-14
lines changed Original file line number Diff line number Diff line change @@ -1915,27 +1915,43 @@ paths:
1915
1915
- name: id
1916
1916
in: path
1917
1917
required: true
1918
- description: the user identifier, as userId or username
1918
+ description: the user identifier, as userId
1919
1919
schema:
1920
1920
type: string
1921
- responses:
1922
- '200':
1923
- description: the user being returned
1924
- content:
1925
- application/json:
1926
- schema:
1927
- type: object
1928
- properties:
1929
- uuid: the unique user id
1930
- type: string
1931
- format: uuid
1921
+ get:
1922
+ responses:
1923
+ '200':
1924
+ description: the user being returned
1925
+ content:
1926
+ application/json:
1927
+ schema:
1928
+ type: object
1929
+ properties:
1930
+ uuid: the unique user id
1931
+ type: string
1932
+ format: uuid
1932
1933
links:
1933
- Address :
1934
+ address :
1934
1935
# the target link operationId
1935
1936
operationId: getUserAddress
1936
1937
parameters:
1937
1938
# get the ` id` field from the request path parameter named `id`
1938
1939
userId : $request.path.id
1940
+ # the path item of the linked operation
1941
+ /users/{userid}/address :
1942
+ parameters :
1943
+ - name : userid
1944
+ in : path
1945
+ required : true
1946
+ description : the user identifier, as userId
1947
+ schema :
1948
+ type : string
1949
+ # linked operation
1950
+ get :
1951
+ operationId : getUserAddress
1952
+ responses :
1953
+ ' 200 ' :
1954
+ description : the user's address
1939
1955
` ` `
1940
1956
1941
1957
When a runtime expression evaluates to null, no parameter value is passed to the target operation.
@@ -1944,7 +1960,7 @@ Values from the response body can be used to drive a linked operation.
1944
1960
1945
1961
` ` ` yaml
1946
1962
links :
1947
- addressesLink :
1963
+ address :
1948
1964
operationId : getUserAddressByUUID
1949
1965
parameters :
1950
1966
# get the `id` field from the request path parameter named `id`
You can’t perform that action at this time.
0 commit comments