All URIs are relative to https://localhost/api
Method | HTTP request | Description |
---|---|---|
getPrefixCollection | GET /identifier/prefixes/ | Returns list of prefixes |
getPrefixCollection_0 | GET /identifier/prefixes/contract/{uri} | Returns contracted URI |
getPrefixCollection_1 | GET /identifier/prefixes/expand/{id} | Returns expanded URI |
getPrefixCollection()
Returns list of prefixes
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.IdentifierprefixesApi;
IdentifierprefixesApi apiInstance = new IdentifierprefixesApi();
try {
apiInstance.getPrefixCollection();
} catch (ApiException e) {
System.err.println("Exception when calling IdentifierprefixesApi#getPrefixCollection");
e.printStackTrace();
}
This endpoint does not need any parameter.
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
getPrefixCollection_0(uri)
Returns contracted URI
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.IdentifierprefixesApi;
IdentifierprefixesApi apiInstance = new IdentifierprefixesApi();
String uri = "uri_example"; // String | URI of entity to be contracted to identifier/CURIE, e.g \"http://www.informatics.jax.org/accession/MGI:1\"
try {
apiInstance.getPrefixCollection_0(uri);
} catch (ApiException e) {
System.err.println("Exception when calling IdentifierprefixesApi#getPrefixCollection_0");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
uri | String | URI of entity to be contracted to identifier/CURIE, e.g "http://www.informatics.jax.org/accession/MGI:1\" |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
getPrefixCollection_1(id)
Returns expanded URI
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.IdentifierprefixesApi;
IdentifierprefixesApi apiInstance = new IdentifierprefixesApi();
String id = "id_example"; // String | ID of entity to be contracted to URI, e.g \"MGI:1\"
try {
apiInstance.getPrefixCollection_1(id);
} catch (ApiException e) {
System.err.println("Exception when calling IdentifierprefixesApi#getPrefixCollection_1");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of entity to be contracted to URI, e.g "MGI:1" |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json