Forum Discussion

sandy4swagger's avatar
sandy4swagger
Occasional Visitor
4 years ago

Pass parameter automatically when invoke APIs on SwaggerHub

Hi,

 

 I'm new to SwaggerHub tool and want to understand if there is anyway we can modify its code to pass parameter value automatically when some API is invoked.

 

And this parameter value need to be passed based on Domain/Environment (STG/PRD).

 

Can someone please guide me how to proceed for this, if possible?

 

Regards,
Sandeep

1 Reply

  • saiyajin's avatar
    saiyajin
    SmartBear Alumni (Retired)

    Hi,

    SwaggerHub is a platform dedicated to write specifications of users` current or future APIs. While writing a specification (aka definition) you do not implement any business logic to it. You can pass parameters using "Try it out" functionality only. 

    Ultimately, I would like to conclude that there is no functionality implemented your are asking for.