You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Links to operation could start from data-types rather than from other operations
Example:
Link from Type (UserId)
components:
schemas:
UserId:
type: integerformat: int64example: 10# -----------------------------------------------------# Links# -----------------------------------------------------links:
GetUserByUserId: # <---- arbitrary name for the linkoperationId: getUserparameters:
userId: '/'description: > Anyx `UserId` field can be used as parameter for the `userId` parameter in `GET /users/{userId}`.
Links from Object (User)
# -----------------------------------------------------# Links# -----------------------------------------------------links:
GetUserByUserId: # <---- arbitrary name for the linkoperationId: getUserparameters:
userId: '$id'description: > The `id` value of Users can be used as parameter for the `userId` parameter in `GET /users/{userId}`.
components:
schemas:
User:
x-swagger-router-model: io.swagger.petstore.model.Userproperties:
id:
type: integerformat: int64example: 10username:
type: stringexample: theUserfirstName:
type: stringexample: JohnlastName:
type: stringexample: Jamesemail:
type: stringexample: [email protected]password:
type: stringexample: 12345phone:
type: stringexample: 12345userStatus:
type: integerformat: int32example: 1description: User Statusxml:
name: usertype: object# -----------------------------------------------------# Links# -----------------------------------------------------links:
GetUserByUserId: # <---- arbitrary name for the linkoperationId: getUserparameters:
userId: '/id'description: > The `id` value of Users can be used as parameter for the `userId` parameter in `GET /users/{userId}`.
The text was updated successfully, but these errors were encountered:
Situation:
Example:
Link from Type (UserId)
Links from Object (User)
The text was updated successfully, but these errors were encountered: