We'll test SBA in a Chrome browser, because it has a cool addin called Postman that we can use to test the 'GET' and 'POST' aspects of the REST based architecture.
Do a Google search (in Chrome) for 'Postman', it should come up as the first result. Install it.
After it installs click on the Apps button and then launch Postman
The first URL to try will be the help URL: https://vmgp2015.devshed.local/GPService/Tenants(DefaultTenant)/help
NOTE: This URL has changed since this product was first introduced. The differences are subtle... be careful to cut and paste.
I'm using the fill name of the box because that's the way that I set up my self-signed cert in IIS.
You'll be prompted to authenticate, this user is the WINDOWS user that you associated with a DYNAMICS user that you've given the appropriate rights to
The result will be this:
After you're sure that this URL works and returns data, enter the same URL into the browser directly, outside of Postman. You'll see this:
The main thing that we're interested in is that first one, the Dynamics link. Just to get to something interesting, click on Dynamics, then Inventory, then Items. You'll see a page that lists all the different ways that you can GET and update items. For now, we'll just do a simple one:
https://vmgp2015.devshed.local/GPService/Tenants(DefaultTenant)/Companies(Fabrikam,%20Inc.)/Dynamics/Inventory/Items(100xlg)
This URL will get us all the details on one items. Note that the results will be in the default JSON format. More on consuming JSON later. If you'd like the alternate XML format, append '.xml' to the end:
https://vmgp2015.devshed.local/GPService/Tenants(DefaultTenant)/Companies(Fabrikam,%20Inc.)/Dynamics/Inventory/Items(100xlg).xml
The results in JSON format look like this:
Nice, right?