Swagger Returns Empty API list.

24 views
Skip to first unread message

faisa...@hashedin.com

unread,
Mar 30, 2017, 11:04:25 AM3/30/17
to Swagger
I am trying to integrate swagger with my Spring 4.1.9 project. Have added dependency:
<groupId>com.mangofactory</groupId>
<artifactId>swagger-springmvc</artifactId>
<version>1.0.0</version>

Created a bean which does: 

private SpringSwaggerConfig springSwaggerConfig;

@Autowired
public void setSpringSwaggerConfig(SpringSwaggerConfig springSwaggerConfig) {
this.springSwaggerConfig = springSwaggerConfig;
}

@Bean
public SwaggerSpringMvcPlugin customImplementation()
{
return new SwaggerSpringMvcPlugin(this.springSwaggerConfig).apiInfo(apiInfo())
.includePatterns("api/path*");
}

private ApiInfo apiInfo() {
ApiInfo apiInfo = new ApiInfo("Swagger",
"APIs for Swagger",
"http://google.com", "con...@google.com",
"Private, Confidential", "");
return apiInfo;
}

Have added Api documentation to a few endpoints and trying to access localhost:8080/api-docs
getting this:
<apiVersion>1.0</apiVersion>
<swaggerVersion>1.2</swaggerVersion>
<apis/>
<authorizations/>

APIs came as empty, can someone help me?

Thanks.

Ron Ratovsky

unread,
Mar 30, 2017, 11:08:53 AM3/30/17
to swagger-sw...@googlegroups.com

You’re using an ancient version of a product. Google for Springfox and start using that instead.

--
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 swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Faisal Khan

unread,
Apr 4, 2017, 4:20:10 AM4/4/17
to swagger-sw...@googlegroups.com

But it should still work with all the correct configuration, right?
So can you please help me get it up and running.

Thanks,
Faisal.

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/qZF-eULhy_8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

Ron Ratovsky

unread,
Apr 4, 2017, 1:18:05 PM4/4/17
to swagger-sw...@googlegroups.com

I can’t say. Springfox is a community project and not one that we can support. Better refer to their document and file a ticket on the project if needed.

--

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/qZF-eULhy_8/unsubscribe.

To unsubscribe from this group and all its topics, send an email to swagger-swaggers...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

 

--

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 swagger-swaggers...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages