Advertisement
hzee

formtest

Mar 23rd, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. openapi: 3.0.0
  2.  
  3. info:
  4. version: '1.0.0'
  5. title: 'session'
  6. description: 'Service'
  7.  
  8. externalDocs:
  9. description: document
  10. url: https://example.com
  11.  
  12. servers:
  13. - url: 'https:///127.0.0.1:8080/v1'
  14. variables:
  15. apiRoot:
  16. default: https://example.com
  17.  
  18. security:
  19. - {}
  20. - oAuth2ClientCredentials:
  21. - session
  22.  
  23. paths:
  24. /service:
  25. post:
  26. summary: Create service
  27. tags:
  28. - service collection
  29. operationId: PostService
  30. parameters:
  31. - name: first-param
  32. in: query
  33. description: First Query Param
  34. schema:
  35. type: string
  36. - name: json-param
  37. in: query
  38. description: Second Query Param
  39. content:
  40. application/json:
  41. schema:
  42. $ref: '#/components/schemas/ServiceCreateData'
  43.  
  44. responses:
  45. '200':
  46. description: successful creation of an service
  47. content:
  48. application/json:
  49. schema:
  50. $ref: '#/components/schemas/ServiceData'
  51.  
  52.  
  53. components:
  54. schemas:
  55. ServiceCreateData:
  56. type: object
  57. properties:
  58. type:
  59. type: string
  60.  
  61.  
  62. ServiceData:
  63. type: object
  64. properties:
  65. code:
  66. type: integer
  67. format: int32
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement