Using Atelier REST API

Hi everyone!

From documentation:

... Unless ... you need to provide a username and password to access the API ...

... so the complete URL for GetServer is: http://localhost:57772/api/atelier/

Try this:

curl --user name:password "http://localhost:57772/api/ateiler/"

Response is:

<HTML>...<BODY><H1>Not Found</H1>
The requested URL /api/ateiler/%CSP.Login.cls was not found on this server.<P>

What I'm doing wrong?

  • 0
  • 322
  • 2
  • 3


Seems atelier is spelt incorrectly in the curl example, here's an example of use

curl --user jamien:SYS

{"status":{"errors":[],"summary":""},"console":[],"result":{"content":{"version":"Cache for UNIX (Apple Mac OS X for x86-64) 2017.3 (Build 529U) Wed Feb 15 2017 01:28:51 EST","id":"DD2AAF5C-F6C1-11E6-AC71-38C986213273","api":2,"features":[{"name":"DEEPSEE","enabled":true},{"name":"ENSEMBLE","enabled":true},{"name":"HEALTHSHARE","enabled":false}],"namespaces":["%SYS","DOCBOOK","ENSDEMO","ENSEMBLE","SAMPLES","USER"]}}}

I'm used Caché installation with maximum security level - at this level namespace %SYS ( with %CSP.Login.cls ) under resource %DB_CACHESYS without any public permission.


GetDocNames for SAMPLES namespace returns list of documents

One of the list is Use in Dashboards-Data-Driven Colors.pivot.DFI

I can't open it with Studio and can't get it with GetDoc:

{"status": {"errors": [],"summary": ""},"console": [],"result": {"name": "Use in Dashboards-Data-Driven Colors.pivot.DFI","db": "","ts": "","cat": "OTH","enc": false,"content": "","status": "ERROR #16005: Document 'Use in Dashboards-Data-Driven Colors.pivot.DFI' does NOT exist"}}

$zv: Cache for Windows (x86-64) 2016.2.1 (Build 803_1U) Mon Feb 27 2017 09:24:21 EST