Running the Bookstore Sample
Start the application and test the HTTP GET and POST operations. You can run the sample from TIBCO Business Studio - BPM Edition.
- Procedure
- Right-click the design panel background and select Debug in RAD to start the application.
- Use an HTTP client such as a Web browser or a REST client tool to invoke one of the HTTP GET method.
For example, to test
getBooklist
, specify thehttp://host:port/bookstore/books
URL in a Web browser or a REST client.host
andport
are required by HTTP. You can find the port by choosing the bug icon in the title bar and selecting Debug Configuration. You see that information only after you have run the sample once./bookstore
is the context root for RESTService_Binding1./books
is the 'Path
' ofgetBookList
.For samples of calling each method, see the
sample_payloads.txt
file. - To test the HTTP POST operation
addBook
, you need a REST client. You can specify the XML code for the book you want to add in the POST request.