I use ruby for that. I made a ruby module, it's name is "usd". Look at
https://github.com/ogaida/usdFor `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
------------------------------
Original Message:
Sent: 05-06-2016 08:05 AM
From: Xavier Lluch
Subject: Simple REST working and reference documentation for Service Desk manager 12.9
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