Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

50 строки
1.4 KiB

  1. openapi: 3.0.0
  2. info:
  3. title: JSON Placeholder OpenAPI
  4. description: Example spec of the well known JSON Placeholder website
  5. version: 0.1.9
  6. servers:
  7. - url: https://jsonplaceholder.typicode.com
  8. paths:
  9. /posts:
  10. get:
  11. tags: ['posts']
  12. summary: Returns a list of Posts.
  13. description: Optional extended description in CommonMark or HTML.
  14. operationId: GetPosts
  15. responses:
  16. '200':
  17. description: A JSON array of Posts
  18. content:
  19. application/json:
  20. schema:
  21. type: array
  22. items:
  23. $ref: '#/components/schemas/Post'
  24. components:
  25. schemas:
  26. Post:
  27. required:
  28. - id
  29. - userId
  30. - title
  31. - body
  32. type: object
  33. properties:
  34. id:
  35. type: number
  36. description: record id
  37. example: 1
  38. userId:
  39. type: string
  40. description: unique user identifier
  41. example: 2
  42. title:
  43. type: string
  44. description: title of this Post
  45. example: sunt aut facere repellat provident occaecati excepturi optio reprehenderit
  46. body:
  47. type: string
  48. description: description of this post
  49. example: quia et suscipit\nsuscipit recusandae consequuntur expedita et cum\nreprehenderit molestiae ut ut quas totam\nnostrum rerum est autem sunt rem eveniet architecto