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>
</BODY></HTML>

What I'm doing wrong?

Vote up!
Vote down!

Rating: 0

3 answers

Answer

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

curl --user jamien:SYS http://127.0.0.1:57772/api/atelier/


{"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"]}}}

Vote up!
Vote down!

Rating: 0

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.

Vote up!
Vote down!

Rating: 0

Answer

%Devlopment resource is required.

Vote up!
Vote down!

Rating: 2

It helped, thank you, Jamie!

Vote up!
Vote down!

Rating: 0

Answer

Note

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

Vote up!
Vote down!

Rating: 0

Log in to answer