mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 07:43:33 +00:00 
			
		
		
		
	Moved certrbot plugin list to backend
frontend doesn't include when building in react version adds swagger for existing dns-providers endpoint
This commit is contained in:
		
							
								
								
									
										23
									
								
								backend/schema/components/dns-providers-list.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								backend/schema/components/dns-providers-list.json
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| { | ||||
| 	"type": "array", | ||||
| 	"description": "DNS Providers list", | ||||
| 	"items": { | ||||
| 		"type": "object", | ||||
| 		"required": ["id", "name", "credentials"], | ||||
| 		"additionalProperties": false, | ||||
| 		"properties": { | ||||
| 			"id": { | ||||
| 				"type": "string", | ||||
| 				"description": "Unique identifier for the DNS provider, matching the python package" | ||||
| 			}, | ||||
| 			"name": { | ||||
| 				"type": "string", | ||||
| 				"description": "Human-readable name of the DNS provider" | ||||
| 			}, | ||||
| 			"credentials": { | ||||
| 				"type": "string", | ||||
| 				"description": "Instructions on how to format the credentials for this DNS provider" | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| @@ -0,0 +1,52 @@ | ||||
| { | ||||
| 	"operationId": "getDNSProviders", | ||||
| 	"summary": "Get DNS Providers for Certificates", | ||||
| 	"tags": [ | ||||
| 		"Certificates" | ||||
| 	], | ||||
| 	"security": [ | ||||
| 		{ | ||||
| 			"BearerAuth": [ | ||||
| 				"certificates" | ||||
| 			] | ||||
| 		} | ||||
| 	], | ||||
| 	"responses": { | ||||
| 		"200": { | ||||
| 			"description": "200 response", | ||||
| 			"content": { | ||||
| 				"application/json": { | ||||
| 					"examples": { | ||||
| 						"default": { | ||||
| 							"value": [ | ||||
| 								{ | ||||
| 									"id": "vultr", | ||||
| 									"name": "Vultr", | ||||
| 									"credentials": "dns_vultr_key = YOUR_VULTR_API_KEY" | ||||
| 								}, | ||||
| 								{ | ||||
| 									"id": "websupport", | ||||
| 									"name": "Websupport.sk", | ||||
| 									"credentials": "dns_websupport_identifier = <api_key>\ndns_websupport_secret_key = <secret>" | ||||
| 								}, | ||||
| 								{ | ||||
| 									"id": "wedos", | ||||
| 									"name": "Wedos", | ||||
| 									"credentials": "dns_wedos_user = <wedos_registration>\ndns_wedos_auth = <wapi_password>" | ||||
| 								}, | ||||
| 								{ | ||||
| 									"id": "zoneedit", | ||||
| 									"name": "ZoneEdit", | ||||
| 									"credentials": "dns_zoneedit_user = <login-user-id>\ndns_zoneedit_token = <dyn-authentication-token>" | ||||
| 								} | ||||
| 							] | ||||
| 						} | ||||
| 					}, | ||||
| 					"schema": { | ||||
| 						"$ref": "../../../../components/dns-providers-list.json" | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| @@ -7,18 +7,24 @@ | ||||
| 			"BearerAuth": ["certificates"] | ||||
| 		} | ||||
| 	], | ||||
| 	"parameters": [ | ||||
| 		{ | ||||
| 			"in": "query", | ||||
| 			"name": "domains", | ||||
| 			"description": "Expansions", | ||||
| 			"required": true, | ||||
| 			"schema": { | ||||
| 				"type": "string", | ||||
| 				"example": "[\"test.example.ord\",\"test.example.com\",\"nonexistent.example.com\"]" | ||||
| 	"requestBody": { | ||||
| 		"description": "Test Payload", | ||||
| 		"required": true, | ||||
| 		"content": { | ||||
| 			"application/json": { | ||||
| 				"schema": { | ||||
| 					"type": "object", | ||||
| 					"additionalProperties": false, | ||||
| 					"required": ["domains"], | ||||
| 					"properties": { | ||||
| 						"domains": { | ||||
| 							"$ref": "../../../../common.json#/properties/domain_names" | ||||
| 						} | ||||
| 					} | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 	], | ||||
| 	}, | ||||
| 	"responses": { | ||||
| 		"200": { | ||||
| 			"description": "200 response", | ||||
| @@ -61,14 +61,19 @@ | ||||
| 				"$ref": "./paths/nginx/certificates/post.json" | ||||
| 			} | ||||
| 		}, | ||||
| 		"/nginx/certificates/dns-providers": { | ||||
| 			"get": { | ||||
| 				"$ref": "./paths/nginx/certificates/dns-providers/get.json" | ||||
| 			} | ||||
| 		}, | ||||
| 		"/nginx/certificates/validate": { | ||||
| 			"post": { | ||||
| 				"$ref": "./paths/nginx/certificates/validate/post.json" | ||||
| 			} | ||||
| 		}, | ||||
| 		"/nginx/certificates/test-http": { | ||||
| 			"get": { | ||||
| 				"$ref": "./paths/nginx/certificates/test-http/get.json" | ||||
| 			"post": { | ||||
| 				"$ref": "./paths/nginx/certificates/test-http/post.json" | ||||
| 			} | ||||
| 		}, | ||||
| 		"/nginx/certificates/{certID}": { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user