Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add swagger documentation for getAllRooms #24

Open
github-actions bot opened this issue Apr 4, 2023 · 0 comments
Open

Add swagger documentation for getAllRooms #24

github-actions bot opened this issue Apr 4, 2023 · 0 comments
Labels

Comments

@github-actions
Copy link

github-actions bot commented Apr 4, 2023

https://api.github.com/bankforall/api/blob/5256080e255eeae34cda06f190d877d5161e45ec/routes/peershare-room.route.js#L19

const router = require("express").Router();
const passport = require("passport");
const peershareRoomController = require("../controllers/peershare-room.controller");

// TODO: Add swagger documentation for joinRoom
router.post(
  "/join/:inviteCode",
  passport.authenticate("jwt", { session: false }),
  peershareRoomController.joinRoom
);

// TODO: Add swagger documentation for createRoom
router.post(
  "/",
  passport.authenticate("jwt", { session: false }),
  peershareRoomController.createRoom
);

// TODO: Add swagger documentation for getAllRooms
router.get(
  "/",
  passport.authenticate("jwt", { session: false }),
  peershareRoomController.getAllRooms
);

// TODO: Add swagger documentation for getAllMembersInRoom
router.get(
  "/:id/member",
  passport.authenticate("jwt", { session: false }),
  peershareRoomController.getAllMembersInRoom
);

// TODO: Add swagger documentation for getAllTransactionsInRoom
router.post(
  "/pay",
  passport.authenticate("jwt", { session: false }),
  peershareRoomController.payForPeerShare
);

// TODO: Add swagger documentation for getRoomById
router.get(
  "/:id",
  passport.authenticate("jwt", { session: false }),
  peershareRoomController.getRoomById
);

module.exports = router;
@github-actions github-actions bot added the todo label Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants