Skip to main content
GET
/
data
/
hub
/
{hubId}
/
type
/
{dataTypeName}
/
{data_id}
Read data source by hubId, dataTypeName, dataId
curl --request GET \
  --url https://apiweb.mile.app/api/v3/data/hub/{hubId}/type/{dataTypeName}/{data_id} \
  --header 'Authorization: Bearer <token>'
{
  "status": true,
  "message": "Success",
  "data": {
    "_id": "6433acd3fc7786708b7567ad",
    "dataTypeId": "642d165e6a88ff136c692853",
    "hubId": "63daffabc5a95d7d475eb7a6",
    "address": "jakarta",
    "golongan": "A",
    "dataId": "anas",
    "createdBy": "husni+1@paket.id",
    "organizationId": "63daff70a483b40ae5586e02",
    "updatedTime": "2023-04-10 06:24:21",
    "createdTime": "2023-04-10 06:24:21",
    "data_type": {
      "_id": "642d165e6a88ff136c692853",
      "name": "Pagawai"
    }
  }
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Path Parameters

hubId
string
required

Fundamental entity within an organization, serving as the central point for managing various operational components. Use Use GET /hubs endpoint to get the list of Hub IDs. Example: 634e98498ce07d29474a7e29

dataTypeName
string
required

Name of data type. Use GET /data-types API to get the list of dataType Name. Example: Pegawai

dataId
string
required

Primary key data of the data type. Use GET /data API to get the list primary key data of dataType. Example: anas

Response

Success

status
boolean

Status of response.

message
string

Message of API response.

data
object

Detail of object data source.