Hi Baharul ,
For the point 1 , it is clearly present in the documentation. Please refer “9-10_Service_Development_Help.pdf” , chapter 24 Working with REST API Descriptors → About Operation Responses section.
For the point 2 , Please refer to the section “Adding REST Resources to a REST API Descriptor” of the chapter 24.
Let us know if you face further issues.
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods