basilapi / basil

Building Apis SImpLy from sparql endpoints
http://basil.kmi.open.ac.uk
24 stars 5 forks source link

aliases show up in each api id #129

Closed justin2004 closed 8 months ago

justin2004 commented 10 months ago

i deployed 3 different APIs and gave them each a distinct alias but when i run:

curl -X GET -u user:pass 'http://localhost:8080/basil/'

i get:

[               
  {             
    "id": "vbq9jcoixqht",
    "modified": 1698099217408,
    "name": "null",         
    "alias": [                                                         
      "query-2",
      "query-1",
      "query-3"      
    ],                        
    "createdBy": "penelope",
    "location": "http://localhost:8080/basil/vbq9jcoixqht"
  },
  {
    "id": "ure2aab9fyas",
    "modified": 1698099217606,
    "name": "null",
    "alias": [
      "query-2",
      "query-1",
      "query-3"
    ],
    "createdBy": "penelope",
    "location": "http://localhost:8080/basil/ure2aab9fyas"
  },
  {
    "id": "t4nwop7s4z7b",
    "modified": 1698099217861,
    "name": "null",
    "alias": [
      "query-2",
      "query-1",
      "query-3"
    ],
    "createdBy": "penelope",
    "location": "http://localhost:8080/basil/t4nwop7s4z7b"
  }
]

shouldn't each API id only have 1 alias?

enridaga commented 10 months ago

The Horror!

enridaga commented 10 months ago

This should be fixed now in 9839549

justin2004 commented 8 months ago

it looks good now. thanks!