Skip to content
This repository was archived by the owner on Jan 12, 2021. It is now read-only.

Latest commit

 

History

History
102 lines (68 loc) · 2.85 KB

File metadata and controls

102 lines (68 loc) · 2.85 KB

ServicesApi

All URIs are relative to http://localhost/

Method HTTP request Description
list PUT api/v2/services.json_api Get a list of Services
show GET api/v2/services/{id}.json_api Show a single Service

list

PaginatedCollection list(filter, page)

Get a list of Services

Example

// Import classes:
//import io.evident.EspSdk.ApiException;
//import io.evident.api.ServicesApi;


ServicesApi apiInstance = new ServicesApi();
Map<String, String> filter = new HashMap(); // Map<String, String> | Filter Params for Searching.  Equality Searchable Attributes: [id, name, policy_name] Matching Searchable Attributes: [name, policy_name] Limited Searchable Attribute: [provider_eq]  
String page = "{:number=>1,+:size=>20}"; // String | Page Number and Page Size.  Number is the page number of the collection to return, size is the number of items to return per page.
try {
    PaginatedCollection result = apiInstance.list(filter, page);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ServicesApi#list");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
filter Map<String, String> Filter Params for Searching. Equality Searchable Attributes: [id, name, policy_name] Matching Searchable Attributes: [name, policy_name] Limited Searchable Attribute: [provider_eq] [optional]
page String Page Number and Page Size. Number is the page number of the collection to return, size is the number of items to return per page. [optional] [default to {:number=>1,+:size=>20}]

Return type

PaginatedCollection

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json

show

Service show(id)

Show a single Service

Example

// Import classes:
//import io.evident.EspSdk.ApiException;
//import io.evident.api.ServicesApi;


ServicesApi apiInstance = new ServicesApi();
Integer id = 56; // Integer | Service ID
try {
    Service result = apiInstance.show(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling ServicesApi#show");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Integer Service ID

Return type

Service

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/vnd.api+json
  • Accept: application/vnd.api+json