Resource Methods Page

On the Methods page, you can view, add, or delete the methods of your REST resource definition.

ReadyAPI: REST Methods

To open the Methods page:

  1. Double-click a resource in the Navigator.

  2. Switch to the Methods page.

Adding Methods

To add a resource method:

  1. Click add.png.

  2. In the follow-up dialog, enter the method name, select the method type, and add method parameters.

    New REST Method dialog

ReadyAPI will add the new resource, its method and a sample request to the project.

Managing Method Parameters

Adding Parameters

To add a method parameter:

  1. Click add.png.

  2. In the parameter table, enter a parameter name and value, then select a type.

    Possible type values: QUERY, HEADER, MATRIX, PLAIN.

  3. Select the Creates and opens request check box if you want to create and open a request in the editor.

  4. Click OK.

Deleting Parameters

To delete a method parameter:

  1. Select a parameter in the table.

  2. Click remove.png.

  3. In the follow-up dialog, click Yes.

Updating Parameters

To update method parameters from a URL:

  1. Click extract.png.

  2. In the follow-up dialog, enter the URL to extract parameters from.

  3. Click OK.

Deleting Methods

To delete a resource method, select it and click remove.png.

See Also

Publication date: