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:[email protected]] *On Behalf Of *Ben Wolfe >> *Sent:* Tuesday, November 01, 2011 3:07 AM >> *To:* [email protected] >> *Subject:* Re: [OPENMRS-DEV] REST WEBSERVICES**** >> >> **** >> >> (replying to dev list)**** >> >> What is the error code? >> Any stacktrace in your server? >> What user are you authenticating as? **** >> >> Ben**** >> >> On Nov 1, 2011 9:27 AM, "Muhammad Salman" <[email protected]> wrote:*** >> * >> >> Dear Sir >> i have Problem with inserting data/ recording data through >> webservices.rest... Every "POST" Query gives me an error. is there any >> restriction on it.. please suggest a solution. i am using these URI >> https://wiki.openmrs.org/display/docs/REST+Web+Service+Resources.. GET >> and delete works fine but POST query returns with an error. i'm using >> openMRS Version: 1.8.2 Build 21762 Thanks**** >> >> >> >> -- >> Best Regards >> Muhammad Salman >> Cell # 0092-314-9719673**** >> ------------------------------ >> >> Click here to >> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from >> OpenMRS Developers' mailing list >> **** >> ------------------------------ >> >> Click here to >> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from >> OpenMRS Developers' mailing list >> **** >> >> ** ** >> ------------------------------ >> >> Click here to >> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from >> OpenMRS Developers' mailing list >> **** >> ------------------------------ >> Click here to >> unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>from >> OpenMRS Developers' mailing list >> > > ------------------------------ > Click here to > unsubscribe<[email protected]?body=SIGNOFF%20openmrs-devel-l>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]

