Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Paths are not correctly identified #50

Open
rleibman opened this issue Jan 8, 2015 · 0 comments
Open

Paths are not correctly identified #50

rleibman opened this issue Jan 8, 2015 · 0 comments

Comments

@rleibman
Copy link

rleibman commented Jan 8, 2015

So here are some of my routes:

@ApiOperation(httpMethod = "PUT",
response = classOf[String],
value = "Copies the version constraints from one environment to another")
@ApiImplicitParams(Array(
new ApiImplicitParam(name = "src", required = true, dataType = "string", paramType = "form", value = "The source environment"),
new ApiImplicitParam(name = "dest", required = true, dataType = "string", paramType = "form", value = "The destination environment)")))

def chefCopyVersionConstraints = path("SystemBuilder" / "copyVersionConstraints") {

@ApiOperation(httpMethod = "PUT",
response = classOf[String],
value = "Freezes the version constraints of an environment to a given set (or, by default, to the latest)")
@ApiImplicitParams(Array(
new ApiImplicitParam(name = "systemName", required = true, dataType = "string", paramType = "path", value = "The name of the glue system (typically something like customerName-level)"),
new ApiImplicitParam(name = "versions", required = true, dataType = "Map[String, String]", paramType = "form", value = "A map of cookbook to version")))

def awsUpdateNodes = path("SystemBuilder" / ".*".r / "freeze") {

In the swagger-ui, I do not see the paths correctly, the paths I see look like this:
/SystemBuilder | Copies the version constraints from one environment to another
and
/SystemBuilder/{systemName} | Freezes the version constraints of an environment to a given set (or, by default, to the latest)

So of course, the "try it out" button doesn't work either.

Is there something I'm missing in the documentation? maybe an additional ApiImplicitParam?

Thanks,

Roberto

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant