Author Topic: Getting started with OSLC  (Read 27087 times)

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Getting started with OSLC
« 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.

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Getting started with OSLC
« Reply #1 on: April 21, 2020, 05:40:20 pm »
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

ddrakos

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Getting started with OSLC
« Reply #2 on: September 09, 2021, 11:09:06 pm »
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