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,
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
Comments
durga sankar
commented Jun 30 '22, 3:22 a.m.
i know how to implement using python , i just need how to get the api links and xml schema. where to push the xml schema so it will be created. or updated. |
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
Comments
durga sankar
commented Jul 14 '22, 6:42 a.m.
so, i need to do a get first to verify it's there or not,
then if there i will update else create.
so now Q. is how i can get all the attribute types and if i want to push where should i push so the external_id will auto generate. like Slug_someID generates in QM test case create time.
|
Hi Durga,
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
durga sankar
commented Jul 14 '22, 3:01 a.m.
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.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.