Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Instead of having duplicate get methods when there is no id, use the path #46

Open
glassfishrobot opened this issue Dec 6, 2011 · 4 comments

Comments

@glassfishrobot
Copy link
Contributor

Instead of generating multiple stubs/interfaces with just "Response get" methods, generate something more useful using the @path

I.E:
Instead of:
@get
@produces(

{"application/xml", "application/json" })
@path("/current/locationType/{locationType}")
Response get(@PathParam("locationType") String locationType);

Generate:
@get
@produces({"application/xml", "application/json" }

)
@path("/current/locationType/

{locationType}

")
Response getCurrentLocationType(@PathParam("locationType") String locationType);

Environment

Windows XP

@glassfishrobot
Copy link
Contributor Author

Reported by sirgeek

@glassfishrobot
Copy link
Contributor Author

Was assigned to gdavison

@glassfishrobot
Copy link
Contributor Author

gdavison said:
Fair comment, I will look into it.

@glassfishrobot
Copy link
Contributor Author

This issue was imported from java.net JIRA WADL-46

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

No branches or pull requests

2 participants