CA Service Management

 View Only
  • 1.  Simple REST working and reference documentation for Service Desk manager 12.9

    Posted May 06, 2016 08:06 AM

    Hi,

     

    We want to use REST to allow another aplication to work with SDM but the developers say that CA documentation is not enoutgh clear for them.

    I wonder If someone can tell us if any develop team can work perfectly with the following links:

     

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

    CA SDM REST API - CA Service Management - 14.1 - CA Technologies Documentation

    Generate API Documentation for RESTful Services - CA Service Management - 14.1 - CA Technologies Documentation

    with jax-doclets-0.10.0.jar on our server NX_ROOT/doc folder appears empty...

     

    This is the first time someone try to acces SDM thru REST and don't know if this documentation is enought I think it's ok but I need other user experience and opinion

     

    We also apreciate a simple example creating NR because we don't see it on the above links



  • 2.  Re: Simple REST working and reference documentation for Service Desk manager 12.9

    Posted May 24, 2016 10:58 AM

    I don't use  rest but i belive it's so simple like that

     

    CA SDM Trabalhando com WebService

    CA Service Desk WebService



  • 3.  Re: Simple REST working and reference documentation for Service Desk manager 12.9

    Posted May 25, 2016 02:20 AM

    Thanks Tiago,

     

    Helpfully we've got the javadoc with jax-doclets-0.9.0.jar. With SDM 12.9 doesn't work jax-doclets-0.10.0.jar one...

    Here you have the documentation:

    Generate API Documentation for RESTful Services - CA Service Management - 14.1 - CA Technologies Documentation



  • 4.  RE: Simple REST working and reference documentation for Service Desk manager 12.9

    Posted Sep 03, 2020 02:47 AM
    I use ruby for that. I made a ruby module, it's name is "usd". Look at https://github.com/ogaida/usd

    For `nr` insert i use a json template:

    ```
    template = ERB.new <<-EOF
    {
    "nr": {
    "name": "<%= name %>",
    "alarm_id": "<%= alarm_id %>",
    "class": {
    "@id": "<%= class_id %>"
    },
    "z_variante": {
    "@COMMON_NAME": "<%= z_variante %>"
    },
    "description": "<%= description %>"
    }
    }
    EOF
    json = template.result_with_hash(
    :class_id => "400127",
    :name => h["name"],
    :alarm_id => h["alarm_id"],
    :z_variante => h["z_variante"],
    :description => h["description"]
    )
    ```

    all other attributes will be inserted with update calls with `rusdc update ...` or `update_ref_attr ...`

    or look at the import-script example: https://github.com/ogaida/usd/wiki/import-scripts

    ------------------------------
    Devops Engineer
    Sycor GmbH
    ------------------------------