It's all about the answers!

Ask a question

Create a project using REST API


Sylvain LEQUEUX (2132728) | asked Oct 31 '11, 9:06 a.m.
Hello,

I'm trying to create an RRC project using the REST API.

I tried the way explained in https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi#POST_project_areas_collection but I still get a 403 error in response.

After browsing this forum, I checked my repository rights and I'm in the JazzAdmins group. I also provided a Referer header.

Here is my POST request :


URL : https://localhost:9444/jazz/process/project-areas (found in the projectAreas element in https://localhost:9444/rdm/rootservices)

Headers :
- OSLC-Core-Version: 2.0
- Referer: https://localhost:9444/jazz/admin
- accept: application/xml;charset=utf-8

Body :
<?xml version="1.0" encoding="UTF-8"?>
<jp06:project-area xmlns:jp06="http://jazz.net/xmlns/prod/jazz/process/0.6/" jp06:name="testProjectAreaCreation" jp06:templateId="RRSTemplateID">
<jp06:summary>The summary</jp06:summary>
<jp06:description>The description</jp06:description>
<jp06:visibility jp06:access="PUBLIC"/>
</jp06:project-area>


Best regards,
Sylvain

5 answers



permanent link
Sylvain LEQUEUX (2132728) | answered Oct 31 '11, 9:57 a.m.
I begin to think that there could be an authentication problem.

In fact, the rootservices document is under /rdm context whereas the requested URL for project creation is under /jazz context. Is there a way to do it anyway ?

permanent link
Andy Berner (61127) | answered Oct 31 '11, 2:38 p.m.
Hello,

I'm trying to create an RRC project using the REST API.

I tried the way explained in https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi#POST_project_areas_collection but I still get a 403 error in response.
n


Be careful: that link is to a provisional set of REST services...if all you need is to do this for the current release, you may be able to get it to work, but it's NOT promised to be stable for future releases. And there's no guarantee that you are encapsulating everything that's done when the project area is created through the GUI...this is not supported api at this point.

permanent link
Sylvain LEQUEUX (2132728) | answered Nov 02 '11, 3:56 a.m.
Thank you for this information.
I'll be careful about this point.

permanent link
Rosa Naranjo (2.9k11623) | answered Nov 02 '11, 4:49 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
In addition, please take note of the information at the top of the page.

NOTE: The development wiki is a work area used by the Jazz development teams to plan and discuss technical designs and operational procedures related to the development projects at Jazz.net. Often you will find work items linking to documents in the wiki. Everyone is welcome to browse the wiki, follow along, and participate in the development process. Participation is what Jazz.net is all about! But please keep in mind that information on the wiki is "as is", unsupported, and may be outdated or inaccurate. For information on released products, consult the product documentation, support tech notes, and the Jazz.net library. See also the Jazz.net Terms of Use.

If you go back to the ProcessMain wiki page, you will also notice that the wiki page you refer to is listed under the section: topics for Jazz developers. Think of these wiki pages as an 'open' reference to our internal APIs. It allows for open development such that there is transparency in the technical designs. However, it is not meant for external consumption or use by non-Jazz platform products.

Thank you for this information.
I'll be careful about this point.

permanent link
Sylvain LEQUEUX (2132728) | answered Nov 03 '11, 4:00 a.m.
I didn't see that it was a page for Jazz Developpers. In fact, I followed links from another topic.
Once again thank you for this information.

Your answer


Register or 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.