Skip to content

Commit

Permalink
Fixed some Swagger issues
Browse files Browse the repository at this point in the history
* Added a title
* Renamed messageDetails in S124RestService to s124MessageDetails
  to avoid operationId conflict
  • Loading branch information
oliverhaagh committed Mar 7, 2018
1 parent 5a73fa9 commit dee844c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -74,7 +74,7 @@ public class S124RestService {
@GET
@Path("/{messageId}.gml")
@Produces({"application/gml+xml;charset=UTF-8"})
public Response messageDetails(
public Response s124MessageDetails(
@ApiParam(value = "The message UID or short ID", example = "NW-061-17")
@PathParam("messageId") String messageId,

Expand Down
Expand Up @@ -47,6 +47,7 @@ public void init(ServletConfig servletConfig) {
super.init(servletConfig);
BeanConfig beanConfig = new BeanConfig();
beanConfig.setVersion("1.0.0");
beanConfig.setTitle("Niord - Nautical Information Directory");
beanConfig.setBasePath("/rest");
beanConfig.setResourcePackage("org.niord.web.api,org.niord.model,org.niord.model.message,org.niord.model.publication,org.niord.model.search,org.niord.model.geojson,org.niord.s124");
beanConfig.setScan(true);
Expand Down

0 comments on commit dee844c

Please sign in to comment.