swagger.json 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "Nginx Proxy Manager API",
  5. "version": "2.x.x"
  6. },
  7. "servers": [
  8. {
  9. "url": "http://127.0.0.1:81/api"
  10. }
  11. ],
  12. "paths": {
  13. "/": {
  14. "get": {
  15. "$ref": "./paths/get.json"
  16. }
  17. },
  18. "/audit-log": {
  19. "get": {
  20. "$ref": "./paths/audit-log/get.json"
  21. }
  22. },
  23. "/nginx/access-lists": {
  24. "get": {
  25. "$ref": "./paths/nginx/access-lists/get.json"
  26. },
  27. "post": {
  28. "$ref": "./paths/nginx/access-lists/post.json"
  29. }
  30. },
  31. "/nginx/access-lists/{listID}": {
  32. "get": {
  33. "$ref": "./paths/nginx/access-lists/listID/get.json"
  34. },
  35. "put": {
  36. "$ref": "./paths/nginx/access-lists/listID/put.json"
  37. },
  38. "delete": {
  39. "$ref": "./paths/nginx/access-lists/listID/delete.json"
  40. }
  41. },
  42. "/nginx/certificates": {
  43. "get": {
  44. "$ref": "./paths/nginx/certificates/get.json"
  45. },
  46. "post": {
  47. "$ref": "./paths/nginx/certificates/post.json"
  48. }
  49. },
  50. "/nginx/certificates/validate": {
  51. "post": {
  52. "$ref": "./paths/nginx/certificates/validate/post.json"
  53. }
  54. },
  55. "/nginx/certificates/test-http": {
  56. "get": {
  57. "$ref": "./paths/nginx/certificates/test-http/get.json"
  58. }
  59. },
  60. "/nginx/certificates/{certID}": {
  61. "get": {
  62. "$ref": "./paths/nginx/certificates/certID/get.json"
  63. },
  64. "delete": {
  65. "$ref": "./paths/nginx/certificates/certID/delete.json"
  66. }
  67. },
  68. "/nginx/certificates/{certID}/download": {
  69. "get": {
  70. "$ref": "./paths/nginx/certificates/certID/download/get.json"
  71. }
  72. },
  73. "/nginx/certificates/{certID}/renew": {
  74. "post": {
  75. "$ref": "./paths/nginx/certificates/certID/renew/post.json"
  76. }
  77. },
  78. "/nginx/certificates/{certID}/upload": {
  79. "post": {
  80. "$ref": "./paths/nginx/certificates/certID/upload/post.json"
  81. }
  82. },
  83. "/nginx/proxy-hosts": {
  84. "get": {
  85. "$ref": "./paths/nginx/proxy-hosts/get.json"
  86. },
  87. "post": {
  88. "$ref": "./paths/nginx/proxy-hosts/post.json"
  89. }
  90. },
  91. "/nginx/proxy-hosts/{hostID}": {
  92. "get": {
  93. "$ref": "./paths/nginx/proxy-hosts/hostID/get.json"
  94. },
  95. "put": {
  96. "$ref": "./paths/nginx/proxy-hosts/hostID/put.json"
  97. },
  98. "delete": {
  99. "$ref": "./paths/nginx/proxy-hosts/hostID/delete.json"
  100. }
  101. },
  102. "/nginx/proxy-hosts/{hostID}/enable": {
  103. "post": {
  104. "$ref": "./paths/nginx/proxy-hosts/hostID/enable/post.json"
  105. }
  106. },
  107. "/nginx/proxy-hosts/{hostID}/disable": {
  108. "post": {
  109. "$ref": "./paths/nginx/proxy-hosts/hostID/disable/post.json"
  110. }
  111. },
  112. "/nginx/redirection-hosts": {
  113. "get": {
  114. "$ref": "./paths/nginx/redirection-hosts/get.json"
  115. },
  116. "post": {
  117. "$ref": "./paths/nginx/redirection-hosts/post.json"
  118. }
  119. },
  120. "/nginx/redirection-hosts/{hostID}": {
  121. "get": {
  122. "$ref": "./paths/nginx/redirection-hosts/hostID/get.json"
  123. },
  124. "put": {
  125. "$ref": "./paths/nginx/redirection-hosts/hostID/put.json"
  126. },
  127. "delete": {
  128. "$ref": "./paths/nginx/redirection-hosts/hostID/delete.json"
  129. }
  130. },
  131. "/nginx/redirection-hosts/{hostID}/enable": {
  132. "post": {
  133. "$ref": "./paths/nginx/redirection-hosts/hostID/enable/post.json"
  134. }
  135. },
  136. "/nginx/redirection-hosts/{hostID}/disable": {
  137. "post": {
  138. "$ref": "./paths/nginx/redirection-hosts/hostID/disable/post.json"
  139. }
  140. },
  141. "/nginx/dead-hosts": {
  142. "get": {
  143. "$ref": "./paths/nginx/dead-hosts/get.json"
  144. },
  145. "post": {
  146. "$ref": "./paths/nginx/dead-hosts/post.json"
  147. }
  148. },
  149. "/nginx/dead-hosts/{hostID}": {
  150. "get": {
  151. "$ref": "./paths/nginx/dead-hosts/hostID/get.json"
  152. },
  153. "put": {
  154. "$ref": "./paths/nginx/dead-hosts/hostID/put.json"
  155. },
  156. "delete": {
  157. "$ref": "./paths/nginx/dead-hosts/hostID/delete.json"
  158. }
  159. },
  160. "/nginx/dead-hosts/{hostID}/enable": {
  161. "post": {
  162. "$ref": "./paths/nginx/dead-hosts/hostID/enable/post.json"
  163. }
  164. },
  165. "/nginx/dead-hosts/{hostID}/disable": {
  166. "post": {
  167. "$ref": "./paths/nginx/dead-hosts/hostID/disable/post.json"
  168. }
  169. },
  170. "/nginx/streams": {
  171. "get": {
  172. "$ref": "./paths/nginx/streams/get.json"
  173. },
  174. "post": {
  175. "$ref": "./paths/nginx/streams/post.json"
  176. }
  177. },
  178. "/nginx/streams/{streamID}": {
  179. "get": {
  180. "$ref": "./paths/nginx/streams/streamID/get.json"
  181. },
  182. "put": {
  183. "$ref": "./paths/nginx/streams/streamID/put.json"
  184. },
  185. "delete": {
  186. "$ref": "./paths/nginx/streams/streamID/delete.json"
  187. }
  188. },
  189. "/nginx/streams/{streamID}/enable": {
  190. "post": {
  191. "$ref": "./paths/nginx/streams/streamID/enable/post.json"
  192. }
  193. },
  194. "/nginx/streams/{streamID}/disable": {
  195. "post": {
  196. "$ref": "./paths/nginx/streams/streamID/disable/post.json"
  197. }
  198. },
  199. "/reports/hosts": {
  200. "get": {
  201. "$ref": "./paths/reports/hosts/get.json"
  202. }
  203. },
  204. "/schema": {
  205. "get": {
  206. "$ref": "./paths/schema/get.json"
  207. }
  208. },
  209. "/settings": {
  210. "get": {
  211. "$ref": "./paths/settings/get.json"
  212. }
  213. },
  214. "/settings/{settingID}": {
  215. "get": {
  216. "$ref": "./paths/settings/settingID/get.json"
  217. },
  218. "put": {
  219. "$ref": "./paths/settings/settingID/put.json"
  220. }
  221. },
  222. "/tokens": {
  223. "get": {
  224. "$ref": "./paths/tokens/get.json"
  225. },
  226. "post": {
  227. "$ref": "./paths/tokens/post.json"
  228. }
  229. },
  230. "/users": {
  231. "get": {
  232. "$ref": "./paths/users/get.json"
  233. },
  234. "post": {
  235. "$ref": "./paths/users/post.json"
  236. }
  237. },
  238. "/users/{userID}": {
  239. "get": {
  240. "$ref": "./paths/users/userID/get.json"
  241. },
  242. "put": {
  243. "$ref": "./paths/users/userID/put.json"
  244. },
  245. "delete": {
  246. "$ref": "./paths/users/userID/delete.json"
  247. }
  248. },
  249. "/users/{userID}/auth": {
  250. "put": {
  251. "$ref": "./paths/users/userID/auth/put.json"
  252. }
  253. },
  254. "/users/{userID}/permissions": {
  255. "put": {
  256. "$ref": "./paths/users/userID/permissions/put.json"
  257. }
  258. },
  259. "/users/{userID}/login": {
  260. "post": {
  261. "$ref": "./paths/users/userID/login/post.json"
  262. }
  263. }
  264. }
  265. }