You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

50 regels
1.1 KiB

  1. openapi: 3.0.0
  2. info:
  3. title: Beacon Parser API
  4. version: 1.0.0
  5. paths:
  6. /configs/beacons:
  7. get:
  8. summary: Retrieve beacon parsing configurations
  9. responses:
  10. '200':
  11. description: A list of beacon protocol definitions
  12. content:
  13. application/json:
  14. schema:
  15. type: array
  16. items:
  17. $ref: '#/components/schemas/BeaconConfig'
  18. components:
  19. schemas:
  20. BeaconConfig:
  21. type: object
  22. properties:
  23. name:
  24. type: string
  25. example: "Ingics"
  26. min:
  27. type: integer
  28. max:
  29. type: integer
  30. pattern:
  31. type: array
  32. items:
  33. type: string
  34. example: ["0xFF", "0x59"]
  35. configs:
  36. type: object
  37. additionalProperties:
  38. $ref: '#/components/schemas/FieldMapping'
  39. FieldMapping:
  40. type: object
  41. properties:
  42. offset:
  43. type: integer
  44. length:
  45. type: integer
  46. order:
  47. type: string
  48. enum: [littleendian, bigendian]