Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "title": "Tracker Server",
  5. "description": "Service untuk emit sinyal lacak dari driver",
  6. "termsOfService": "sanbercode.com/tos-blablabla-com",
  7. "contact": {
  8. "name": "Name",
  9. "url": "socialmedia.com/slashuser"
  10. },
  11. "License": {
  12. "name": "MIT",
  13. "url": "socialmedia.comjuga/slashusersmh"
  14. },
  15. "version": "1.0.0"
  16. },
  17. "host": "host.com",
  18. "basePath": "/api/v2",
  19. "schemes": [
  20. "https"
  21. ],
  22. "consumes": [
  23. "application/json"
  24. ],
  25. "produces": [
  26. "application/json"
  27. ],
  28. "definitions": {
  29. "Logs": {
  30. "type": "object",
  31. "properties": {
  32. "time": {
  33. "type": "date"
  34. },
  35. "east": {
  36. "type": "number"
  37. },
  38. "west": {
  39. "type": "number"
  40. },
  41. "north": {
  42. "type": "number"
  43. },
  44. "south": {
  45. "type": "number"
  46. },
  47. }
  48. }
  49. },
  50. "externalDocs": {
  51. "description": "General information about tracker",
  52. "url": "urlexternaldocs.com"
  53. },
  54. "tags": {
  55. "name": "Logs",
  56. "description": "API related to Logs"
  57. },
  58. "paths": {
  59. "/movement/{rider_id}": {
  60. "get": {
  61. "parameters": {
  62. "name": "rider_id",
  63. "in": "path",
  64. "description": "Unique ID dari suatu driver",
  65. "required": "true"
  66. },
  67. "tags": [
  68. "Logs"
  69. ],
  70. "description": "API untuk mengambil data logs dari suatu driver",
  71. "produces": [
  72. "application/json"
  73. ],
  74. "responses": {
  75. "description": "Data logs dari suatu driver",
  76. "schemes": {
  77. "type": "object",
  78. "$ref": "#/definitions/Logs"
  79. }
  80. },
  81. "deprecated": "false"
  82. },
  83.  
  84. "/track": {
  85.  
  86. }
  87. }
  88. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement