Modify the SwaggerUi instance to include the spec parameter: window.swaggerUi = new SwaggerUi(')Įcho "Stopping old containers: $old_containers"Įcho "Removing old containers: $old_containers"Įcho "Running container with image $APP_NAME"ĭocker run -d -name $APP_NAME -p 8888:8888 $APP_NAMEĮcho "Check out your swaggery goodness here: Modify the /dist/index.html file to include the external spec.js file. There's pineapple Tex-Mex, lemon Tex-Mex, coconut Tex-Mex, pepper Tex-Mex, Tex-Mex soup, Tex-Mex stew, Tex-Mex salad, Tex-Mex and potatoes, Tex-Mex burger, Tex-Mex sandwich.", Dey's uh, Tex-Mex-kabobs, Tex-Mex creole, Tex-Mex gumbo. "description": "You can barbecue it, boil it, broil it, bake it, sauté it. It does not have to be on the same line as the = sign. Then paste in the swagger.json file contents after. It was created to be mostly agnostic, which means that you can use it with pretty much any of your favorite languages and frameworks. Then insert spec variable declaration: var spec = Swagger is an open source set of tools that enable you to design, build, document, and use RESTful web services. Create spec.js file containing Swagger JSONĬreate a new javascript file in the same directory as index.html (/dist/)
0 Comments
Leave a Reply. |