api : add api position api group and api users
This commit is contained in:
21
api.http
21
api.http
@@ -9,7 +9,7 @@ Content-Type: application/json
|
||||
// GROUP
|
||||
|
||||
###
|
||||
GET http://localhost:3000/api/group/get?path=list-group HTTP/1.1
|
||||
GET http://localhost:3000/api/group/get?path=list-group&villageId=121212 HTTP/1.1
|
||||
|
||||
###
|
||||
POST http://localhost:3000/api/group/post?path=create-group HTTP/1.1
|
||||
@@ -20,7 +20,6 @@ Content-Type: application/json
|
||||
"idVillage": "121212"
|
||||
}
|
||||
|
||||
|
||||
###
|
||||
POST http://localhost:3000/api/group/post?path=update-group HTTP/1.1
|
||||
Content-Type: application/json
|
||||
@@ -41,7 +40,7 @@ Content-Type: application/json
|
||||
}
|
||||
|
||||
###
|
||||
GET http://localhost:3000/api/group/get?path=get-one-group HTTP/1.1
|
||||
GET http://localhost:3000/api/group/get?path=get-one-group&groupId=3 HTTP/1.1
|
||||
|
||||
|
||||
// VILLAGE
|
||||
@@ -83,18 +82,18 @@ Content-Type: application/json
|
||||
// POSITION
|
||||
|
||||
###
|
||||
GET http://localhost:3000/api/position/get?path=get-all-position HTTP/1.1
|
||||
GET http://localhost:3000/api/position/get?path=get-all-position&groupID=2 HTTP/1.1
|
||||
|
||||
###
|
||||
GET http://localhost:3000/api/position/get?path=get-one-position HTTP/1.1
|
||||
GET http://localhost:3000/api/position/get?path=get-one-position&positionId=clz24bff70001w01in64dd9ea HTTP/1.1
|
||||
|
||||
###
|
||||
POST http://localhost:3000/api/position/post?path=create-position HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": "Wakil Bendahara 10",
|
||||
"idGroup": "2"
|
||||
"name": "Anggota",
|
||||
"idGroup": "1"
|
||||
}
|
||||
|
||||
###
|
||||
@@ -113,4 +112,10 @@ Content-Type: application/json
|
||||
|
||||
{
|
||||
"id": "1"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// USERS
|
||||
|
||||
###
|
||||
GET http://localhost:3000/api/user/get?path=get-all-users&roleID=dev&positionID=null&villageID=null&groupID=null HTTP/1.1
|
||||
Reference in New Issue
Block a user