printservice.json 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. "openapi": "3.0.1",
  3. "info": {
  4. "title": "printservice",
  5. "version": "1.0"
  6. },
  7. "paths": {
  8. "/api/printer/list": {
  9. "get": {
  10. "tags": [
  11. "Printer"
  12. ],
  13. "responses": {
  14. "200": {
  15. "description": "OK"
  16. }
  17. }
  18. }
  19. },
  20. "/api/printer/get-local-ip": {
  21. "get": {
  22. "tags": [
  23. "Printer"
  24. ],
  25. "responses": {
  26. "200": {
  27. "description": "OK"
  28. }
  29. }
  30. }
  31. },
  32. "/api/printer/print-ticket": {
  33. "post": {
  34. "tags": [
  35. "Printer"
  36. ],
  37. "requestBody": {
  38. "content": {
  39. "multipart/form-data": {
  40. "schema": {
  41. "type": "object",
  42. "properties": {
  43. "file": {
  44. "type": "string",
  45. "format": "binary"
  46. },
  47. "printerName": {
  48. "type": "string"
  49. }
  50. }
  51. },
  52. "encoding": {
  53. "file": {
  54. "style": "form"
  55. },
  56. "printerName": {
  57. "style": "form"
  58. }
  59. }
  60. }
  61. }
  62. },
  63. "responses": {
  64. "200": {
  65. "description": "OK"
  66. }
  67. }
  68. }
  69. }
  70. },
  71. "components": { }
  72. }