Browse Source

change rest-client.http

pull/3/head
ardhi 2 years ago
parent
commit
418cf7c6b4
  1. 42
      rest-client.http

42
rest-client.http

@ -1,12 +1,12 @@
@token = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3Q6ODA3NFwvYWR3LWJhY2tlbmRcL2FwaVwvbG9naW4iLCJpYXQiOjE2NzYxODQ5ODgsImV4cCI6MTY3Njc4OTc4OCwibmJmIjoxNjc2MTg0OTg4LCJqdGkiOiJSMkk1R3FLdXM3bWhMUWwzIiwic3ViIjoxMjQ3LCJwcnYiOiIyM2JkNWM4OTQ5ZjYwMGFkYjM5ZTcwMWM0MDA4NzJkYjdhNTk3NmY3In0.GlxG-DaiY1Slc0dR8sRK6CvU-F7MTjT47989MImubJ0
@token = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9hZHctYXBpLm9zcHJvLmlkXC9hcGlcL2xvZ2luIiwiaWF0IjoxNjc2NTE5NDQ2LCJleHAiOjE2NzcxMjQyNDYsIm5iZiI6MTY3NjUxOTQ0NiwianRpIjoiTXE4R3QzeTZRMllCMnRCWiIsInN1YiI6MSwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.bXhL34fVSLDvAn4OIqiJnDtUCPcTG-Lyct_WtNPd9K8
# @hostname = https://adw-api.ospro.id/api
@hostname = https://adw-api.ospro.id/api
# @hostname = https://ospro-api.ospro.id/api
# @hostname = https://api-iu.ospro.id/api
# @hostname = https://api-staging-adw.ospro.id/api
# @hostname = http://localhost:8444/api
# @hostname = http://103.73.125.81:8444/api
@hostname = http://localhost:8074/adw-backend/api
# @hostname = http://localhost:8074/adw-backend/api
###### login
POST {{hostname}}/login
@ -15,8 +15,8 @@ POST {{hostname}}/login
content-type: application/json
{
"username": "demo",
"password": "demo123"
"username": "admin",
"password": "1nt3gr4s14"
}
###### Tools Req
@ -749,6 +749,10 @@ content-type: application/json
"project_id": [15]
}
###
GET https://adw-api.ospro.id/api/request-material/get-material-integration?name=c
Authorization: Bearer {{token}}
content-type: application/json
###
POST {{hostname}}/presence/search
@ -766,8 +770,8 @@ content-type: application/json
"name": "m_users",
"column_join": "user_id",
"column_results": [
"name",
"ktp_number"
"username",
"name"
]
}
],
@ -804,13 +808,15 @@ POST {{hostname}}/presence/add
Authorization: Bearer {{token}}
content-type: application/json
{
"clock_out_lat": -6.16678379060529,
"clock_out_lng": 106.9175039866567,
"clock_time": "2023-02-10T14:48:17+07:00",
"type": "in",
"user_id": 1247
}
# {
# "clock_out_lat": -6.16678379060529,
# "clock_out_lng": 106.9175039866567,
# "clock_time": "2023-02-10T14:48:17+07:00",
# "type": "in",
# "user_id": 1247
# }
{"clock_time":"2023-02-14T02:34:28+07:00","type":"in","user_id":1247,"clock_in_lat":-6.2646449,"clock_in_lng":106.7893041}
######
@ -955,3 +961,11 @@ content-type: application/json
# "start": 0
# }
# }
### get image
# GET {{hostname}}/image/106/presensi
GET {{hostname}}/image/1634/report_activity
Authorization: Bearer {{token}}
content-type: application/json

Loading…
Cancel
Save