@@ -158,7 +158,7 @@ func TestOpenGraphInDashboard(t *testing.T) {
158158 name : "http service" ,
159159 test : func (t * testing.T ) {
160160 app := runtime .New ()
161- app .AddHttp (& dynamic.Config {Info : dynamic.ConfigInfo {Url : mustParse ("https://foo.bar" )}, Data : openapitest .NewConfig ("3.0" , openapitest .WithInfo ("Swagger Petstore" , "1.0" , "This is a sample server Petstore server." ))})
161+ app .Http . Add (& dynamic.Config {Info : dynamic.ConfigInfo {Url : mustParse ("https://foo.bar" )}, Data : openapitest .NewConfig ("3.0" , openapitest .WithInfo ("Swagger Petstore" , "1.0" , "This is a sample server Petstore server." ))})
162162 h := api .New (app , static.Api {Path : "/mokapi" , Dashboard : true })
163163 try .Handler (t ,
164164 http .MethodGet ,
@@ -177,7 +177,7 @@ func TestOpenGraphInDashboard(t *testing.T) {
177177 name : "http service path without summary and description" ,
178178 test : func (t * testing.T ) {
179179 app := runtime .New ()
180- app .AddHttp (& dynamic.Config {Info : dynamic.ConfigInfo {Url : mustParse ("https://foo.bar" )}, Data : openapitest .NewConfig ("3.0" ,
180+ app .Http . Add (& dynamic.Config {Info : dynamic.ConfigInfo {Url : mustParse ("https://foo.bar" )}, Data : openapitest .NewConfig ("3.0" ,
181181 openapitest .WithInfo ("Swagger Petstore" , "1.0" , "This is a sample server Petstore server." ),
182182 openapitest .WithPath ("/pet/{petId}" , openapitest .NewPath ()),
183183 )},
@@ -200,7 +200,7 @@ func TestOpenGraphInDashboard(t *testing.T) {
200200 name : "http service path with summary and description" ,
201201 test : func (t * testing.T ) {
202202 app := runtime .New ()
203- app .AddHttp (& dynamic.Config {Info : dynamic.ConfigInfo {Url : mustParse ("https://foo.bar" )}, Data : openapitest .NewConfig ("3.0" ,
203+ app .Http . Add (& dynamic.Config {Info : dynamic.ConfigInfo {Url : mustParse ("https://foo.bar" )}, Data : openapitest .NewConfig ("3.0" ,
204204 openapitest .WithInfo ("Swagger Petstore" , "1.0" , "This is a sample server Petstore server." ),
205205 openapitest .WithPath ("/pet/{petId}" , openapitest .NewPath (
206206 openapitest .WithPathInfo ("foo" , "bar" ),
@@ -225,7 +225,7 @@ func TestOpenGraphInDashboard(t *testing.T) {
225225 name : "http service path with no summary but description" ,
226226 test : func (t * testing.T ) {
227227 app := runtime .New ()
228- app .AddHttp (& dynamic.Config {Info : dynamic.ConfigInfo {Url : mustParse ("https://foo.bar" )}, Data : openapitest .NewConfig ("3.0" ,
228+ app .Http . Add (& dynamic.Config {Info : dynamic.ConfigInfo {Url : mustParse ("https://foo.bar" )}, Data : openapitest .NewConfig ("3.0" ,
229229 openapitest .WithInfo ("Swagger Petstore" , "1.0" , "This is a sample server Petstore server." ),
230230 openapitest .WithPath ("/pet/{petId}" , openapitest .NewPath (
231231 openapitest .WithPathInfo ("" , "bar" ),
@@ -249,7 +249,7 @@ func TestOpenGraphInDashboard(t *testing.T) {
249249 name : "http service endpoint no summary and no description" ,
250250 test : func (t * testing.T ) {
251251 app := runtime .New ()
252- app .AddHttp (& dynamic.Config {Info : dynamic.ConfigInfo {Url : mustParse ("https://foo.bar" )}, Data : openapitest .NewConfig ("3.0" ,
252+ app .Http . Add (& dynamic.Config {Info : dynamic.ConfigInfo {Url : mustParse ("https://foo.bar" )}, Data : openapitest .NewConfig ("3.0" ,
253253 openapitest .WithInfo ("Swagger Petstore" , "1.0" , "This is a sample server Petstore server." ),
254254 openapitest .WithPath ("/pet/{petId}" , openapitest .NewPath (
255255 openapitest .WithOperation ("GET" , openapitest .NewOperation ()),
@@ -273,7 +273,7 @@ func TestOpenGraphInDashboard(t *testing.T) {
273273 name : "http service endpoint get right path" ,
274274 test : func (t * testing.T ) {
275275 app := runtime .New ()
276- app .AddHttp (& dynamic.Config {Info : dynamic.ConfigInfo {Url : mustParse ("https://foo.bar" )}, Data : openapitest .NewConfig ("3.0" ,
276+ app .Http . Add (& dynamic.Config {Info : dynamic.ConfigInfo {Url : mustParse ("https://foo.bar" )}, Data : openapitest .NewConfig ("3.0" ,
277277 openapitest .WithInfo ("Swagger Petstore" , "1.0" , "This is a sample server Petstore server." ),
278278 openapitest .WithPath ("/pet/{petId}" , openapitest .NewPath (
279279 openapitest .WithOperation ("GET" , openapitest .NewOperation ()),
0 commit comments