Serial.ws Patched ◎ ❲PREMIUM❳
curl -X GET \ http://localhost:8080/piece/12345
openapi: 3.0.0 info: title: Serial Communication Web Service description: API for generating serial communication pieces version: 1.0.0 servers: - url: http://localhost:8080 paths: /generate: post: summary: Generate Serial Communication Piece description: Generate a serial communication piece based on the provided configuration requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SerialConfig' responses: '200': description: Serial communication piece generated successfully content: application/json: schema: $ref: '#/components/schemas/SerialPiece' /piece/{piece_id}: get: summary: Get Serial Communication Piece description: Retrieve a serial communication piece by its ID parameters: - in: path name: piece_id required: true schema: type: integer responses: '200': description: Serial communication piece retrieved successfully content: application/json: schema: $ref: '#/components/schemas/SerialPiece' put: summary: Update Serial Communication Piece description: Update a serial communication piece parameters: - in: path name: piece_id required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/SerialConfig' responses: '200': description: Serial communication piece updated successfully content: application/json: schema: $ref: '#/components/schemas/SerialPiece' delete: summary: Delete Serial Communication Piece description: Delete a serial communication piece parameters: - in: path name: piece_id required: true schema: type: integer responses: '204': description: Serial communication piece deleted successfully components: schemas: SerialConfig: type: object required: - device_name - baud_rate - data_bits - parity - stop_bits properties: device_name: type: string baud_rate: type: integer data_bits: type: integer parity: type: string stop_bits: type: integer SerialPiece: type: object required: - serial_piece properties: serial_piece: type: string serial.ws
Response: