Details of the third step in the process of creating a Web application in WSO2 App Manager are shown below.
Follow the steps below to complete the Web Application Resources section of creating a new Web application in App Manager.
Enter the URL Pattern of the Web app resource.
Info The URL Pattern of a Web app resource is in the
/{context}/{version}/{web_app_resource_name}
format. The context and version are the values you entered in Step 1 - Overview section of creating the app. For example, if the URL ishttp://<IP_ADDRESS>:<PORT>/travel-booking/1.0.0/time-tables
, the context istravel-booking
and version is1.0
.Select the HTTP Verb corresponding to the URL pattern you entered
.Click Add Resource. The URL pattern will be added to the defined list of Web app resources as shown below.
The details which you can specify for the added Web app resources when adding a Web application The available HTTP verbs are described below.FieldHTTP verb Description Throttling Tier The throttling tier, which you want to define for the defined HTTP verb of the specified URL pattern. For instructions on specifying throttling tiers for Web app resources, see Managing Throttling Tiers. Skip Throttling Select True if you want to skip associating a throttling tier for the defined HTTP verb of the specified URL pattern. For instructions on specifying throttling tiers for Web app resources, see Managing Throttling Tiers . Access Policy The defined XACML policy, which you want to associate with the defined HTTP verb of the specified URL pattern. For instructions on associating XACML policy based authorization on Web app resources, see Web Application Resource Authorization. User Roles The defined user roles, which you want to associate with the defined HTTP verb of the specified URL pattern. For instructions on associating user role based authorization on Web app resources, see Web Application Resource AuthorizationGET This is used to retrieve information from a server using a URI. POST This is used to send data to a server using HTML forms. PUT This replaces all current representations of the target resource with the uploaded content. DELETE This removes all current representations of the target resource given by a URI. OPTIONS This describes the communication options for the target resource. Click Add Resource. The URL pattern will be added to the defined list of Web app resources as shown below.
You can select the Resource Policy for all HTTP Verbs of a specific URL Pattern of Web app resources as shown above. For example, you can add the resource policy created above to the POST HTTP verb of the/{context}/{version}/time-tables
URL pattern as shown above.- For instructions on step 4 of the process of creating a Web app in App Manager, see Step 4 - Advanced Configuration.