Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "description": "This is a demo api server.",
  5. "version": "1.0",
  6. "title": "Demo API",
  7. "termsOfService": "http://swagger.io/terms/",
  8. "contact": {
  9. "email": "api@demo.test"
  10. },
  11. "license": {
  12. "name": "Apache 2.0"
  13. }
  14. },
  15. "host": "api.remakescape.com",
  16. "basePath": "/v2",
  17. "tags": [
  18. {
  19. "name": "Player",
  20. "description": "Everything about a player"
  21. }
  22. ],
  23. "schemes": [
  24. "https"
  25. ],
  26. "paths": {
  27. "/player": {
  28. "post": {
  29. "tags": [
  30. "Player"
  31. ],
  32. "summary": "Add a new player.",
  33. "description": "",
  34. "operationId": "addPlayer",
  35. "consumes": [
  36. "application/json"
  37. ],
  38. "produces": [
  39. "application/json"
  40. ],
  41. "parameters": [
  42. {
  43. "in": "body",
  44. "name": "body",
  45. "description": "Player object that needs you want to create.",
  46. "required": true,
  47. "schema": {
  48. "$ref": "#/definitions/Player"
  49. }
  50. }
  51. ],
  52. "responses": {
  53. "405": {
  54. "description": "Invalid input"
  55. }
  56. }
  57. }
  58. }
  59. },
  60. "definitions": {
  61. "Player": {
  62. "type": "object",
  63. "properties": {
  64. "id": {
  65. "type": "integer",
  66. "format": "int256"
  67. },
  68. "username": {
  69. "type": "string"
  70. },
  71. "email": {
  72. "type": "string",
  73. "format": "email"
  74. },
  75. "password": {
  76. "type": "string"
  77. },
  78. "displayName": {
  79. "type": "string"
  80. }
  81. }
  82. }
  83. }
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement