public interface SpecManager
Modifier and Type | Method and Description |
---|---|
APISpec |
addSpec(String prefixPath,
String appName,
String context,
String uri,
String key,
com.hp.hpl.jena.rdf.model.Model spec)
Load and record the specification for a new API (which might
be associated with multiple APIEndpoints).
|
List<SpecEntry> |
allSpecs()
Answer a list of all the specs in this manager.
|
void |
deleteSpec(String context,
String uri,
String key)
Remove the specification for an API.
|
APISpec |
getAPISpec(com.hp.hpl.jena.rdf.model.Resource specRoot)
Get an APISpec object for the given spec
|
com.hp.hpl.jena.rdf.model.Model |
getSpecForAPI(String api)
Return the RDF model which specifies a particular API
|
com.hp.hpl.jena.rdf.model.Model |
getSpecForEndpoint(String url)
Return the RDF model which specifies the API corresponding to
and endpoint matching the given URL.
|
void |
loadSpecFor(String uriRequest)
Request that the specification which includes an APIEndpoint matching the
given request URL be located and loaded into the routing table.
|
APISpec |
updateSpec(String prefixPath,
String appName,
String context,
String uri,
String key,
com.hp.hpl.jena.rdf.model.Model spec)
Update the specification for an API.
|
APISpec addSpec(String prefixPath, String appName, String context, String uri, String key, com.hp.hpl.jena.rdf.model.Model spec) throws APISecurityException
uri
- The uri for the RDF resource which identifies this API specification.key
- An arbitrary key to identify the provider of the specification.spec
- An RDF model containing the specification of the API and its
associate endpoints.APISecurityException
- if the key does match the key used to create the matching existing entryAPISpec updateSpec(String prefixPath, String appName, String context, String uri, String key, com.hp.hpl.jena.rdf.model.Model spec) throws APISecurityException
uri
- The uri for the RDF resource which identifies this API specification.key
- An arbitrary key to identify the provider of the specification.spec
- An RDF model containing the specification of the API and its
associate endpoints.APISecurityException
- if the key does match the key used to create the matching existing entryvoid deleteSpec(String context, String uri, String key) throws APISecurityException
uri
- The uri for the RDF resource which identifies this API specification.key
- An arbitrary key to identify the provider of the specification.APISecurityException
- if the key does match the key used to create the matching existing entryvoid loadSpecFor(String uriRequest)
uriRequest
- the incoming request with the server root removedcom.hp.hpl.jena.rdf.model.Model getSpecForAPI(String api)
api
- the URI of the RDF resource identifying the APIcom.hp.hpl.jena.rdf.model.Model getSpecForEndpoint(String url)
APISpec getAPISpec(com.hp.hpl.jena.rdf.model.Resource specRoot)
Copyright © 2014. All Rights Reserved.