Sparx Systems Forum
Pro Cloud Server / Prolaborate / WebEA => PCS General Board => Topic started by: OpenIT Solutions on April 16, 2020, 12:40:45 am
-
Hi,
I've started looking at the OSLC API in ProCloud. I've configured my database manager without an 'Access Code'. I'm trying a few simple GET's, ie http://localhost:804/sparx_repo/oslc/am/resource/{5BC46CBA-F5F2-4a81-AA1C-328947DD0CEA} or http://localhost:804/sparx_repo//oslc/am/qc/?oslc.where=dcterms:type="Actor"
I'm using Postman to test and in all cases I get :-
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:oslc="http://open-services.net/ns/core#">
<oslc:Error>
<oslc:statusCode>401</oslc:statusCode>
<oslc:message>Missing User Authentication Identifier</oslc:message>
</oslc:Error>
</rdf:RDF>
Any ideas what I need to add to the GET's to pull back some results?
Regards,
Jon.
-
Hi,
FYI sparx support answered this one for me. I needed to get the useridentifer via POST and then add to subsequent GET requests, see https://www.sparxsystems.com/enterprise_architect_user_guide/15.1/model_repository/oslc_user_cred.html
-
Hi,
when running request with GET (<USER AUTHENTICATION TOKEN>)
https://xxxx.xxxx1.xxxx.se:8443/xxxxxxxx/oslc/am/resource/dg_{87C705BC-6F5A-4dcc-9C82-B901E68B1A9B}?useridentifier={{prolab-useridentifier}}
I always receive Status 401 back. POST request returns <USER AUTHENTICATION TOKEN> without any issues.
Some help would really be appreciated.
Regards
Drakos