How to Add\Update\Retrieve\Delete a record from the Data Type using Service Rest?- Part 2


POST




Here, I am going to use POST method to insert the new record to the data type.
  • Below is the Class hierarchy which I have used.
My main class is : OCTBK2-Int-Services

                   ->  PostCustomerRequest- Page
                    -> PostCustomerResponse- Page


Request Property mapping

  • Below is the Service Activity to insert the record into Data Type.

Response property mapping


Now, we are done with defining request,response and activity. Let's execute and see the results. 😊

Request JSON


Response JSON

Now, Newly added record is available in Data type. 🙂


To be Continued...

Popular Posts