Services relating to compressor_types of the Energy Asset Tool

Supported Formats

json, xml

GET /api/v1/compressor_types/:id
Retrieve the compressor_type with the specific ID.

Also see Plants.

Supported Formats

json, xml

Errors

Code Description
401 Unauthorized - ensure token is being passed with each service call.
404 Unsupported operation
500 Unspecified error on server.

Examples

{"id":1,"display_name":"Scroll/Screw","sort_order":1,"created_at":"2022-05-16T15:13:59.646Z","updated_at":"2022-05-16T15:13:59.646Z","service_name":""}
<?xml version="1.0" encoding="UTF-8"?>
<compressor-type>
  <id type="integer">1</id>
  <display-name>Scroll/Screw</display-name>
  <sort-order type="integer">1</sort-order>
  <created-at type="dateTime">2022-05-16T15:13:59Z</created-at>
  <updated-at type="dateTime">2022-05-16T15:13:59Z</updated-at>
  <service-name></service-name>
</compressor-type>

GET /api/v1/compressor_types
Retrieve all compressor_types.

Supported Formats

json, xml

Errors

Code Description
401 Unauthorized - ensure token is being passed with each service call.
404 Unsupported operation
500 Unspecified error on server.

Examples

[{"id":1,"display_name":"Scroll/Screw","sort_order":1,"created_at":"2022-05-16T15:13:59.646Z","updated_at":"2022-05-16T15:13:59.646Z","service_name":""},{"id":2,"display_name":"Reciprocating","sort_order":2,"created_at":"2022-05-16T15:13:59.646Z","updated_at":"2022-05-16T15:13:59.646Z","service_name":""},{"id":3,"display_name":"Centrifugal","sort_order":3,"created_at":"2022-05-16T15:13:59.646Z","updated_at":"2022-05-16T15:13:59.646Z","service_name":""}]
<?xml version="1.0" encoding="UTF-8"?>
<compressor-types type="array">
  <compressor-type>
    <id type="integer">1</id>
    <display-name>Scroll/Screw</display-name>
    <sort-order type="integer">1</sort-order>
    <created-at type="dateTime">2022-05-16T15:13:59Z</created-at>
    <updated-at type="dateTime">2022-05-16T15:13:59Z</updated-at>
    <service-name></service-name>
  </compressor-type>
  <compressor-type>
    <id type="integer">2</id>
    <display-name>Reciprocating</display-name>
    <sort-order type="integer">2</sort-order>
    <created-at type="dateTime">2022-05-16T15:13:59Z</created-at>
    <updated-at type="dateTime">2022-05-16T15:13:59Z</updated-at>
    <service-name></service-name>
  </compressor-type>
  <compressor-type>
    <id type="integer">3</id>
    <display-name>Centrifugal</display-name>
    <sort-order type="integer">3</sort-order>
    <created-at type="dateTime">2022-05-16T15:13:59Z</created-at>
    <updated-at type="dateTime">2022-05-16T15:13:59Z</updated-at>
    <service-name></service-name>
  </compressor-type>
</compressor-types>