yeti-switch / yeti-web

Yeti admin interface. Opensource SIP SBC with billing.
https://yeti-switch.org/demo.html
51 stars 35 forks source link

1592, Customer API: specify service_type attribute for Service API resource #1608

Closed Ivanov-Anton closed 3 weeks ago

Ivanov-Anton commented 4 weeks ago

Description

specify the ui_type attribute for Service API resource of Customer API

added filter for Service Customer API resource filter[ui-type-eq]

example of response from service customer API

{
  "data": {
    "id": "fe81c806-40ad-40e9-ba33-757b43607b60",
    "type": "services",
    "links": {
      "self": "http://example.org/api/rest/customer/v1/services/fe81c806-40ad-40e9-ba33-757b43607b60"
    },
    "attributes": {
      "name": "Service_10",
      "state": "Active",
      "initial-price": "84.56",
      "renew-price": "93.26",
      "created-at": "2024-11-07T20:31:23.300Z",
      "renew-at": null,
      "renew-period": "Disabled",
      "service-type": "Service Type 16",
      "ui-type": "phone_systems"
    },
    "relationships": {
      "account": {
        "links": {
          "self": "http://example.org/api/rest/customer/v1/services/fe81c806-40ad-40e9-ba33-757b43607b60/relationships/account",
          "related": "http://example.org/api/rest/customer/v1/services/fe81c806-40ad-40e9-ba33-757b43607b60/account"
        }
      },
      "transactions": {
        "links": {
          "self": "http://example.org/api/rest/customer/v1/services/fe81c806-40ad-40e9-ba33-757b43607b60/relationships/transactions",
          "related": "http://example.org/api/rest/customer/v1/services/fe81c806-40ad-40e9-ba33-757b43607b60/transactions"
        }
      }
    }
  }
}

Additional links

related to #1592 https://github.com/yeti-switch/yeti-client/pull/178