implemented critical features in Restful Golang API which'll handle Neo4j interactions.
This commit is contained in:
+9
-3
@@ -59,14 +59,16 @@ func serve() {
|
||||
"/users/{user_id}",
|
||||
"/users/{user_id}/posts",
|
||||
"/users/{user_id}/spaces",
|
||||
|
||||
"/spaces",
|
||||
"/spaces",
|
||||
"/spaces/{space_id}",
|
||||
"/spaces/{space_id}",
|
||||
//"/spaces/{space_id}",
|
||||
"/spaces/{space_id}",
|
||||
"/spaces/{space_id}",
|
||||
"/spaces/{space_id}/users",
|
||||
"/spaces/{space_id}/posts",
|
||||
|
||||
"/posts",
|
||||
"/posts",
|
||||
"/posts/{post_id}",
|
||||
@@ -83,14 +85,16 @@ func serve() {
|
||||
http.MethodDelete,
|
||||
http.MethodGet,
|
||||
http.MethodGet,
|
||||
|
||||
http.MethodPost,
|
||||
http.MethodGet,
|
||||
http.MethodGet,
|
||||
http.MethodPost,
|
||||
//http.MethodPost,
|
||||
http.MethodPatch,
|
||||
http.MethodDelete,
|
||||
http.MethodGet,
|
||||
http.MethodGet,
|
||||
|
||||
http.MethodPost,
|
||||
http.MethodGet,
|
||||
http.MethodGet,
|
||||
@@ -107,14 +111,16 @@ func serve() {
|
||||
delete_user(driver, driver_ctx),
|
||||
retrieve_users_posts(driver, driver_ctx),
|
||||
retrieve_users_spaces(driver, driver_ctx),
|
||||
|
||||
create_new_space(driver, driver_ctx),
|
||||
retrieve_all_spaces(driver, driver_ctx),
|
||||
retrieve_space(driver, driver_ctx),
|
||||
auth_user_in_space(driver, driver_ctx),
|
||||
//auth_user_in_space(driver, driver_ctx),
|
||||
update_space(driver, driver_ctx),
|
||||
delete_space(driver, driver_ctx),
|
||||
retrieve_spaces_users(driver, driver_ctx),
|
||||
retrieve_spaces_posts(driver, driver_ctx),
|
||||
|
||||
create_new_post(driver, driver_ctx),
|
||||
retrieve_all_posts(driver, driver_ctx),
|
||||
retrieve_post(driver, driver_ctx),
|
||||
|
||||
Reference in New Issue
Block a user