Services relating to mounting_types of the Energy Asset Tool

Supported Formats

json, xml

GET /api/v1/mounting_types/:id
Retrieve the mounting_type with the specific ID.

Also see Fixtures.

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":"Recessed","sort_order":1,"created_at":"2022-05-16T15:14:06.460Z","updated_at":"2022-05-16T15:14:06.460Z","service_name":"recessed"}
<?xml version="1.0" encoding="UTF-8"?>
<mounting-type>
  <id type="integer">1</id>
  <display-name>Recessed</display-name>
  <sort-order type="integer">1</sort-order>
  <created-at type="dateTime">2022-05-16T15:14:06Z</created-at>
  <updated-at type="dateTime">2022-05-16T15:14:06Z</updated-at>
  <service-name>recessed</service-name>
</mounting-type>

GET /api/v1/mounting_types
Retrieve all mounting_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":"Recessed","sort_order":1,"created_at":"2022-05-16T15:14:06.460Z","updated_at":"2022-05-16T15:14:06.460Z","service_name":"recessed"},{"id":2,"display_name":"Surface","sort_order":2,"created_at":"2022-05-16T15:14:06.460Z","updated_at":"2022-05-16T15:14:06.460Z","service_name":"surface"},{"id":3,"display_name":"Pendant","sort_order":3,"created_at":"2022-05-16T15:14:06.460Z","updated_at":"2022-05-16T15:14:06.460Z","service_name":"pendant"}]
<?xml version="1.0" encoding="UTF-8"?>
<mounting-types type="array">
  <mounting-type>
    <id type="integer">1</id>
    <display-name>Recessed</display-name>
    <sort-order type="integer">1</sort-order>
    <created-at type="dateTime">2022-05-16T15:14:06Z</created-at>
    <updated-at type="dateTime">2022-05-16T15:14:06Z</updated-at>
    <service-name>recessed</service-name>
  </mounting-type>
  <mounting-type>
    <id type="integer">2</id>
    <display-name>Surface</display-name>
    <sort-order type="integer">2</sort-order>
    <created-at type="dateTime">2022-05-16T15:14:06Z</created-at>
    <updated-at type="dateTime">2022-05-16T15:14:06Z</updated-at>
    <service-name>surface</service-name>
  </mounting-type>
  <mounting-type>
    <id type="integer">3</id>
    <display-name>Pendant</display-name>
    <sort-order type="integer">3</sort-order>
    <created-at type="dateTime">2022-05-16T15:14:06Z</created-at>
    <updated-at type="dateTime">2022-05-16T15:14:06Z</updated-at>
    <service-name>pendant</service-name>
  </mounting-type>
</mounting-types>