v3-search.yaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # 手写补充:/v3/search 的 meta.facets 结构。
  2. # meta 其余字段由控制器 @meta 注解生成;@meta 只能声明到 object,桶的形状在这里补。
  3. get:
  4. responses:
  5. 200:
  6. content:
  7. application/json:
  8. schema:
  9. properties:
  10. meta:
  11. properties:
  12. facets:
  13. type: object
  14. description: 分面计数,只在 facets=true 时出现。键是 resource_type / language / category / granularity
  15. additionalProperties:
  16. type: array
  17. items:
  18. type: object
  19. required: [key, count]
  20. properties:
  21. key:
  22. type: string
  23. count:
  24. type: integer
  25. post:
  26. responses:
  27. 200:
  28. content:
  29. application/json:
  30. schema:
  31. properties:
  32. meta:
  33. properties:
  34. facets:
  35. type: object
  36. description: 分面计数,只在 facets=true 时出现。键是 resource_type / language / category / granularity
  37. additionalProperties:
  38. type: array
  39. items:
  40. type: object
  41. required: [key, count]
  42. properties:
  43. key:
  44. type: string
  45. count:
  46. type: integer