"#153 Updates swagger.json"

pull/1/head
Luis Gerardo Romero Garcia 2024-02-15 09:28:46 +01:00
parent 716ef20e31
commit 2f12fc40fe
1 changed files with 12 additions and 12 deletions

View File

@ -1,13 +1,13 @@
{ {
"openapi": "3.0.0", "openapi": "3.0.0",
"info": { "info": {
"title": "My API", "title": "Ogdhcp API",
"version": "1.0" "version": "1.0"
}, },
"paths": { "paths": {
"/opengnsys3/rest/dhcp/subnet": { "/opengnsys3/rest/dhcp/subnets": {
"get": { "get": {
"operationId": "ece42bc4084486aedf42734bdb0b84cb", "operationId": "8f92a1cbcb8cd176bdc4ae272b3ad303",
"responses": { "responses": {
"200": { "200": {
"description": "Devuelve todas las subredes", "description": "Devuelve todas las subredes",
@ -29,7 +29,7 @@
}, },
"post": { "post": {
"summary": "Add a new DHCP subnet", "summary": "Add a new DHCP subnet",
"operationId": "36e86a6932056e774180d074d3d63ad0", "operationId": "88949bae5e7784ce2721ffafe7c88c0a",
"requestBody": { "requestBody": {
"description": "JSON payload", "description": "JSON payload",
"required": true, "required": true,
@ -97,10 +97,10 @@
} }
} }
}, },
"/opengnsys3/rest/dhcp/subnet/{subnetId}": { "/opengnsys3/rest/dhcp/subnets/{subnetId}": {
"put": { "put": {
"summary": "Modify a DHCP subnet", "summary": "Modify a DHCP subnet",
"operationId": "c002afa59d07660be24fda34e1498c13", "operationId": "548b55fc0e1ad59ea5b5c909dfd07c71",
"parameters": [ "parameters": [
{ {
"name": "subnetId", "name": "subnetId",
@ -172,7 +172,7 @@
}, },
"delete": { "delete": {
"summary": "Delete a DHCP subnet", "summary": "Delete a DHCP subnet",
"operationId": "299c4287d729ca98c47ef613720051f4", "operationId": "c1c1c34729bdd85857b22e6e2bdc41de",
"parameters": [ "parameters": [
{ {
"name": "subnetId", "name": "subnetId",
@ -218,10 +218,10 @@
} }
} }
}, },
"/opengnsys3/rest/dhcp/subnet/{subnetId}/host": { "/opengnsys3/rest/dhcp/subnets/{subnetId}/hosts": {
"get": { "get": {
"summary": "Get all hosts in a subnet", "summary": "Get all hosts in a subnet",
"operationId": "2511366de74accc3d7356814ced1cf50", "operationId": "0989ca622a6a7e23f5af8e3bdd6f6b05",
"parameters": [ "parameters": [
{ {
"name": "subnetId", "name": "subnetId",
@ -281,7 +281,7 @@
}, },
"put": { "put": {
"summary": "Update a DHCP host", "summary": "Update a DHCP host",
"operationId": "6106fe2802e2f913ddb35df61b5fde35", "operationId": "1541441cd53685aaf6df45ab48befaa8",
"parameters": [ "parameters": [
{ {
"name": "subnetId", "name": "subnetId",
@ -361,7 +361,7 @@
}, },
"post": { "post": {
"summary": "Add a DHCP host to a subnet", "summary": "Add a DHCP host to a subnet",
"operationId": "f5d3e1de64faa4e5b14cdc7d3bd0c427", "operationId": "3f897dcd7c04787ac9c42ddbb57cb800",
"parameters": [ "parameters": [
{ {
"name": "subnetId", "name": "subnetId",
@ -433,7 +433,7 @@
}, },
"delete": { "delete": {
"summary": "Delete a DHCP host from a specific subnet", "summary": "Delete a DHCP host from a specific subnet",
"operationId": "542cc5fc093ff121c154504e9cad270f", "operationId": "f652c52b39d57d283401df66a7930b5f",
"parameters": [ "parameters": [
{ {
"name": "subnetId", "name": "subnetId",