CLARIAH / grlc

grlc builds Web APIs using shared SPARQL queries
http://grlc.io
MIT License
135 stars 33 forks source link

Avoid clashes with other files present in repository? #462

Closed Adafede closed 3 months ago

Adafede commented 3 months ago

Hi,

I found out (very cool!) that the repo I am using to store my queries is also listed but it looks like other files present in the repo are interfering, see http://grlc.io/api-git/adafede/sparql/swagger.

Would you have any suggestions on how to handle such cases? Should yml/json config files used for other actions be stored elsewhere ideally?

Thank you for the very nice work!

c-martinez commented 3 months ago

Hi @Adafede,

If I understand correctly, the issue seems to be that your queries are not listed in https://grlc.io/api-git/adafede/sparql/ , because they are in a subdir called queries?

you can use the subdir keyword as described here: https://github.com/CLARIAH/grlc?tab=readme-ov-file#from-a-github-repository

So your queries generate this api:

https://grlc.io/api-git/adafede/sparql/subdir/queries

I hope I understood your question, and that this helps you, but please let me know if you have any further questions

Adafede commented 3 months ago

Oh, that makes sense, sorry did not understood the subdir part correctly, thank you!

c-martinez commented 3 months ago

No problem, glad it works now.