API → UnitConvert angle units

Parameters

Name

Type

Req.

  • input_unit

    string
    required
    Possible values
    • degrees:  Degrees <https://en.wikipedia.org/wiki/Degree_(angle)>
    • radians:  Radians <https://en.wikipedia.org/wiki/Radian>
  • output_unit

    string
    required
    Possible values
    • degrees:  Degrees <https://en.wikipedia.org/wiki/Degree_(angle)>
    • radians:  Radians <https://en.wikipedia.org/wiki/Radian>
  • value

    number
    required

Returns

  • 200 OK

    successful operation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • completed_at

      string / ISO-8601
      optional
    • created_at

      string / ISO-8601
      optional
    • error

      string
      optional
    • id

      string / UUID
      optional
    • input

      number
      optional
    • input_unit

      string
      optional
      Possible values
      • degrees:  Degrees <https://en.wikipedia.org/wiki/Degree_(angle)>
      • radians:  Radians <https://en.wikipedia.org/wiki/Radian>
    • output

      number
      optional
    • output_unit

      string
      optional
      Possible values
      • degrees:  Degrees <https://en.wikipedia.org/wiki/Degree_(angle)>
      • radians:  Radians <https://en.wikipedia.org/wiki/Radian>
    • started_at

      string / ISO-8601
      optional
    • status

      string
      optional
      Possible values
      • queued:  The async API call is queued.
      • uploaded:  The async API call was uploaded to be converted.
      • in_progress:  The async API call is in progress.
      • completed:  The async API call has completed.
      • failed:  The async API call has failed.
    • updated_at

      string / ISO-8601
      optional
    • user_id

      string / UUID
      optional
get
/unit/conversion/angle/{input_unit}/{output_unit}
$ curl "https://api.zoo.dev/unit/conversion/angle/{input_unit}/{output_unit}" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "completed_at": "2024-07-27T01:16:16.215Z",
  "created_at": "2024-07-27T01:16:16.215Z",
  "error": "zxdXde2EhNZxRnPNCe1wGUH7lj3",
  "id": "a0759440-d307-4bd4-992d-1eec9a85bdf6",
  "input": 9,
  "input_unit": "radians",
  "output": 29,
  "output_unit": "radians",
  "started_at": "2024-07-27T01:16:16.216Z",
  "status": "queued",
  "updated_at": "2024-07-27T01:16:16.216Z",
  "user_id": "4a5c1bfa-6958-4515-a0b5-c908fb3305b7"
}