wordnik/swagger-ui — Issue #3: naming schema
Author: ddsky
Created: 2011-10-08 19:26:52+00:00
State: open

I have one more question about the naming conventions. I do not want to have ".json" or ".xml" in my URLs but when I delete it, the UI only shows "fetching..." but doesn't show the provided methods. For example,

@Path("/pet.json")
@Api(value = "/pet", description = "Operations on a pet")
@Singleton
@Produces({"application/json"})

works, but

@Path("/pet")
@Api(value = "/pet", description = "Operations on a pet")
@Singleton
@Produces({"application/json"})

does not work (only difference is the missing ".json" in the @Path).

What are the conventions here? Can I somehow get rid of the ".json"?
Thanks a lot.

David