REST API - /demographics Does it work?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

REST API - /demographics Does it work?

Jake Swart
I am running the Oscar code within eclipse.

I can query the /demographics service in my browser with the following, which returns XML:
http://localhost:8080/oscar/ws/rs/demographics
 
When I attempt to hit the following endpoint with an apache get request (with OAuth1a authentication) I can't get anything:

Other endpoints like /providers work:

Does the demographics RESTful webservice work?
Does it return JSON?
What URI should I be using if I'm trying get get data from /demographics to return JSON?

--
Jake Swart
Software Developer | Cliniconex | Phone: 613-271-5462 ext. 3838 | Cell: 613-262-9883 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oscarmcmaster-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-devel
Reply | Threaded
Open this post in threaded view
|

Re: REST API - /demographics Does it work?

Jake Swart
I just got it.

http://localhost:8080/oscar/services/demographics - I'm not sure why this doesn't give json.

http://localhost:8080/oscar/services/demographics/{id} - gives me json.



On Fri, Nov 17, 2017 at 4:07 PM, Jake Swart <[hidden email]> wrote:
I am running the Oscar code within eclipse.

I can query the /demographics service in my browser with the following, which returns XML:
http://localhost:8080/oscar/ws/rs/demographics
 
When I attempt to hit the following endpoint with an apache get request (with OAuth1a authentication) I can't get anything:

Other endpoints like /providers work:

Does the demographics RESTful webservice work?
Does it return JSON?
What URI should I be using if I'm trying get get data from /demographics to return JSON?

--
Jake Swart
Software Developer | Cliniconex | Phone: <a href="tel:(613)%20271-5462" value="+16132715462" target="_blank">613-271-5462 ext. 3838 | Cell: <a href="tel:(613)%20262-9883" value="+16132629883" target="_blank">613-262-9883 



--
Jake Swart
Software Developer | Cliniconex | Phone: 613-271-5462 ext. 3838 | Cell: 613-262-9883 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oscarmcmaster-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/oscarmcmaster-devel