Object status log API V1 (REST)
REST API
Ez a szolgáltatás jelenleg csak REST API-n keresztül elérhető.
Find status change logs
Objektumok státusz logjainak lekérdezése.
REST API
Kérés
GET hammy/json/statuslog/v1/statuslogs
| Paraméter | Típus | Leírás |
|---|---|---|
| limit | Integer | A keresési találatok maximális száma. |
| offset | Integer | A találati lista kezdete. |
| sort | String | Rendezés. |
| clientHashKey | String | A hívó kliens azonosítója. |
| userName | String | A felhasználó neve. |
| params | Param_V1 [ ] | Egyéb meta adatok. |
| objectType | String | Az objektum típusa. |
| objectRef | String | Az objektumhoz tartozó UUID. |
| statusType | String | Státusz típusa. |
Válasz
| Név | Típus | Leírás |
|---|---|---|
| meta | JListMeta1 | A válaszhoz tartozó metaadatok. |
| list | JStatusChangeLog1 [ ] | A megtalált logok. |
Minta
GET /hammy/json/statuslog/v1/statuslogs
Authorization: JWT {{jwtToken}}
X-Client-Hash-Key: {{clientHashKey}}
X-User-Name: {{userName}}
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"data": [
{
"type": "statusChangeLog",
"id": "5339d709-9abd-4ea0-9412-315e42450bf4",
"attributes": {
"objectType": "test_type_of_the_object",
"objectRef": "test_ref_of_the_object",
"statusType": "test_type_of_the_status",
"status": "test_status",
"validFrom": "2022-05-19T00:00:00.000+02:00",
"validTo": "2022-05-19T15:36:42.773+02:00"
}
},
{
"type": "statusChangeLog",
"id": "c8e8f2e8-5f56-428c-bded-2cf167d8ea71",
"attributes": {
"objectType": "test_type_of_the_object",
"objectRef": "test_ref_of_the_object",
"statusType": "test_type_of_the_status",
"status": "test_status",
"validFrom": "2022-05-19T00:00:00.000+02:00",
"validTo": "2022-05-19T15:36:56.185+02:00"
}
},
{
"type": "statusChangeLog",
"id": "a6dd668a-1fe9-42fe-bf61-009a4b1a80d2",
"attributes": {
"objectType": "test_type_of_the_object",
"objectRef": "test_ref_of_the_object",
"statusType": "test_type_of_the_status",
"status": "test_status",
"validFrom": "2022-05-19T15:36:56.185+02:00"
}
},
{
"type": "statusChangeLog",
"id": "95c0a0bf-43be-443c-aa5b-07feb5e02d5c",
"attributes": {
"objectType": "message",
"objectRef": "8bcde3ba-995c-4060-95a1-d0aa60c04a90",
"statusType": "general",
"status": "TECHNICAL",
"validFrom": "2022-05-26T12:54:14.810+02:00"
}
},
{
"type": "statusChangeLog",
"id": "307d4c3b-77f5-4d2e-ad75-f17b5c7bda73",
"attributes": {
"objectType": "message",
"objectRef": "a4b8dd1c-dfdb-4ecd-96f4-2ddb9ecd55f9",
"statusType": "general",
"status": "NEW",
"validFrom": "2022-05-26T12:54:15.296+02:00",
"validTo": "2022-05-26T12:54:16.111+02:00"
}
},
{
"type": "statusChangeLog",
"id": "4d69c311-81f4-46b9-b1ee-a95496e114f0",
"attributes": {
"objectType": "message",
"objectRef": "a4b8dd1c-dfdb-4ecd-96f4-2ddb9ecd55f9",
"statusType": "general",
"status": "ERROR",
"validFrom": "2022-05-26T12:54:16.111+02:00"
}
},
{
"type": "statusChangeLog",
"id": "645c5891-13b1-4f90-96a9-d2beb0da2778",
"attributes": {
"objectType": "message",
"objectRef": "2968a0e2-eb31-41f3-8b18-9b2495dc7e0f",
"statusType": "general",
"status": "TECHNICAL",
"validFrom": "2022-05-30T10:10:35.731+02:00"
}
},
{
"type": "statusChangeLog",
"id": "cfa9d043-20d6-4a11-8b3d-aa1d599563fd",
"attributes": {
"objectType": "message",
"objectRef": "47908bd4-90d0-4d34-965e-7c3cc92c1778",
"statusType": "general",
"status": "NEW",
"validFrom": "2022-05-30T10:10:36.375+02:00",
"validTo": "2022-05-30T10:10:37.384+02:00"
}
},
{
"type": "statusChangeLog",
"id": "d12793f9-6bc0-4bb6-9fa2-1472b5d7d89f",
"attributes": {
"objectType": "message",
"objectRef": "47908bd4-90d0-4d34-965e-7c3cc92c1778",
"statusType": "general",
"status": "ERROR",
"validFrom": "2022-05-30T10:10:37.384+02:00",
"validTo": "2022-07-13T00:00:00.000+02:00"
}
},
{
"type": "statusChangeLog",
"id": "e3414e83-0d62-4979-ae19-9ff51409d9d4",
"attributes": {
"objectType": "message",
"objectRef": "99164b64-963b-444f-a413-02b5771057d5",
"statusType": "general",
"status": "TECHNICAL",
"validFrom": "2022-05-30T12:26:50.375+02:00"
}
},
{
"type": "statusChangeLog",
"id": "47fd70b2-f991-42b0-ac33-599323b6a86b",
"attributes": {
"objectType": "message",
"objectRef": "79917761-650a-4691-abc6-4002b70bb2f9",
"statusType": "general",
"status": "NEW",
"validFrom": "2022-05-30T12:26:51.155+02:00",
"validTo": "2022-05-30T12:26:52.226+02:00"
}
},
{
"type": "statusChangeLog",
"id": "7b4beb6f-7501-40fd-90e8-a5c35c0ad99c",
"attributes": {
"objectType": "message",
"objectRef": "79917761-650a-4691-abc6-4002b70bb2f9",
"statusType": "general",
"status": "ERROR",
"validFrom": "2022-05-30T12:26:52.226+02:00"
}
},
{
"type": "statusChangeLog",
"id": "79f759f0-09ba-45ac-a4f7-a3051a40e14a",
"attributes": {
"objectType": "message",
"objectRef": "000bde14-0fa8-4223-b718-b18bd12c11f7",
"statusType": "general",
"status": "TECHNICAL",
"validFrom": "2022-05-30T12:28:46.554+02:00"
}
},
{
"type": "statusChangeLog",
"id": "8361b622-8002-42b9-95f3-29b9d01ac4f4",
"attributes": {
"objectType": "message",
"objectRef": "611acccc-544c-42ce-b200-e8b274b8bd32",
"statusType": "general",
"status": "NEW",
"validFrom": "2022-05-30T12:28:46.692+02:00",
"validTo": "2022-05-30T12:28:48.283+02:00"
}
},
{
"type": "statusChangeLog",
"id": "291bd30b-b962-4cc6-97fb-81f7843ea269",
"attributes": {
"objectType": "message",
"objectRef": "611acccc-544c-42ce-b200-e8b274b8bd32",
"statusType": "general",
"status": "ERROR",
"validFrom": "2022-05-30T12:28:48.283+02:00"
}
},
{
"type": "statusChangeLog",
"id": "d71f6214-e6a9-4b5c-9f9c-3035af5d522f",
"attributes": {
"objectType": "message",
"objectRef": "42ce8c2e-f920-4910-a8bb-d6af1a3016cf",
"statusType": "general",
"status": "TECHNICAL",
"validFrom": "2022-05-30T12:34:36.442+02:00"
}
},
{
"type": "statusChangeLog",
"id": "8b6bb21f-0e20-48b8-b720-8cad19f49d52",
"attributes": {
"objectType": "message",
"objectRef": "e047c8b5-af1b-4d09-a4aa-ee2c30bb62d5",
"statusType": "general",
"status": "NEW",
"validFrom": "2022-05-30T12:34:36.610+02:00",
"validTo": "2022-05-30T12:34:37.741+02:00"
}
},
{
"type": "statusChangeLog",
"id": "5d32fcff-1cc5-4f3a-a52c-cd4a2674f784",
"attributes": {
"objectType": "message",
"objectRef": "e047c8b5-af1b-4d09-a4aa-ee2c30bb62d5",
"statusType": "general",
"status": "SENT",
"validFrom": "2022-05-30T12:34:37.741+02:00"
}
},
{
"type": "statusChangeLog",
"id": "e5434a99-aacd-4a17-a13b-b6cc04469c50",
"attributes": {
"objectType": "message",
"objectRef": "32588823-f794-4228-b531-d3f81b52606d",
"statusType": "general",
"status": "NEW",
"validFrom": "2022-05-30T12:34:38.073+02:00",
"validTo": "2022-05-30T12:34:38.707+02:00"
}
},
{
"type": "statusChangeLog",
"id": "3365c530-4c00-4acc-a641-9714d66cf75c",
"attributes": {
"objectType": "message",
"objectRef": "32588823-f794-4228-b531-d3f81b52606d",
"statusType": "general",
"status": "SENT",
"validFrom": "2022-05-30T12:34:38.707+02:00"
}
}
],
"meta": {
"total": 161,
"params": [],
"responseStatus": {
"code": 0,
"messages": []
}
}
}
Create status change log
Új, objektum változását követő log létrehozása.
REST API
Kérés
POST hammy/json/statuslog/v1/statuslogs
body: JStatusChangeLog1
Válasz
| Típus | Leírás |
|---|---|
| JStatusChangeLog1 | A létrehozott objektum. |
Minta
POST /hammy/json/statuslog/v1/statuslogs
Authorization: JWT {{jwtToken}}
X-Client-Hash-Key: {{clientHashKey}}
X-User-Name: {{userName}}
Content-Type: application/vnd.api+json
{
"data": {
"type": "statusChangeLog",
"attributes": {
"objectType" : "test_type_of_the_object",
"objectRef" : "test_ref_of_the_object",
"statusType" : "test_type_of_the_status",
"status" : "test_status",
"validFrom" : "2022-07-14",
"validTo" : "2022-07-20"
}
}
}
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"data": {
"type": "statusChangeLog",
"id": "df6023c4-512e-4f28-bcf2-7dd3e331c182",
"attributes": {
"objectType": "test_type_of_the_object",
"objectRef": "test_ref_of_the_object",
"statusType": "test_type_of_the_status",
"status": "test_status",
"validFrom": "2022-07-14T00:00:00.000+02:00",
"validTo": "2022-07-20T00:00:00.000+02:00"
}
},
"meta": {
"params": [],
"responseStatus": {
"code": 0,
"messages": []
}
}
}