الاثنين، 13 ديسمبر 2021

Deleting Data Using RESTful Service

  Deleting  Data Using RESTful Service


 you will create a RESTful Service to delete data using the HTTP Method DELETE. 

In the emp/:empidTemplate, create a new DELETE Handler.
Specify the DELETE Method, and Source Type as PL/SQL. 
 Provide the Source Code for the PL/SQL.









BEGIN
    DELETE 
    FROM EMP 
    WHERE EMPNO = :empid;
    htp.prn('employee '|| :empid || ' Deleted');
END;

To test in Postman, click the plus icon to create a new tab.

Select DELETE, enter the correct URL adding /124.
 Click the Params tab. For KEY enter Content-Type, and for VALUE enter application/json
 

 



 Click Send.If the delete was successful, you will see the message below.




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

إرسال تعليق

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...