Space banner

   

This version of the product has reached end of support. The documentation is available for your convenience. However, you must be logged in to access it. You will not be able to leave comments.

Reviewing and testing REST Web APIs

The following HTTP methods are supported in BMC Client Management:

  • GET: List the URIs and perhaps other details of the collection's members if executed on a collection URI, or retrieve a representation of the addressed member of the collection, expressed in an appropriate Internet media type if executed on an individual element.
  • POST: Create a new entry in the collection. The new entry's URI is assigned automatically and is usually returned by the operation. This method is mainly used on a collection URI not for execution on an individual element. If run on an individual element it treats the addressed member as a collection in its own right and creates a new entry in it.
  • PUT: Replace the entire collection with another collection if executed on a collection URI. If executed on an individual element it replaces the addressed member of the collection, or if it doesn't exist, creates it.
  • DELETE: Delete the entire collection or the addressed member of the collection.

BMC Client Management provides a tool to review and test the REST web API operations available for interaction with BMC Client Management database. It is divided in the following different sections:

  • Configuration: Configure the access to the BMC Client Management database.
  • Useful Information: Find more useful information about the Swagger online help tool as well as for the API operations.
  • Use Cases: Find use case examples for specific situations.
  • Summary of API Documentation: Provides access to all available operations via their groups.

Security in REST Web APIs

The REST API uses the JSON encoding. The API has no knowledge of the purpose it is going to be used for. It ensures only JSON encoding and returns data verbatim. As the data can be used for different purposes, we recommend that you encode the data either before sending it to the API or after collecting it from the API.

The following are the use cases.

REST_API_usecases

To test the web service

  1. In a browser window, enter the tool URI in the https://server:port/wsdoc format. For example,http://scotty:1611 or http://localhost:1611.
  2.  In the Configuration box, enter the test server URI and credentials.

    (Click the screenshot to view it in higher resolution)


    The access to the BMC Client Management database is now granted.


    Note

    If your credentials contain domain name, enter the credentials in the following format: [domain]\\[username] (with two '\'). For example,production\\administrator.

  3. Select the Show allowable values in snippet check box if it is not yet checked. A number of parameters require specific database values that you cannot be aware of. By selecting this check box, the list of possible values that can be entered into these parameters is provided with the snippet.
  4. Select the Open links as pop-up check box to open the the online help on return classes and snippets in a new pop-up windows. If clear, it opens in a new tab of the browser.
  5. To access the operations click the respective group link below the Summary of API Documentation bar and the available operations will be listed.

    (Click the screenshot to view it in higher resolution)

  6. To test an operation, enter the required data in the available boxes and then click Try it out!
    The operation zone is expanded enlarged and the new boxes show the result of the executed operation.

    (Click the screenshot to view it in higher resolution)

For more information about supported REST web services operations, download and see the BMC Client Management - Web Services Operations Manual for Integration with BMC Client Management.

Was this page helpful? Yes No Submitting... Thank you

Comments