HydraCore
API by router

Worker

My Assignments

GET
/internal/v1/instances/{instance_id}/worker/me/assignments

Path Parameters

instance_idInstance Id
Formatuuid

Query Parameters

channel_typeChannel Type
channel_addressChannel Address

Response Body

curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker/me/assignments?channel_type=string&channel_address=string"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

My Certs

GET
/internal/v1/instances/{instance_id}/worker/me/certs

Path Parameters

instance_idInstance Id
Formatuuid

Query Parameters

channel_typeChannel Type
channel_addressChannel Address

Response Body

curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker/me/certs?channel_type=string&channel_address=string"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

My Shifts

GET
/internal/v1/instances/{instance_id}/worker/me/shifts

Path Parameters

instance_idInstance Id
Formatuuid

Query Parameters

channel_typeChannel Type
channel_addressChannel Address

Response Body

curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker/me/shifts?channel_type=string&channel_address=string"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Log My Hours

POST
/internal/v1/instances/{instance_id}/worker/me/timesheet

Path Parameters

instance_idInstance Id
Formatuuid

Query Parameters

channel_typeChannel Type
channel_addressChannel Address
dateDate
Formatdate
description?Description
hoursHours
Range0 < value
job_id?Job Id
rate?Rate
shift_id?Shift Id

Response Body

curl -X POST "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker/me/timesheet?channel_type=string&channel_address=string" \  -H "Content-Type: application/json" \  -d '{    "date": "2019-08-24",    "hours": 0  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

My Timesheets

GET
/internal/v1/instances/{instance_id}/worker/me/timesheets

Path Parameters

instance_idInstance Id
Formatuuid

Query Parameters

channel_typeChannel Type
channel_addressChannel Address

Response Body

curl -X GET "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker/me/timesheets?channel_type=string&channel_address=string"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}

Verify Worker Binding

Process a worker's verification response. Upgrades binding state.

POST
/internal/v1/instances/{instance_id}/worker/verify

Path Parameters

instance_idInstance Id
Formatuuid
channel_addressChannel Address
channel_typeChannel Type
responseResponse

Worker's verification response

Response Body

curl -X POST "https://loading/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/worker/verify" \  -H "Content-Type: application/json" \  -d '{    "channel_address": "string",    "channel_type": "string",    "response": "string"  }'
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}