From 4ca0f1105e78075d1e23a9494b186b332b5fea01 Mon Sep 17 00:00:00 2001 From: ibnu Date: Sun, 12 Feb 2023 15:16:59 +0700 Subject: [PATCH] update sample presence --- rest-client.http | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/rest-client.http b/rest-client.http index a7a710b..e7b5a5a 100644 --- a/rest-client.http +++ b/rest-client.http @@ -796,22 +796,31 @@ GET {{hostname}}/presence/clockinout/262 Authorization: Bearer {{token}} content-type: application/json -####### -"clock_out_lat": -1.4264273154149407, - "clock_out_lng": 113.98530036945851, ###### POST {{hostname}}/presence/add Authorization: Bearer {{token}} content-type: application/json { - "clock_out_lat": -6.2622811, - "clock_out_lng": 106.7881746, + "clock_in_lat": -6.2622811, + "clock_in_lng": 106.7881746, "clock_time": "2023-02-06T16:40:17+07:00", - "type": "out", + "type": "in", "user_id": 1 } +###### +POST {{hostname}}/presence/add +Authorization: Bearer {{token}} +content-type: application/json + +{ + "clock_out_lat": -1.4264273154149407, + "clock_out_lng": 113.98530036945851, + "clock_time": "2023-02-06T16:40:17+07:00", + "type": "in", + "user_id": 1 +} ###### # POST {{hostname}}/