Alfresco built-in webscripts

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2009 09:29 PM
Hi,
I'm new to Alfresco and have been playing around creating my own web scripts. Now I want to use one of the default scripts that comes with Alfresco -> tags.get. I've found an information page here: http://localhost:8080/alfresco/service/ … g/tags.get. This page tells me i can access the script using this url: /api/tags/{store_type}/{store_id}?tf={tag_filter?}
This is where i get stuck. How do i know my store_type and store_id to access this web script?
Thanks much!
I'm new to Alfresco and have been playing around creating my own web scripts. Now I want to use one of the default scripts that comes with Alfresco -> tags.get. I've found an information page here: http://localhost:8080/alfresco/service/ … g/tags.get. This page tells me i can access the script using this url: /api/tags/{store_type}/{store_id}?tf={tag_filter?}
This is where i get stuck. How do i know my store_type and store_id to access this web script?
Thanks much!
Labels:
- Labels:
-
Archive
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2009 02:46 AM
Hi,
I believe this will get you started:
http://wiki.alfresco.com/wiki/Node_Handles_and_Store_Protocols
http://forums.alfresco.com/en/viewtopic.php?f=4&t=14692&p=48278
Cheers,
Lista.
I believe this will get you started:
http://wiki.alfresco.com/wiki/Node_Handles_and_Store_Protocols
http://forums.alfresco.com/en/viewtopic.php?f=4&t=14692&p=48278
Cheers,
Lista.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2009 09:55 PM
Hi,
Thanks for your reply. The Node Handle page was helpful in describing the following:
Store Protocol - that is, the type of store
Store Identifier - the id of the store
eg: workspace://default
However i still dont know which Store Protocol and Identifier i need. I know i'm calling the script correctly because i can call the Login script (login.get.desc), which has a URL of:
That works fine. But I still cant access the Tag script, with the URL of:
I appreciate any help on this problem!
Thanks for your reply. The Node Handle page was helpful in describing the following:
Store Protocol - that is, the type of store
Store Identifier - the id of the store
eg: workspace://default
However i still dont know which Store Protocol and Identifier i need. I know i'm calling the script correctly because i can call the Login script (login.get.desc), which has a URL of:
<url>/api/login?u={username}&pw={password?}</url>
That works fine. But I still cant access the Tag script, with the URL of:
<url>/api/tags/{store_type}/{store_id}?tf={tag_filter?}</url>
I appreciate any help on this problem!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2009 03:50 AM
Unless you've got a special case, it'll be: workspace and SpacesStore.
These parts form something called a "nodeRef" that you'll come across throughout Alfresco. You can get the nodeRef for a piece of content from it's details page.
Thanks,
Mike
These parts form something called a "nodeRef" that you'll come across throughout Alfresco. You can get the nodeRef for a piece of content from it's details page.
Thanks,
Mike
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2010 12:54 AM
Hi Mike.
I am not able to use the built-in webscript - Add tag. I am passing the parameters as follows into my URL -
store_ref = workspace
store_id = SpacesStore
id = 5e91b415-12b0-46ac-a75d-c320e7cbe0fc
URL :
http://localhost:8080/alfresco/service/api/node/workspace/spacesstore/5e91b415-12b0-46ac-a75d-c320e7...
But I get the error:
{ "status" : { "code" : 500, "name" : "Internal Error", "description" : "An error inside the HTTP server which prevented it from fulfilling the request." }, "message" : "03010002 Wrapped Exception (with status template): 03010001 Error during processing of the template 'Expression tags is undefined on line 2, column 16 in org\/alfresco\/repository\/tagging\/node.tags.post.json.ftl.'.
So how can I add a tag on this nodeRef ?
Can u plz help ?
Thanks in advance.
I am not able to use the built-in webscript - Add tag. I am passing the parameters as follows into my URL -
store_ref = workspace
store_id = SpacesStore
id = 5e91b415-12b0-46ac-a75d-c320e7cbe0fc
URL :
http://localhost:8080/alfresco/service/api/node/workspace/spacesstore/5e91b415-12b0-46ac-a75d-c320e7...
But I get the error:
{ "status" : { "code" : 500, "name" : "Internal Error", "description" : "An error inside the HTTP server which prevented it from fulfilling the request." }, "message" : "03010002 Wrapped Exception (with status template): 03010001 Error during processing of the template 'Expression tags is undefined on line 2, column 16 in org\/alfresco\/repository\/tagging\/node.tags.post.json.ftl.'.
So how can I add a tag on this nodeRef ?
Can u plz help ?
Thanks in advance.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2011 09:27 AM
I am in the same situation, unable to add tags with the inbuilt tag…
How to post the tags that needs to be added to the node , which parameter should be used.
I am getting the same the exception…
Any ideas how to make it work…
How to post the tags that needs to be added to the node , which parameter should be used.
I am getting the same the exception…
Any ideas how to make it work…
