Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

To add API Documentation for RESTful web services:

  1. Click Configure > WEB SERVICES > REST Provider.
  2. On the REST Provider screen, click Image Modifiedto the Restful web service.
  3. Click Edit Documentation.

  4. The Edit Documentation window appears with API and Method Details for the chosen RESTful web service. By default, the values in the API Details section are filled automatically based on the chosen web service. You can change the values as per your requirements.

    Image Modified

    API Details

    Description

    NameName of the API Documentation. By default, it shows the provider's value as the name.
    DescriptionDescription about the API Documentation.
    EmailValid email address to send queries.
    TitleTitle of your API documentation. It must contain alphanumeric and few special characters (_ - . : , @ $ ? \\ and space) and must start with an Alphabet/Underscore/Number)


    Method Details

    Description

    SummaryPurpose of the method.
    NotesDescription of the method.
    API ParametersList of parameters, if provided at the time of creating Web Service Provider activity.
    Method PresentationStatus code of the request, response, and fault. You can also provide the description of the status code.


  5. Click Save.

Viewing Endpoint URL

To view Endpoint URL of a web service activity:

  1. Click Configure > WEB SERVICES > REST Provider.
  2. Click Endpoint in the Documentation column corresponding to the web service activity.

...


  1. Image Added

    This displays the Endpoint URL in the new tab of your browser.

...


  1. Image Added
               

Viewing API Documentation

To view API documentation of a web service activity:

  1. Click Configure > WEB SERVICES > REST Provider.
  2. Click API Doc in the Documentation column corresponding to the web service activity.

...


  1. Image Added

  2. This displays the API documentation of the selected activity in the new tab of your browser.

    Image Modified

  3. Click API Doc to view the API documentation of all web service activities.

...


  1. Image Added

    Option Name

    Description

    Show/HideShow or hides all APIs.
    List OperationsDisplays the list view of all the expanded APIs.
    Expand OperationsExpands all APIs to view details.

    The list of all web service activities populates on the screen, in case you are viewing API documentation of all web service activities.

...

  1. Image Added 

    Select the activity from the left menu to view API details of a particular activity.

  2. Click API method or Expand Operations to view API details. 

    Image Modified

  3. Provide the details in the fields and click Try it out to view the response.

    Image Modified

Changing Logo/Images in API Documentation

To change the logo of the API documentation:

  1. Go to <ConnectServerInstallFolder>\AdeptiaServer\ServerKernel\etc folder.
  2. Open server-configure.properties file in the Text Editor.
  3. Set the path of the logo/image in the abpm.webservice.rest.apidoc.imagepath property. The default URL is "images/api_doc_header.png". The dimension of the image should be between 50x50 and 50x650. Supported image types are PNG, JPG, GIF, and BMP."
  4. Save the file.