add /decode endpoint

This commit is contained in:
John
2021-11-06 21:56:17 +01:00
parent 0d751ab1c7
commit 39498ee02f
3 changed files with 77 additions and 1 deletions
+26
View File
@@ -157,6 +157,32 @@ paths:
application/json;charset=utf-8:
schema:
$ref: '#/components/schemas/RawMessages'
/decode:
get:
summary: Decode raw data with the specified field defintion.
parameters:
- name: def
in: query
description: the field definition (starting with type).
allowEmptyValue: false
required: true
schema:
type: string
- name: raw
in: query
description: the raw symbols to decode as hex sequence.
required: true
allowEmptyValue: false
schema:
type: string
pattern: '^([0-9a-f][0-9a-f])+$'
responses:
200:
description: Success
content:
application/json;charset=utf-8:
schema:
$ref: '#/components/schemas/FieldValue'
/{file}:
get:
summary: Retrieve a particular file.