Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
REST API Sample
Crsb
Hi,
Anyone has sample code for REST API in action? it doesn't matter what it is doing, just want to see it in action.
LS 7.x
Thanks!
Find more posts tagged with
Comments
AlexC
Check:
http://yourserver:8080/lscs/admin/debugpanel
(or whatever server
ort you have, 8080 would be the teamsite port where preview LSCS lives, for runtime adjust servername and port approriately).
It has plenty of examples from checking if the server is up, querying metadata, documents or executing rules engine.
Stokes
If you look in your teamsite/install directory, there will be a
developer.spar
file, which is part of the distribution but not installed by default. If you install that SPAR, you will see several sample components, including a whole folder of RESTful components that connect to services like Twitter and Digg, with examples of different security models in play.
All the Java source is included in the SPAR as well, so you can see how it's all done.
Stokes.
nipper
OK, I am not certain if the install worked as expected or my expectations were wrong.
I created an examples branch and ran:
sudo ./install_archive.ipl ./developer.spar /default/main/Examples/WORKAREA/Content
It ran, rebuilt the GUI, installed a bunch of jar files.
However the Examples/Content workarea was empty.
I see the components in /iwadmin/main/spars/WORKAREA/Installed/developer/component/Interwoven/Developer Tool
However none are tagged as components and pop up in an XML editor when edited.
Is that the expected behavior ? Do I just copy them to the component branch and make an EA or 3 ?
Crsb
Andy, I went thru the same experience as you when i first installed this SPAR
. the components are installed in: /iwadmin/main/livesite/component/WORKAREA/Installed Components/Interwoven/Developer Tool
Stokes
Yeah, some SPARs don't have any workarea content, so even though the installer makes you specify one, it may only install components into iwadmin. You can then drop them in a page in any workarea to try them out.
Stokes.