vcell / data /vcell-restclient /docs /GeometryResourceApi.md
introvoyz041's picture
Migrated from GitHub
9d54b72 verified

GeometryResourceApi

All URIs are relative to https://vcell.cam.uchc.edu

Method HTTP request Description
deleteGeometry DELETE /api/v1/geometry/{id}
deleteGeometryWithHttpInfo DELETE /api/v1/geometry/{id}
getGeometrySummaries GET /api/v1/geometry/summaries
getGeometrySummariesWithHttpInfo GET /api/v1/geometry/summaries
getGeometrySummary GET /api/v1/geometry/summary/{id}
getGeometrySummaryWithHttpInfo GET /api/v1/geometry/summary/{id}
getGeometryVCML GET /api/v1/geometry/{id}
getGeometryVCMLWithHttpInfo GET /api/v1/geometry/{id}
saveGeometry POST /api/v1/geometry
saveGeometryWithHttpInfo POST /api/v1/geometry

deleteGeometry

void deleteGeometry(id)

Remove specific Geometry.

Example

// Import classes:
import org.vcell.restclient.ApiClient;
import org.vcell.restclient.ApiException;
import org.vcell.restclient.Configuration;
import org.vcell.restclient.models.*;
import org.vcell.restclient.api.GeometryResourceApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://vcell.cam.uchc.edu");

        GeometryResourceApi apiInstance = new GeometryResourceApi(defaultClient);
        String id = "id_example"; // String | 
        try {
            apiInstance.deleteGeometry(id);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeometryResourceApi#deleteGeometry");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id String

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
204 No Content -
401 Not Authenticated -
403 Not Allowed -
404 Not found -
500 Data Access Exception -

deleteGeometryWithHttpInfo

ApiResponse deleteGeometry deleteGeometryWithHttpInfo(id)

Remove specific Geometry.

Example

// Import classes:
import org.vcell.restclient.ApiClient;
import org.vcell.restclient.ApiException;
import org.vcell.restclient.ApiResponse;
import org.vcell.restclient.Configuration;
import org.vcell.restclient.models.*;
import org.vcell.restclient.api.GeometryResourceApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://vcell.cam.uchc.edu");

        GeometryResourceApi apiInstance = new GeometryResourceApi(defaultClient);
        String id = "id_example"; // String | 
        try {
            ApiResponse<Void> response = apiInstance.deleteGeometryWithHttpInfo(id);
            System.out.println("Status code: " + response.getStatusCode());
            System.out.println("Response headers: " + response.getHeaders());
        } catch (ApiException e) {
            System.err.println("Exception when calling GeometryResourceApi#deleteGeometry");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Response headers: " + e.getResponseHeaders());
            System.err.println("Reason: " + e.getResponseBody());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id String

Return type

ApiResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
204 No Content -
401 Not Authenticated -
403 Not Allowed -
404 Not found -
500 Data Access Exception -

getGeometrySummaries

List getGeometrySummaries(includePublicAndShared)

Return Geometry summaries.

Example

// Import classes:
import org.vcell.restclient.ApiClient;
import org.vcell.restclient.ApiException;
import org.vcell.restclient.Configuration;
import org.vcell.restclient.models.*;
import org.vcell.restclient.api.GeometryResourceApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://vcell.cam.uchc.edu");

        GeometryResourceApi apiInstance = new GeometryResourceApi(defaultClient);
        Boolean includePublicAndShared = true; // Boolean | Include Geometry summaries that are public and shared with the requester. Default is true.
        try {
            List<GeometrySummary> result = apiInstance.getGeometrySummaries(includePublicAndShared);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeometryResourceApi#getGeometrySummaries");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
includePublicAndShared Boolean Include Geometry summaries that are public and shared with the requester. Default is true. [optional]

Return type

List<GeometrySummary>

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
500 Data Access Exception -

getGeometrySummariesWithHttpInfo

ApiResponse<List> getGeometrySummaries getGeometrySummariesWithHttpInfo(includePublicAndShared)

Return Geometry summaries.

Example

// Import classes:
import org.vcell.restclient.ApiClient;
import org.vcell.restclient.ApiException;
import org.vcell.restclient.ApiResponse;
import org.vcell.restclient.Configuration;
import org.vcell.restclient.models.*;
import org.vcell.restclient.api.GeometryResourceApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://vcell.cam.uchc.edu");

        GeometryResourceApi apiInstance = new GeometryResourceApi(defaultClient);
        Boolean includePublicAndShared = true; // Boolean | Include Geometry summaries that are public and shared with the requester. Default is true.
        try {
            ApiResponse<List<GeometrySummary>> response = apiInstance.getGeometrySummariesWithHttpInfo(includePublicAndShared);
            System.out.println("Status code: " + response.getStatusCode());
            System.out.println("Response headers: " + response.getHeaders());
            System.out.println("Response body: " + response.getData());
        } catch (ApiException e) {
            System.err.println("Exception when calling GeometryResourceApi#getGeometrySummaries");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Response headers: " + e.getResponseHeaders());
            System.err.println("Reason: " + e.getResponseBody());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
includePublicAndShared Boolean Include Geometry summaries that are public and shared with the requester. Default is true. [optional]

Return type

ApiResponse<List<GeometrySummary>>

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
500 Data Access Exception -

getGeometrySummary

GeometrySummary getGeometrySummary(id)

All of the text based information about a Geometry (dimensions, extent, origin, etc...), but not the actual Geometry itself.

Example

// Import classes:
import org.vcell.restclient.ApiClient;
import org.vcell.restclient.ApiException;
import org.vcell.restclient.Configuration;
import org.vcell.restclient.models.*;
import org.vcell.restclient.api.GeometryResourceApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://vcell.cam.uchc.edu");

        GeometryResourceApi apiInstance = new GeometryResourceApi(defaultClient);
        String id = "id_example"; // String | 
        try {
            GeometrySummary result = apiInstance.getGeometrySummary(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeometryResourceApi#getGeometrySummary");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id String

Return type

GeometrySummary

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
403 Not Allowed -
404 Not found -
500 Data Access Exception -

getGeometrySummaryWithHttpInfo

ApiResponse getGeometrySummary getGeometrySummaryWithHttpInfo(id)

All of the text based information about a Geometry (dimensions, extent, origin, etc...), but not the actual Geometry itself.

Example

// Import classes:
import org.vcell.restclient.ApiClient;
import org.vcell.restclient.ApiException;
import org.vcell.restclient.ApiResponse;
import org.vcell.restclient.Configuration;
import org.vcell.restclient.models.*;
import org.vcell.restclient.api.GeometryResourceApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://vcell.cam.uchc.edu");

        GeometryResourceApi apiInstance = new GeometryResourceApi(defaultClient);
        String id = "id_example"; // String | 
        try {
            ApiResponse<GeometrySummary> response = apiInstance.getGeometrySummaryWithHttpInfo(id);
            System.out.println("Status code: " + response.getStatusCode());
            System.out.println("Response headers: " + response.getHeaders());
            System.out.println("Response body: " + response.getData());
        } catch (ApiException e) {
            System.err.println("Exception when calling GeometryResourceApi#getGeometrySummary");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Response headers: " + e.getResponseHeaders());
            System.err.println("Reason: " + e.getResponseBody());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id String

Return type

ApiResponse<GeometrySummary>

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
403 Not Allowed -
404 Not found -
500 Data Access Exception -

getGeometryVCML

String getGeometryVCML(id)

Returns <Geometry> as root element in VCML format.

Example

// Import classes:
import org.vcell.restclient.ApiClient;
import org.vcell.restclient.ApiException;
import org.vcell.restclient.Configuration;
import org.vcell.restclient.models.*;
import org.vcell.restclient.api.GeometryResourceApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://vcell.cam.uchc.edu");

        GeometryResourceApi apiInstance = new GeometryResourceApi(defaultClient);
        String id = "id_example"; // String | 
        try {
            String result = apiInstance.getGeometryVCML(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeometryResourceApi#getGeometryVCML");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id String

Return type

String

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/xml, application/json

HTTP response details

Status code Description Response headers
200 OK -
403 Not Allowed -
404 Not found -
500 Data Access Exception -

getGeometryVCMLWithHttpInfo

ApiResponse getGeometryVCML getGeometryVCMLWithHttpInfo(id)

Returns <Geometry> as root element in VCML format.

Example

// Import classes:
import org.vcell.restclient.ApiClient;
import org.vcell.restclient.ApiException;
import org.vcell.restclient.ApiResponse;
import org.vcell.restclient.Configuration;
import org.vcell.restclient.models.*;
import org.vcell.restclient.api.GeometryResourceApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://vcell.cam.uchc.edu");

        GeometryResourceApi apiInstance = new GeometryResourceApi(defaultClient);
        String id = "id_example"; // String | 
        try {
            ApiResponse<String> response = apiInstance.getGeometryVCMLWithHttpInfo(id);
            System.out.println("Status code: " + response.getStatusCode());
            System.out.println("Response headers: " + response.getHeaders());
            System.out.println("Response body: " + response.getData());
        } catch (ApiException e) {
            System.err.println("Exception when calling GeometryResourceApi#getGeometryVCML");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Response headers: " + e.getResponseHeaders());
            System.err.println("Reason: " + e.getResponseBody());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
id String

Return type

ApiResponse<**String**>

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/xml, application/json

HTTP response details

Status code Description Response headers
200 OK -
403 Not Allowed -
404 Not found -
500 Data Access Exception -

saveGeometry

String saveGeometry(body, newName)

Save's VCML with <Geometry> as the root element.

Example

// Import classes:
import org.vcell.restclient.ApiClient;
import org.vcell.restclient.ApiException;
import org.vcell.restclient.Configuration;
import org.vcell.restclient.auth.*;
import org.vcell.restclient.models.*;
import org.vcell.restclient.api.GeometryResourceApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://vcell.cam.uchc.edu");
        

        GeometryResourceApi apiInstance = new GeometryResourceApi(defaultClient);
        String body = "body_example"; // String | 
        String newName = "newName_example"; // String | Name to save new Geometry under. Leave blank if re-saving existing Geometry.
        try {
            String result = apiInstance.saveGeometry(body, newName);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling GeometryResourceApi#saveGeometry");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
body String
newName String Name to save new Geometry under. Leave blank if re-saving existing Geometry. [optional]

Return type

String

Authorization

openId

HTTP request headers

  • Content-Type: application/xml
  • Accept: application/xml, application/json

HTTP response details

Status code Description Response headers
200 OK -
401 Not Authenticated -
403 Not Allowed -
422 Unprocessable content submitted -
500 Data Access Exception -

saveGeometryWithHttpInfo

ApiResponse saveGeometry saveGeometryWithHttpInfo(body, newName)

Save's VCML with <Geometry> as the root element.

Example

// Import classes:
import org.vcell.restclient.ApiClient;
import org.vcell.restclient.ApiException;
import org.vcell.restclient.ApiResponse;
import org.vcell.restclient.Configuration;
import org.vcell.restclient.auth.*;
import org.vcell.restclient.models.*;
import org.vcell.restclient.api.GeometryResourceApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("https://vcell.cam.uchc.edu");
        

        GeometryResourceApi apiInstance = new GeometryResourceApi(defaultClient);
        String body = "body_example"; // String | 
        String newName = "newName_example"; // String | Name to save new Geometry under. Leave blank if re-saving existing Geometry.
        try {
            ApiResponse<String> response = apiInstance.saveGeometryWithHttpInfo(body, newName);
            System.out.println("Status code: " + response.getStatusCode());
            System.out.println("Response headers: " + response.getHeaders());
            System.out.println("Response body: " + response.getData());
        } catch (ApiException e) {
            System.err.println("Exception when calling GeometryResourceApi#saveGeometry");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Response headers: " + e.getResponseHeaders());
            System.err.println("Reason: " + e.getResponseBody());
            e.printStackTrace();
        }
    }
}

Parameters

Name Type Description Notes
body String
newName String Name to save new Geometry under. Leave blank if re-saving existing Geometry. [optional]

Return type

ApiResponse<**String**>

Authorization

openId

HTTP request headers

  • Content-Type: application/xml
  • Accept: application/xml, application/json

HTTP response details

Status code Description Response headers
200 OK -
401 Not Authenticated -
403 Not Allowed -
422 Unprocessable content submitted -
500 Data Access Exception -