Hello,
I am using SwaggerClient from https://github.com/Yelp/bravado.
My yml file looks like this:
swagger: '2.0'
info:
title: FogHorn Edge API
description: Manages FogHorn edge components
version: "1.0.0"
*host: localhost*
schemes:
- http
I can successfully load the file and create a client:
* from bravado.client import SwaggerClient
from bravado.swagger_model import load_file
def create_client(self):
swagger_file = self.get_yml_file()
a_file = load_file(swagger_file)
return SwaggerClient.from_spec(a_file)*
My question is how do I replace the localhost with the address of the server
(e.g. 129.100:90.6:9000) using bravado api?
For know I am replacing the text in the swagger file before calling load_file.
Thanks, Shahriar
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.