4442.yaml 785 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. openapi: "3.0.0"
  2. paths:
  3. /:
  4. get:
  5. parameters:
  6. - name: users
  7. in: query
  8. description: List of users to query for
  9. content:
  10. application/json:
  11. example:
  12. - userId: 1
  13. currency: USD
  14. - userId: 2
  15. currency: CAD
  16. schema:
  17. $ref: "#/components/schemas/UserArray"
  18. responses:
  19. 200:
  20. description: OK!
  21. components:
  22. schemas:
  23. UserArray:
  24. type: array
  25. items:
  26. $ref: "#/components/schemas/User"
  27. User:
  28. type: object
  29. required:
  30. - userId
  31. - currency
  32. properties:
  33. userId:
  34. type: integer
  35. format: int32
  36. currency:
  37. type: string