api : update announcement
This commit is contained in:
43
api.http
43
api.http
@@ -163,15 +163,18 @@ Content-Type: application/json
|
||||
{
|
||||
"id": "clz6dq88e0001b3mlyl4vjaf8"
|
||||
}
|
||||
|
||||
|
||||
// Announcement
|
||||
|
||||
###
|
||||
POST http://localhost:3000/api/announcement/post?path=create-announcement HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"title": "cobaannouncement1",
|
||||
"desc": "coba announcement",
|
||||
|
||||
"title": "cobaannouncement1 dsdsd",
|
||||
"desc": "coba announcement sdsdsd",
|
||||
"idVillage": "121212",
|
||||
"createBy": "111",
|
||||
"groups": [
|
||||
@@ -185,3 +188,39 @@ Content-Type: application/json
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
###
|
||||
GET http://localhost:3000/api/announcement/get?path=get-all-announcement&groupID=1&villageID=121212&createBy=111&divisionID=1 HTTP/1.1
|
||||
|
||||
###
|
||||
GET http://localhost:3000/api/announcement/get?path=get-one-announcement&announcementId=clz6kqzvt000eb3mle1nyz6fd HTTP/1.1
|
||||
|
||||
###
|
||||
POST http://localhost:3000/api/announcement/post?path=update-announcement HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"id": "clz6kqzvt000eb3mle1nyz6fd",
|
||||
"title": "cobaannouncement coba coba",
|
||||
"desc": "coba announcement coba coba",
|
||||
"idVillage": "121212",
|
||||
"createBy": "clz6dq88e0001b3mlyl4vjaf8",
|
||||
"groups": [
|
||||
{
|
||||
"idGroup": "1",
|
||||
"idDivision": "1"
|
||||
},
|
||||
{
|
||||
"idGroup": "1",
|
||||
"idDivision": "2"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
###
|
||||
POST http://localhost:3000/api/announcement/post?path=delete-announcement HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"id": "clz6naf9s000ib3mlf5aujk92"
|
||||
}
|
||||
Reference in New Issue
Block a user