POSTCreate Location (creator or higher)- path ⇒ /api/location
- body (ให้ส่งเป็น formData !!! )
{ "locationName": "home", "latitude": 201024.24124, "longitude": 241.124124, "img": `picture` }GETGet all location (all)- path ⇒ /api/location
GETGet Location By ID (all) [the location description and all of quest with this location]- path ⇒ /api/location/:id
PUTUpdate location By ID (creator or higher)- path ⇒ /api/location/:id
DELETEDelete location By ID (creator or higher)- path ⇒ /api/location/:id
POSTCreate Tag (admin)GETGet Tag (user)GETGet Tag By ID (user)PUTUpdate Tag By ID (admin)DELETEDelete Tag By ID (admin)
POSTCreate Quest (admin) [handle image]GETGet all Quests (all)GETGet Quest by Id (all)PUTUpdate Quest by Id (all)DELETEDelete Quest By ID (admin)PUTuser join quest (user)PUTuser leave quest (user)POSTquest complete (creator)
ยังไม่ได้ทำ
POSTgenerate QRcode (creator)POSTscan QRcode (user)GETsearch by questName (all)GETfilter by tag (all)GETfilter by time (all)PUTadmin delete user from quest(user)
-
POSTLogin (all) -
GETLogout (user)
-
POSTcreate user (admin) -
GETget user (admin) -
GETget user by id (admin) -
PUTupdate user by id (admin)
-
POSTcreate admin (admin) -
GETget all admin (admin) -
GETget admin by id (admin) -
DELETEremove admin by id (admin) -
PUTupdate admin by id (admin)
-
POSTcreate creator (admin) -
GETget all creator (admin) -
GETget creator by id (admin) -
DELETEremove creator by id (admin) -
PUTupdate creator by id (admin)
-
GETget all account by id(admin) -
GETget account by id (admin) -
DELETEremove account by id(admin) -
PUTupdate account by id (admin)