Perhaps a suggestions wiki page for web services could direct folks to
propose new methods via comments on the page would help.

-Burke

On Wednesday, November 2, 2011, Darius Jazayeri <[email protected]>
wrote:
> To further highlight the point: the current version of the rest web
service module is alpha, and we really want people to suggest things that
we're missing. If they make sense as common use cases, we should be adding
them to the core module.
> -Darius
>
> On Wed, Nov 2, 2011 at 7:49 AM, Ben Wolfe <[email protected]> wrote:
>
> There is a plan to enrich the methods available eventually.  I'd rather
that enriching happen in the module instead of via other modules.  I feel
like letting modules add methods that extend things that aren't there own
can get ugly.  If more than one module tries to override/add something,
which one wins?  If a user is confused why a specific rest call no longer
works, they think the error is in the main rest module instead of a module
they added/removed.
>
> My guess is that its possible with the way it is now for a module to use
the same hierarchy but with different parameters, but I haven't tested it.
...and I'm certainly not going to be one to condone it. :-)
>
> Ben
>
> On Wed, Nov 2, 2011 at 5:24 PM, Friedman, Roger (CDC/CGH/DGHA) (CTR) <
[email protected]> wrote:
>
> I can see how a module would be able to add REST services with differing
parameters to its own objects. I am asking how to add additional REST
services for core objects, for example, to get all the child concepts of
the specified concept.  I see how I could make a separate service module
that would support <REST>/MyServices/concept/<UUID>?children=true. But
AFAIK, if I wanted <REST>/concept/<UUID>?children=true, I would have to add
code to the main REST module.  Is this something we want to happen?  In a
larger sense, I am asking if we have any development path for services
beyond CRUD.
>
>
>
> From: [email protected] [mailto:[email protected]] On Behalf Of Ben Wolfe
> Sent: Wednesday, November 02, 2011 6:33 AM
> To: [email protected]
> Subject: Re: [OPENMRS-DEV] REST Webservices Question
>
>
>
> Muhammad replied off list to me because he has yet to receive an email
confirmation to join.
>
> His problem was a missing set of quotes around the "key" in the post
content.
>
> Yes, a module can add web services:
>
https://wiki.openmrs.org/display/docs/Adding+a+Web+Service+Step+by+Step+Guide+for+Module+Developers
> The calls /might/ be able to go off of core urls, but it'd be better if
they went off of a module specific url so as to be certain not to clash.
>
> I couldn't find an example of a controller method that took more than one
parameter, but the ObsController and EncounterController are examples of
how to accept a custom url and custom parameter names.
>
> Ben
>
> On Tue, Nov 1, 2011 at 7:20 PM, Friedman, Roger (CDC/CGH/DGHA) (CTR) <
[email protected]> wrote:
>
> Ben --
>
>                 Do we have any tickets in for processing more than a q
parameter?  Is there/will there be a way we can create additional REST
calls in a module?  Even REST calls on core objects?  For example, an
extension to do GetConceptByName, or an extension to get all of the members
of a concept/question set from the UUID of the set?
>
>
>
> From: [email protected] [mailto:
>
> ________________________________
> Click here to unsubscribe from OpenMRS Developers' mailing list

_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to