You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

logoutDesc.js 696B

123456789101112131415161718192021222324252627
  1. module.exports = {
  2. post: {
  3. tags: ["Token"],
  4. description: "Log out user",
  5. parameters: [],
  6. requestBody: {
  7. content: {
  8. "application/json": {
  9. schema: {
  10. $ref: "#/components/schemas/Token"
  11. }
  12. }
  13. }
  14. },
  15. responses: {
  16. 201: {
  17. description: "User logged out successfully"
  18. },
  19. 404: {
  20. description: "No user has the token provided!"
  21. },
  22. 500: {
  23. description: "Internal server error"
  24. }
  25. }
  26. }
  27. }