Create an operation that accepts a JSON request body containing a loan application and returns an ID.
Procedure
- Click the + button in the left panel and click Operation.
-
Enter the following information in the GENERAL
section:
Field Value Name Submit a loan application Method POST Path /applications Description Create and submit a new loan application. - Scroll down to the REQUEST section and click Add next to BODY.
- Under TYPE, click object to show the data types available, and select Application.
- Scroll down to the RESPONSES section and click Add.
- Select 201 - Created in the Status code field.
- Click Add next to BODY to specify the content of the response to send.
- Click Add property under TYPE.
-
Enter loanId in the Name field
and toggle the Required button to
Yes.
- Click Use a component next to RESPONSES.
- Select 4XX - Default in the Status code field and select Error in the Name field, then click OK.
- Click Save.