openapi.yaml 793 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. openapi: 3.0.0
  2. info:
  3. title: Flora Game API
  4. description: Small API game for the BTS
  5. version: 1.0.0
  6. servers:
  7. - url: http://192.168.131.172:3000
  8. paths:
  9. /register:
  10. post:
  11. summary: Make a new account
  12. responses:
  13. '200':
  14. description: OK
  15. /login:
  16. post:
  17. summary: Login to get your token
  18. responses:
  19. '200':
  20. description: OK
  21. /plant:
  22. post:
  23. summary: Spend $10 to plant something
  24. responses:
  25. '200':
  26. description: Gives you a code to remember
  27. /grow/{id}:
  28. post:
  29. summary: Type in the code you remembered
  30. responses:
  31. '200':
  32. description: OK
  33. /sell/{id}:
  34. post:
  35. summary: Sell the plant for money
  36. responses:
  37. '200':
  38. description: OK