buildingSMART / bSDD

The buildingSMART Data Dictionary repository, where we publish the documentation, examples and more. We don't publish here the data, the source code of the bSDD service or the front end of the website.
https://www.buildingsmart.org/users/services/buildingsmart-data-dictionary/
MIT License
135 stars 36 forks source link

namespaceURI otl.amsterdam.nl doesn't exist within bSDD #26

Closed araccaine closed 2 years ago

araccaine commented 2 years ago

Describe the bug The namespaceURI for Amsterdam's Object-Type Library isn't working respectively doesn't exist in bSDD

To Reproduce E.g. use a terminal to execute:

curl -X 'GET' \
  'https://api.bsdd.buildingsmart.org/api/Domain/v2/Classifications?namespaceUri=http%3A%2F%2Fotl.amsterdam.nl%2F' \
  -H 'accept: text/plain'

Or use swaggerhub with Domain/get_api_Domain_v2_Classifications and use http://otl.amsterdam.nl/ as namespaceUri

Expected behavior Response should hold classifications for otl.amsterdam.

Actual behavior Code 400: "Domain with namespace 'http://otl.amsterdam.nl' not found"

Baars-IT commented 2 years ago

Hi Eric,

(sorry for this ultra late reply :-( )

In this case the issue was that the namespace uri was stored including ending slash, but search is always done without slash. The namespace uri has been fixed now.