It's all about the answers!

Ask a question

RTC project area work item enumerations - REST service


Milan Krivic (9808161132) | asked Feb 12 '18, 7:39 a.m.

 Hi,


is there possible to manipulate with work item enumerations in some RTC project area with REST services? (e.g. creating, updating, deleting etc...).

I was searching on jazz.net, but I haven't found any related information.

Kind regards,
Milan

One answer



permanent link
Donald Nong (14.4k314) | answered Feb 13 '18, 12:58 a.m.

You mean OSLC API, right? You should be able to as the Enumeration attribute is not that different from attributes of other types. You will need to first find out the resource URI for a particular Enumeration value though, as you cannot assign it using the literal value.


Comments
Milan Krivic commented Feb 13 '18, 9:23 a.m. | edited Mar 12 '18, 10:40 p.m.

 Hi Donald!


Yes, OSLC API.

Is there any example for GET, POST requests for this case or something similar...?

For example, when we use POST method, we are getting 405 (Method not allowed)

A service exists for this URL, but not in combination with the used HTTP method. <o:p> </o:p>


Kind regards,
Milan


Donald Nong commented Mar 12 '18, 10:42 p.m.

If you talk about OSLC in general, please go through the OSLC workshop.
https://jazz.net/library/article/635

If you want to use POST or PUT against the enumerations themselves, I don't think such features are implemented, and that's why you get HTTP 405 errors.

Your answer


Register or to post your answer.