All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| getModelCard | GET /info | Get Model Card |
ModelCard getModelCard()
Get Model Card
Get information about the model being served
// Import classes:
import org.cms.client.ApiClient;
import org.cms.client.ApiException;
import org.cms.client.Configuration;
import org.cms.client.auth.*;
import org.cms.client.models.*;
import org.cms.client.api.MetadataApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure OAuth2 access token for authorization: OAuth2PasswordBearer
OAuth OAuth2PasswordBearer = (OAuth) defaultClient.getAuthentication("OAuth2PasswordBearer");
OAuth2PasswordBearer.setAccessToken("YOUR ACCESS TOKEN");
// Configure API key authorization: APIKeyCookie
ApiKeyAuth APIKeyCookie = (ApiKeyAuth) defaultClient.getAuthentication("APIKeyCookie");
APIKeyCookie.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKeyCookie.setApiKeyPrefix("Token");
MetadataApi apiInstance = new MetadataApi(defaultClient);
try {
ModelCard result = apiInstance.getModelCard();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MetadataApi#getModelCard");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}This endpoint does not need any parameter.
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |