Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

HTTP Post to create assets - how does it work?

I would like to create an asset and upload an attached file from within a Javascript application using the Web Services or REST API.

I found a HTTP Post example in the docs but there are little details how this works. For example:

One form field needs to contain a .RAS (Reusable Asset Specification) manifest file.

What is this file? I searched the docs and have not found anything.

Another form field must contain "a serialized form of artifact details of the asset." What is the structure of this serialized field?

Another field must contain the GroupId "Provides an integer representing the group you want to submit the asset to" Where does the Id come from?

In short, I have no idea how to get this HTTP Post to work and can't find any more information.

Is there another reference source?

0 votes



2 answers

Permanent link
Hi,

The HTTP Post for assets is not API. It's an internal form used by our
Rich Client code.

The formal API is the REST API.

--
Rich Kulp
Rational Asset Manager developer

0 votes


Permanent link
See https://jazz.net/wiki/bin/view/Main/RamRestApiMain

Best things to work with Rest API is to first play with a tool like https://addons.mozilla.org/en-US/firefox/addon/poster/

First Get an asset similar to the one you want to create/update (to have one good XML representations):

GET http://<server>/ram/oslc/assets/<GUID>/<VERSION>

And use the example in the link above.

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jan 25 '11, 6:00 p.m.

Question was seen: 5,420 times

Last updated: Jan 25 '11, 6:00 p.m.

Confirmation Cancel Confirm