TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 229 subscribers
Post #24270 13
server->post(base_path + "/stores/:id/seats", store_router.add_seat);
server->put(base_path + "/stores/:id/seats/:seatId", store_router.update_seat);
server->del(base_path + "/stores/:id/seats/:seatId", store_router.delete_seat);
server->get(base_path + "/stores/:id/seats/availability", store_router.check_seat_availability);

// ========================================
// PRODUCT & CATEGORY ROUTES
// ========================================
// Products
server->get(base_path + "/stores/:storeId/products", product_router.list);
server->get(base_path + "/stores/:storeId/products/:id", product_router.get_by_id);
server->post(base_path + "/stores/:storeId/products", product_router.create);
server->put(base_path + "/stores/:storeId/products/:id", product_router.update);
server->del(base_path + "/stores/:storeId/products/:id", product_router.remove);
server->put(base_path + "/stores/:storeId/products/:id/stock", product_router.update_stock);

// Product categories
server->post(base_path + "/stores/:storeId/products/:id/categories", product_router.add_category);
server->del(base_path + "/stores/:storeId/products/:id/categories/:categoryId", product_router.remove_category);

// Categories
server->get(base_path + "/categories", category_router.list);
server->get(base_path + "/categories/:id", category_router.get_by_id);
server->post(base_path + "/categories", category_router.create);
server->put(base_path + "/categories/:id", category_router.update);
server->del(base_path + "/categories/:id", category_router.remove);

// ========================================
// ORDER ROUTES
// ========================================
// Order management
server->get(base_path + "/orders", order_router.list);
server->get(base_path + "/stores/:storeId/orders", order_router.list_store_orders);
server->get(base_path + "/orders/:id", order_router.get_by_id);
server->post(base_path + "/orders", order_router.create);
server->put(base_path + "/orders/:id", order_router.update);
server->put(base_path + "/orders/:id/cancel", order_router.cancel);
server->put(base_path + "/orders/:id/confirm", order_router.confirm);
server->put(base_path + "/orders/:id/status", order_router.update_status);
server->put(base_path + "/orders/:id/complete", order_router.complete);

https://redd.it/1oz9lpt
@r_cpp
Reddit From the cpp community on Reddit: Am I using C++ the wrong way by making it feel TypeScript-like? Explore this post and more from the cpp community
More from @r_cpp
  1. Oct 12, 2026cxvm: pin a GCC or Clang version per project on Linux (pyenv/nvm, but for C++ compilers) I…
  2. Oct 12, 2026cppreference-doc for Qt Creator Release cppreference C++ v2025.12.01 · cristianadam/cppref…
  3. Oct 12, 2026ACCU Overload Journal 195 - October 2026 https://accu.org/journals/overload/overload195 ht…
  4. Oct 12, 2026C++ Contracts C++ contracts are a good thing, why are people saying it's a bad thing? Anyb…
  5. Oct 11, 2026wxWidgets 3.2.12 and 3.3.4 Released https://wxwidgets.org/news/2026/10/wxwidgets-3.2.12-an…
  6. Oct 11, 2026VKRT NES Remaster — an open-source C++20 NES emulator with an observation-driven remasteri…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →