swagger.json 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. {
  2. "openapi": "3.1.0",
  3. "info": {
  4. "title": "Nginx Proxy Manager API",
  5. "version": "2.x.x",
  6. "description": "This is the official API documentation for Nginx Proxy Manager.\n\nMost endpoints require authentication via Bearer Token (JWT). You can generate a token by logging in via the `POST /tokens` endpoint.\n\nFor more information, visit the [Nginx Proxy Manager Documentation](https://nginxproxymanager.com)."
  7. },
  8. "servers": [
  9. {
  10. "url": "http://127.0.0.1:81/api"
  11. }
  12. ],
  13. "components": {
  14. "securitySchemes": {
  15. "$ref": "./components/security-schemes.json"
  16. }
  17. },
  18. "tags": [
  19. {
  20. "name": "public",
  21. "description": "Endpoints that do not require authentication"
  22. },
  23. {
  24. "name": "audit-log",
  25. "description": "Endpoints related to Audit Logs"
  26. },
  27. {
  28. "name": "access-lists",
  29. "description": "Endpoints related to Access Lists"
  30. },
  31. {
  32. "name": "certificates",
  33. "description": "Endpoints related to Certificates"
  34. },
  35. {
  36. "name": "404-hosts",
  37. "description": "Endpoints related to 404 Hosts"
  38. },
  39. {
  40. "name": "proxy-hosts",
  41. "description": "Endpoints related to Proxy Hosts"
  42. },
  43. {
  44. "name": "redirection-hosts",
  45. "description": "Endpoints related to Redirection Hosts"
  46. },
  47. {
  48. "name": "streams",
  49. "description": "Endpoints related to Streams"
  50. },
  51. {
  52. "name": "reports",
  53. "description": "Endpoints for viewing reports"
  54. },
  55. {
  56. "name": "settings",
  57. "description": "Endpoints for managing application settings"
  58. },
  59. {
  60. "name": "tokens",
  61. "description": "Endpoints for managing authentication tokens"
  62. },
  63. {
  64. "name": "users",
  65. "description": "Endpoints for managing users"
  66. }
  67. ],
  68. "paths": {
  69. "/": {
  70. "get": {
  71. "$ref": "./paths/get.json"
  72. }
  73. },
  74. "/audit-log": {
  75. "get": {
  76. "$ref": "./paths/audit-log/get.json"
  77. }
  78. },
  79. "/audit-log/{id}": {
  80. "get": {
  81. "$ref": "./paths/audit-log/id/get.json"
  82. }
  83. },
  84. "/nginx/access-lists": {
  85. "get": {
  86. "$ref": "./paths/nginx/access-lists/get.json"
  87. },
  88. "post": {
  89. "$ref": "./paths/nginx/access-lists/post.json"
  90. }
  91. },
  92. "/nginx/access-lists/{listID}": {
  93. "get": {
  94. "$ref": "./paths/nginx/access-lists/listID/get.json"
  95. },
  96. "put": {
  97. "$ref": "./paths/nginx/access-lists/listID/put.json"
  98. },
  99. "delete": {
  100. "$ref": "./paths/nginx/access-lists/listID/delete.json"
  101. }
  102. },
  103. "/nginx/certificates": {
  104. "get": {
  105. "$ref": "./paths/nginx/certificates/get.json"
  106. },
  107. "post": {
  108. "$ref": "./paths/nginx/certificates/post.json"
  109. }
  110. },
  111. "/nginx/certificates/dns-providers": {
  112. "get": {
  113. "$ref": "./paths/nginx/certificates/dns-providers/get.json"
  114. }
  115. },
  116. "/nginx/certificates/validate": {
  117. "post": {
  118. "$ref": "./paths/nginx/certificates/validate/post.json"
  119. }
  120. },
  121. "/nginx/certificates/test-http": {
  122. "post": {
  123. "$ref": "./paths/nginx/certificates/test-http/post.json"
  124. }
  125. },
  126. "/nginx/certificates/{certID}": {
  127. "get": {
  128. "$ref": "./paths/nginx/certificates/certID/get.json"
  129. },
  130. "delete": {
  131. "$ref": "./paths/nginx/certificates/certID/delete.json"
  132. }
  133. },
  134. "/nginx/certificates/{certID}/download": {
  135. "get": {
  136. "$ref": "./paths/nginx/certificates/certID/download/get.json"
  137. }
  138. },
  139. "/nginx/certificates/{certID}/renew": {
  140. "post": {
  141. "$ref": "./paths/nginx/certificates/certID/renew/post.json"
  142. }
  143. },
  144. "/nginx/certificates/{certID}/upload": {
  145. "post": {
  146. "$ref": "./paths/nginx/certificates/certID/upload/post.json"
  147. }
  148. },
  149. "/nginx/proxy-hosts": {
  150. "get": {
  151. "$ref": "./paths/nginx/proxy-hosts/get.json"
  152. },
  153. "post": {
  154. "$ref": "./paths/nginx/proxy-hosts/post.json"
  155. }
  156. },
  157. "/nginx/proxy-hosts/{hostID}": {
  158. "get": {
  159. "$ref": "./paths/nginx/proxy-hosts/hostID/get.json"
  160. },
  161. "put": {
  162. "$ref": "./paths/nginx/proxy-hosts/hostID/put.json"
  163. },
  164. "delete": {
  165. "$ref": "./paths/nginx/proxy-hosts/hostID/delete.json"
  166. }
  167. },
  168. "/nginx/proxy-hosts/{hostID}/enable": {
  169. "post": {
  170. "$ref": "./paths/nginx/proxy-hosts/hostID/enable/post.json"
  171. }
  172. },
  173. "/nginx/proxy-hosts/{hostID}/disable": {
  174. "post": {
  175. "$ref": "./paths/nginx/proxy-hosts/hostID/disable/post.json"
  176. }
  177. },
  178. "/nginx/redirection-hosts": {
  179. "get": {
  180. "$ref": "./paths/nginx/redirection-hosts/get.json"
  181. },
  182. "post": {
  183. "$ref": "./paths/nginx/redirection-hosts/post.json"
  184. }
  185. },
  186. "/nginx/redirection-hosts/{hostID}": {
  187. "get": {
  188. "$ref": "./paths/nginx/redirection-hosts/hostID/get.json"
  189. },
  190. "put": {
  191. "$ref": "./paths/nginx/redirection-hosts/hostID/put.json"
  192. },
  193. "delete": {
  194. "$ref": "./paths/nginx/redirection-hosts/hostID/delete.json"
  195. }
  196. },
  197. "/nginx/redirection-hosts/{hostID}/enable": {
  198. "post": {
  199. "$ref": "./paths/nginx/redirection-hosts/hostID/enable/post.json"
  200. }
  201. },
  202. "/nginx/redirection-hosts/{hostID}/disable": {
  203. "post": {
  204. "$ref": "./paths/nginx/redirection-hosts/hostID/disable/post.json"
  205. }
  206. },
  207. "/nginx/dead-hosts": {
  208. "get": {
  209. "$ref": "./paths/nginx/dead-hosts/get.json"
  210. },
  211. "post": {
  212. "$ref": "./paths/nginx/dead-hosts/post.json"
  213. }
  214. },
  215. "/nginx/dead-hosts/{hostID}": {
  216. "get": {
  217. "$ref": "./paths/nginx/dead-hosts/hostID/get.json"
  218. },
  219. "put": {
  220. "$ref": "./paths/nginx/dead-hosts/hostID/put.json"
  221. },
  222. "delete": {
  223. "$ref": "./paths/nginx/dead-hosts/hostID/delete.json"
  224. }
  225. },
  226. "/nginx/dead-hosts/{hostID}/enable": {
  227. "post": {
  228. "$ref": "./paths/nginx/dead-hosts/hostID/enable/post.json"
  229. }
  230. },
  231. "/nginx/dead-hosts/{hostID}/disable": {
  232. "post": {
  233. "$ref": "./paths/nginx/dead-hosts/hostID/disable/post.json"
  234. }
  235. },
  236. "/nginx/streams": {
  237. "get": {
  238. "$ref": "./paths/nginx/streams/get.json"
  239. },
  240. "post": {
  241. "$ref": "./paths/nginx/streams/post.json"
  242. }
  243. },
  244. "/nginx/streams/{streamID}": {
  245. "get": {
  246. "$ref": "./paths/nginx/streams/streamID/get.json"
  247. },
  248. "put": {
  249. "$ref": "./paths/nginx/streams/streamID/put.json"
  250. },
  251. "delete": {
  252. "$ref": "./paths/nginx/streams/streamID/delete.json"
  253. }
  254. },
  255. "/nginx/streams/{streamID}/enable": {
  256. "post": {
  257. "$ref": "./paths/nginx/streams/streamID/enable/post.json"
  258. }
  259. },
  260. "/nginx/streams/{streamID}/disable": {
  261. "post": {
  262. "$ref": "./paths/nginx/streams/streamID/disable/post.json"
  263. }
  264. },
  265. "/reports/hosts": {
  266. "get": {
  267. "$ref": "./paths/reports/hosts/get.json"
  268. }
  269. },
  270. "/schema": {
  271. "get": {
  272. "$ref": "./paths/schema/get.json"
  273. }
  274. },
  275. "/settings": {
  276. "get": {
  277. "$ref": "./paths/settings/get.json"
  278. }
  279. },
  280. "/settings/{settingID}": {
  281. "get": {
  282. "$ref": "./paths/settings/settingID/get.json"
  283. },
  284. "put": {
  285. "$ref": "./paths/settings/settingID/put.json"
  286. }
  287. },
  288. "/tokens": {
  289. "get": {
  290. "$ref": "./paths/tokens/get.json"
  291. },
  292. "post": {
  293. "$ref": "./paths/tokens/post.json"
  294. }
  295. },
  296. "/tokens/2fa": {
  297. "post": {
  298. "$ref": "./paths/tokens/2fa/post.json"
  299. }
  300. },
  301. "/version/check": {
  302. "get": {
  303. "$ref": "./paths/version/check/get.json"
  304. }
  305. },
  306. "/users": {
  307. "get": {
  308. "$ref": "./paths/users/get.json"
  309. },
  310. "post": {
  311. "$ref": "./paths/users/post.json"
  312. }
  313. },
  314. "/users/{userID}": {
  315. "get": {
  316. "$ref": "./paths/users/userID/get.json"
  317. },
  318. "put": {
  319. "$ref": "./paths/users/userID/put.json"
  320. },
  321. "delete": {
  322. "$ref": "./paths/users/userID/delete.json"
  323. }
  324. },
  325. "/users/{userID}/2fa": {
  326. "post": {
  327. "$ref": "./paths/users/userID/2fa/post.json"
  328. },
  329. "get": {
  330. "$ref": "./paths/users/userID/2fa/get.json"
  331. },
  332. "delete": {
  333. "$ref": "./paths/users/userID/2fa/delete.json"
  334. }
  335. },
  336. "/users/{userID}/2fa/enable": {
  337. "post": {
  338. "$ref": "./paths/users/userID/2fa/enable/post.json"
  339. }
  340. },
  341. "/users/{userID}/2fa/backup-codes": {
  342. "post": {
  343. "$ref": "./paths/users/userID/2fa/backup-codes/post.json"
  344. }
  345. },
  346. "/users/{userID}/auth": {
  347. "put": {
  348. "$ref": "./paths/users/userID/auth/put.json"
  349. }
  350. },
  351. "/users/{userID}/permissions": {
  352. "put": {
  353. "$ref": "./paths/users/userID/permissions/put.json"
  354. }
  355. },
  356. "/users/{userID}/login": {
  357. "post": {
  358. "$ref": "./paths/users/userID/login/post.json"
  359. }
  360. }
  361. }
  362. }