A REST service is a Web Service implemented in the REST (representational state transfer) architecture style. You can create REST service artifacts using the G-Reg Publisher, and view them in the G-Reg Store as explained below.
Adding a REST service using a WADL
Follow the steps below to create the REST service in WSO2 G-Reg.
- Log in to the G-Reg Publisher using the following URL and admin/admin credentials: https://<G-REG_HOST>:<G-REG_PORT>/publisher
- Click the Add button of the SOAP Service box as shown below.
- Select the Add a Rest Service using a "WADL" option as shown below.
- Click Continue.
- Enter the details of the service which you want to create as shown in the example below.
- Click Create.
- Refresh the screen to view the new WSDL artifact you added as shown below.
Adding a SOAP service using a Swagger
Follow the steps below to create the REST service in WSO2 G-Reg.
- Log in to the G-Reg Publisher using the following URL and admin/admin credentials: https://<G-REG_HOST>:<G-REG_PORT>/publisher
- Click the Add button of the SOAP Service box as shown below.
- Select the Add a Rest Service using a "Swagger" option as shown below.
- Click Continue.
- Enter the details of the service which you want to create as shown in the example below.
- Click Create.
- Refresh the screen to view the new WSDL artifact you added as shown below.
Adding a REST service manually
Follow the steps below to manually create a REST service.
- Log in to the G-Reg Publisher using the following URL and admin/admin credentials: https://<G-REG_HOST>:<G-REG_PORT>/publisher
Click the Add button of the SOAP Service box as shown below.
- Select Add a SOAP Service manually option as shown below.
- Click Continue.
- Enter the details of the service which you want to create as shown in the example below.
- Click Create.
- Refresh the screen to view the new WSDL artifact you added as shown below.