Composing Api Documentation from multiple graphs
Closed this issue · 1 comments
tpluscode commented
Creating just a single document for the entire API Documentation may not be ideal.
I'd like to propose that the middleware is initialised with multiple URIs so that the graph is a union of all those dereferenced triples. Something like
import * as hydraBox from 'hydra-box'
hydraBox.create({
endpoint: '/api',
apiDocumentation: [
'http://some.remote/resource.ttl',
'./hydra/api/products.ttl',
'./hydra/api/users.ttl'
],
})
Not that I also removed the need for explicit file://
. I think it should be optional to reduce clutter
tpluscode commented
This will supported by latest version