Lscs debug panel

Lscs comes with a debug panel (actually a REST API) that can be very useful if you need to debug your livesite lscs-queries. The manual is very brief on this section so here some usefull urls and remarks.

http: //server:port/lscs/admin/debugpanel/ [default port is 1876, I believe]

This is the most usefull url which gives you access to lscs-status, -diagnostics, -projectsnames and document query.

With the ‘document query’ you can query lscs for all metadata stored for a document. F.i. if you enter in field ‘q’ under ‘Metadata Search’ a query like ‘TeamSite/Templating/DCR/Type:category/type’ you will see a list of of dcr’s of the dct ‘category/type’ within the project. Enter ‘*’ in field ‘q’ and *all* documents will be returned. If you leave the project field empty it will use the first project name a listed under ‘List project names’.

http: //server:port/lscs/v1/metadata-info

This returns a list of all known metadata fields with lscs.

http: //server:port/lscs/v1/document/path/sites/mysite/default.site?project=myproject

This returns the document (e.g. file contents, NOT the metadata) from the path (in the workarea) sites/mysite/default.site from myproject. Again you can leave the project out to query the default project.

Now, with this info read the manual again for further details.

One thought on “Lscs debug panel

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s