Attribute data type POST/PUT/GET in DNG as ADMIN with REST and python
I am trying to write a script for DNG ( me as new user), i have admin access and this script is to do below,
- Create new attribute data type if not present.
- Update data type values if data type existing
i am trying to search the template where i can post or put to create or update the data type. but unable to get it.
i am following rootservices-->catalog-->service.xml. But unable to identify any possibility as i am new to it.
Can anyone please guide me how to find links and how to create and update the attribute data type in DNG with REST python.
i know how to implement with python, if anyone can give me some guide on how to find APIs and how to GET the schema(XML) and how to push with Headers( i got one header which i don't know what value to give "net.jazz.jfs.owning-context").
Please give some guidance how to find proper address to push and do get and put for attribute data type in DNG.
3 answers
Hi Durga,
Please refer the general GET, PUT examples in the below documentation.
I am not aware as how this could be implemented using Python
Durga,
I've used the following to update one.
PUT: <base-url>/rm/types/<external_id>
Make sure to include the following in the header:
Content-Type
OSLC-Core-Version
If-Match (eTag)
I've never created one though.
-- Steve
Hi Durga,
you can create attribute datatypes over the Rest API of the GC application.
You can take a look at: <host>:port/gc/doc/scenarios
I am also using python, it works pretty well if you have developed a proper framework
Comments
thank you so much for the kick start, i am very new to DNG, so can you give some more info, how can i go with python more in this ? like what data/body should i post, and any other details please ? will help a lot to me as beginner !
Nasuh, the OP was asking about attribute data types in DNG, not GCM. The GCM REST APIs are not relevant to the OP's question.