-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OHFJIRA-52 list of exposed webservices #52
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there API documentation in Apiary? Also mockup diagram for GUI developers in Balsamiq would be nice.
*/ | ||
@RestController | ||
@RequestMapping(value = WsController.REST_URI) | ||
public class WsController extends AbstractOhfController { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe WsdlController would be better ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And where to expose it, directly under /api/wsdl?
No problem with that, I do not have any strict opinion on this, my initial thinking was like - ok, what is wsdl? definition of service, resource itself desired by consumer is the webservice.
* @author Karel Kovarik | ||
*/ | ||
@XmlRootElement | ||
public class WsInfoRpc { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as controller - wouldn't be better to use "wsdl" prefix, isn't it more descriptive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly, as in previous comment, if it is the wsdl resource this endpoint should list, then yes, I will change it...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's overview of input web service definitions (wsdl).
We will add overview of REST services in the next version ...
I apologize, the links to drafts of mockup and API documentation were mentioned only in the JIRA task: Api draft: http://docs.openhubframework.apiary.io/#reference/0/openhub-web-services/gets-list-of-exposed-webservices |
Please change URI: /api/ws -> /web/admin/api/ws If you accept change from ws to wsdl then please change also names in API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend to rename WS -> WSDL and whole endpoint should be in /api/services context. After that I agree with that.
/** | ||
* Base REST uri for the controller. | ||
*/ | ||
public static final String REST_URI = BASE_PATH + "/ws"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And WSDL for endpoint URL too. Maybe my recommendation is /api/services/wsdl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
/** | ||
* Uri part on which wsdl is exposed. | ||
*/ | ||
private static final String WS_URI = "/ws/"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont know if the WS context can be configured or not. If yes, this should be the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot, however changed it to the constant used to actually configure the context (RouteConstants.WS_URI_PREFIX).
* @param request the input httpServletRequest. | ||
* @return list of WsInfoRpc domain objects. | ||
*/ | ||
@GetMapping(produces = {"application/xml", "application/json"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great
e18f4aa
to
a0e839a
Compare
Thanks for the review, updated endpoint to /api/services/wsdl and refactored to WsdlController & WsdlInfoRpc etc. feel free to check again. API documentation updated: http://docs.openhubframework.apiary.io/#reference/0/openhub-web-services, now I am using collection wrapping as it is introduced in PR#53: #53 Will wait until PR#53 is merged, then rebase this branch to use the common CollectionWrapper as well... |
a0e839a
to
ee61348
Compare
/** | ||
* Get list of exposed web services. | ||
* @param request the input httpServletRequest. | ||
* @return list of WsInfoRpc domain objects wrapped in CollectionWrapper. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, missed that, fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it is perfect. Only one improvement introduced -> javadoc. PR #53 merged so you can rebase it with requested changes.
PR #53 is merged, so you can rebase that. |
ee61348
to
0c0759e
Compare
@hanusto thanks for fast merge, rebased on current develop. |
ABOUT
Overview of exposed Webservices. See related JIRA task for more info: https://openhubframework.atlassian.net/browse/OHFJIRA-52
CHANGES