mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-30 23:33:34 +00:00 
			
		
		
		
	- Schema validate against bad domain characters - Integration test for CVE POC examples - Cypress rewrite of plugins for file upload
		
			
				
	
	
		
			60 lines
		
	
	
		
			921 B
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			921 B
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
| 	"operationId": "enableDeadHost",
 | |
| 	"summary": "Enable a 404 Host",
 | |
| 	"tags": ["404 Hosts"],
 | |
| 	"security": [
 | |
| 		{
 | |
| 			"BearerAuth": ["dead_hosts"]
 | |
| 		}
 | |
| 	],
 | |
| 	"parameters": [
 | |
| 		{
 | |
| 			"in": "path",
 | |
| 			"name": "hostID",
 | |
| 			"schema": {
 | |
| 				"type": "integer",
 | |
| 				"minimum": 1
 | |
| 			},
 | |
| 			"required": true,
 | |
| 			"example": 2
 | |
| 		}
 | |
| 	],
 | |
| 	"responses": {
 | |
| 		"200": {
 | |
| 			"description": "200 response",
 | |
| 			"content": {
 | |
| 				"application/json": {
 | |
| 					"examples": {
 | |
| 						"default": {
 | |
| 							"value": true
 | |
| 						}
 | |
| 					},
 | |
| 					"schema": {
 | |
| 						"type": "boolean"
 | |
| 					}
 | |
| 				}
 | |
| 			}
 | |
| 		},
 | |
| 		"400": {
 | |
| 			"description": "400 response",
 | |
| 			"content": {
 | |
| 				"application/json": {
 | |
| 					"examples": {
 | |
| 						"default": {
 | |
| 							"value": {
 | |
| 								"error": {
 | |
| 									"code": 400,
 | |
| 									"message": "Host is already enabled"
 | |
| 								}
 | |
| 							}
 | |
| 						}
 | |
| 					},
 | |
| 					"schema": {
 | |
| 						"$ref": "../../../../../components/error.json"
 | |
| 					}
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| }
 |