swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

Getting the current operation path after selecting an operation

Open taban03 opened this issue 2 years ago • 0 comments

Q&A (please complete the following information)

  • OS: [e.g. macOS]
  • Browser: [e.g. chrome, safari]
  • Version: [e.g. 22]
  • Method of installation: [e.g. npm, dist assets]
  • Swagger-UI version: 4.12.0
  • Swagger/OpenAPI version: [e.g. Swagger 2.0, OpenAPI 3.0]

Content & configuration

Swagger/OpenAPI definition:

# your YAML here

Swagger-UI configuration options:

SwaggerUI({
  // your config options here
})
?yourQueryStringConfig

Screenshots

How can we help?

Hello everyone, is there a way to get the current operation path I've clicked on to execute the try out? I've tried to dig deeper into the system object but I couldn't find any information about the selected operation. The only information I could find comes from system.specSelectors.requests(), which returns a list of the operation paths which were opened, but that doesn't really help me to detect the specific one.

taban03 avatar Jul 28 '22 14:07 taban03