| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- {
- "openapi": "3.0.1",
- "info": {
- "title": "printservice",
- "version": "1.0"
- },
- "paths": {
- "/api/printer/list": {
- "get": {
- "tags": [
- "Printer"
- ],
- "responses": {
- "200": {
- "description": "OK"
- }
- }
- }
- },
- "/api/printer/get-local-ip": {
- "get": {
- "tags": [
- "Printer"
- ],
- "responses": {
- "200": {
- "description": "OK"
- }
- }
- }
- },
- "/api/printer/open-drawer": {
- "post": {
- "tags": [
- "Printer"
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "string"
- }
- },
- "text/json": {
- "schema": {
- "type": "string"
- }
- },
- "application/*+json": {
- "schema": {
- "type": "string"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "OK"
- }
- }
- }
- },
- "/api/printer/print-text": {
- "post": {
- "tags": [
- "Printer"
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/PrintTextRequest"
- }
- },
- "text/json": {
- "schema": {
- "$ref": "#/components/schemas/PrintTextRequest"
- }
- },
- "application/*+json": {
- "schema": {
- "$ref": "#/components/schemas/PrintTextRequest"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "OK"
- }
- }
- }
- },
- "/api/printer/print-ticket": {
- "post": {
- "tags": [
- "Printer"
- ],
- "requestBody": {
- "content": {
- "multipart/form-data": {
- "schema": {
- "type": "object",
- "properties": {
- "file": {
- "type": "string",
- "format": "binary"
- },
- "printerName": {
- "type": "string"
- }
- }
- },
- "encoding": {
- "file": {
- "style": "form"
- },
- "printerName": {
- "style": "form"
- }
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "OK"
- }
- }
- }
- },
- "/api/printer/cut-paper": {
- "post": {
- "tags": [
- "Printer"
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "type": "string"
- }
- },
- "text/json": {
- "schema": {
- "type": "string"
- }
- },
- "application/*+json": {
- "schema": {
- "type": "string"
- }
- }
- }
- },
- "responses": {
- "200": {
- "description": "OK"
- }
- }
- }
- }
- },
- "components": {
- "schemas": {
- "PrintTextRequest": {
- "type": "object",
- "properties": {
- "printerIp": {
- "type": "string",
- "nullable": true
- },
- "text": {
- "type": "string",
- "nullable": true
- }
- },
- "additionalProperties": false
- }
- }
- }
- }
|