All URIs are relative to http://localhost:9000
Method |
HTTP request |
Description |
parseYAML |
POST /yaml |
|
Job parseYAML(yaml)
// Import classes:
import io.github.cloudiator.rest.ApiClient;
import io.github.cloudiator.rest.ApiException;
import io.github.cloudiator.rest.Configuration;
import io.github.cloudiator.rest.auth.*;
import io.github.cloudiator.rest.models.*;
import io.github.cloudiator.rest.api.YamlApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:9000");
// Configure API key authorization: ApiKeyAuth
ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.setApiKeyPrefix("Token");
YamlApi apiInstance = new YamlApi(defaultClient);
String yaml = "yaml_example"; // String | YAML payload
try {
Job result = apiInstance.parseYAML(yaml);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling YamlApi#parseYAML");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name |
Type |
Description |
Notes |
yaml |
String |
YAML payload |
|
Job
ApiKeyAuth
HTTP request headers
- Content-Type: application/yaml
- Accept: application/json
Status code |
Description |
Response headers |
200 |
OK |
- |