grlc icon indicating copy to clipboard operation
grlc copied to clipboard

Handling of name clashes for endpoints

Open jaw111 opened this issue 3 years ago • 1 comments

Opening this to continue discussion from #331 about handling of name clashes for endpoints that may arise if the 'local' names of sparql queries are the same. Let's say I reference queries http://example.com/path/query.rq and http://example.com/some/other/path/query.rq, what should the behavior be?

Is it reasonable to allow to (optionally) specify a name for the endpoint possibly by adding a new name decorator or extending the YAML specification?

title: Title of my API
description: Description of my API
contact:
  name: Contact Name
  url: https://www.mywebsite.org
licence: http://example.org/licence.html
queries:
  - name: foo
    url: https://www.mywebsite.org/query1.rq
  - name: bar
    url: https://www.mywebsite.org/query2.rq
  - name: baz
    url: https://www.otherwebsite.org/query3.rq

jaw111 avatar Jun 02 '21 16:06 jaw111

I think this is a nice proposal. Are there any other attributes we would like to for each query?

@albertmeronyo -- any thoughts?

c-martinez avatar Jun 11 '21 20:06 c-martinez