CA Service Management

  • 1.  REST-API Integration details

    Posted Nov 19, 2018 05:59 AM

    Hi Team,

     

    We would like to have a REST API / REST webservice to create the ticket / incident in CA Service Desk. We would be integrating the REST API with the chatbot to create ticket / incident in CA Service Desk.

     

    Following is the example of REST API, which we expect to have from CA Service Desk.

    Example:
    HTTP Method: POST
    URL: http(s)://<<Hostname>>:<<Port>>//caisd-rest/chg?parameteres
    Authentication: Basic xxxxxxxx
    Request Payload:
    {
    “sid”:123,
    “description”: ”Not able to access PO”,
    “problem_type”: “PO Error”,
    “userid”: “Test User”,
    “asset”: “abc”
    }
    Response Payload:
    {
    “createTicketReturn”:”Success”
    “newTicketNumber”:”123456”
    }
    From where can we find the rest-api details.


  • 2.  Re: REST-API Integration details

    Posted Nov 19, 2018 08:02 AM

    Pushpith,

     

    The documentation for the REST API has to generated manually.

    It's a fairly straight forward process though as long as you're using 14.1 : )

     

    Generate API Documentation for RESTful Services (14.1) 

     

    Elwynn.



  • 3.  Re: REST-API Integration details

    Posted Nov 22, 2018 04:53 AM

    Hi,

     

    I followed the steps mentioned in the document, but post deploying I didn't get any documents. I checked the logs and below are the messages in the RestWSJavadocErrors log file:

     

    REST API JAXB Doclet: error - Cannot find doclet class com.lunatech.doclets.jax.jaxb.JAXBDoclet
    REST API JAX-RS Doclet: error - Cannot find doclet class com.lunatech.doclets.jax.jaxrs.JAXRSDoclet

     

    I'm using the 17.1 version to generate docs.



  • 4.  Re: REST-API Integration details

    Posted Nov 22, 2018 09:59 AM

    Also, Can some1 let me know the API Structure as well?



  • 5.  Re: REST-API Integration details

    Posted Nov 23, 2018 12:26 PM

    Hi Pushpith,

     

    Have you looked over the documentation? There really isn’t much to it. Each object has its own uri path. The structure changes a bit depending on the type of request, but that’s documented well.

     

    REST HTTP Methods - CA Service Management - 17.1 - CA Technologies Documentation 



  • 6.  Re: REST-API Integration details

    Broadcom Employee
    Posted Nov 26, 2018 04:37 PM

    Yes there is a defect here. it is DE45532.