on 08-02-2016 3:30 PM
Hello Experts,
Potentially, we are going to integrate our Java web-application with some groups in JAM. So, it would be great if you could answer few question which appeared after reading JAM developers guide and trying JAM API "Try" feature in practice.
I have created developer's account in SAP HANA Cloud and created experimental group for testing the API using "Try" feature:
There are 3 PDF's on the screenshot above which I have successfully uploaded using [POST] /Groups('{id}')/ContentItems service URL. According to the documentation this service "Creates a blog entry, a page (wiki), a poll, or a tool, or uploads a document, in the specified Group". So, My first question is - isn't it possible to create the item of type LINK using this service like on the screen below? If this service is not correct could you please let me know which one should I use to achieve the goal?
The second question is - Is there a way to create the link not in just general Content folder, but rather in some sub-folder (e.g. in folder level1 on the screen)?
looking forward to your reply.
Hi Danylo,
the official IANA definition for a media of type "link" is this:
application/link-format
I'm not sure yet if Jam supports that specific content type but certainly you can try it out.
You won't be able to test this though through our API documentation but you will have to use a tool like Postman for this.
Official iana documentation which is also linked from our API documentation:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Danylo,
Regarding your second question, you can use the following API call to post content into a folder:
[POST] /Folders(Id='{Id}', FolderType='{FolderType}')/ContentItems
For example:
https://developer.sapjam.com/api/v1/OData/Folders(Id='qqoNmYVX1l6GylhwYlwbcq', FolderType='Folder')/ContentItems
Hope this helps.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.