الخميس، 9 ديسمبر 2021

Creating Restful Web Service to Retrieving Data Using a Parameter

 Retrieving Data Using a Parameter

Perform the following steps to create a RESTful Service which retrieves the employee information based on a parameter id using the HTTP Method GET. 

In the EMP_TEST module, create a new Template emp/:empid following the steps shown in the previous section.





Add the Source code for the GET Handler. 





Test the new Web service from the Browser, 
adding a valid employee number to the end of the URL for your schema.
 7839 is the empno for “King”.
http://localhost:8080/ords/re/EMP_TEST/emp/7839


Test the new Web service from postman.




ليست هناك تعليقات:

إرسال تعليق

How to Solve Ords Issue : The request could not be mapped to any database.

 The request could not be mapped to any database.  Check the request URL is correct, and that URL to database mappings have been correctly c...