{"openapi":"3.0.0","servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/ricaldone-488/ZGasMERN/1.0.0"}],"info":{"version":"1.0.0","title":"Api bro","description":"Esta es mi api broustoune"},"paths":{"/api/products":{"get":{"summary":"Select a products","tags":["Products"],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request"}},"operationId":"get-api-products","description":"Este método ayuda a visualizar todos los datos de la coleccion de productos"},"post":{"summary":"Insert a products","tags":["Products"],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request"}},"operationId":"post-api-products","description":"En este método se solicitan los datos para guardar un producto","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","x-stoplight":{"id":"zcbx68usf4dsr"}},"description":{"type":"string","x-stoplight":{"id":"012vu7zuhkg32"}},"price":{"type":"number","x-stoplight":{"id":"ats0w3ogkhpbt"},"minimum":1,"maximum":1000},"stock":{"type":"number","x-stoplight":{"id":"3f2jujg2goz55"},"minimum":0}}},"examples":{"Example 1":{"value":{"name":"string","description":"string","price":1,"stock":0}}}}}}},"put":{"summary":"Update a products","tags":["Products"],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request"}},"operationId":"put-api-products","description":"Aqui con este metodo podemos actualizar los datos de un producto","parameters":[{"schema":{"type":"string"},"in":"query","name":"id","required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","x-stoplight":{"id":"p42qm8wvzkdu5"}},"description":{"type":"string","x-stoplight":{"id":"8xm2mmabvv2cg"}},"price":{"type":"number","x-stoplight":{"id":"p6rfz9ulx5a3s"},"minimum":1,"maximum":1000},"stock":{"type":"number","x-stoplight":{"id":"pmclidng7y8qq"},"minimum":0}}}}}}},"delete":{"summary":"Delete a products","tags":["Products"],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request"}},"operationId":"delete-api-products","description":"En este metodo podemos eliminar un producto en base al que queremos seleccionar","parameters":[{"schema":{"type":"string"},"in":"query","name":"id","required":true}]}},"/api/branches":{"get":{"summary":"Select a Branches","tags":["Branches"],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request"}},"operationId":"get-api-branches"},"post":{"summary":"Insert a Branches","tags":["Branches"],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request"}},"operationId":"post-api-branches","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","x-stoplight":{"id":"bmcj4rv1p2zjp"}},"address":{"type":"string","x-stoplight":{"id":"4m9n4ptju8brb"}},"telephone":{"type":"number","x-stoplight":{"id":"tq3111ikee3yx"}},"schedule":{"type":"string","x-stoplight":{"id":"waj633834jjds"}}}}}}}},"put":{"summary":"Update a Branches","tags":["Branches"],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request"}},"operationId":"put-api-branches","parameters":[{"schema":{"type":"string"},"in":"query","name":"id","required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","x-stoplight":{"id":"asgy6c40gr2uz"}},"address":{"type":"string","x-stoplight":{"id":"qkfz757aeiq2o"}},"telephone":{"type":"number","x-stoplight":{"id":"o3i5uz5svm3vp"}},"schedule":{"type":"string","x-stoplight":{"id":"b9wg6dixr1w38"}}}}}}}},"delete":{"summary":"Delete a Branches","tags":["Branches"],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request"}},"operationId":"delete-api-branches","parameters":[{"schema":{"type":"string"},"in":"query","name":"id","required":true}]}},"/api/clients":{"get":{"summary":"Select a Clients","tags":["Clients"],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request"}},"operationId":"get-api-clients"},"put":{"summary":"Update a Clients","tags":["Clients"],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request"}},"operationId":"put-api-clients","parameters":[{"schema":{"type":"string"},"in":"query","name":"id","required":true}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","x-stoplight":{"id":"gemysqx29jsj4"}},"lastName":{"type":"string","x-stoplight":{"id":"6axvcw73lpebb"}},"birthday":{"type":"string","x-stoplight":{"id":"n5s23fdm4h4im"}},"email":{"type":"string","x-stoplight":{"id":"ptuq4wtn7g6hq"}},"password":{"type":"string","x-stoplight":{"id":"y3dn1f8nk5wjz"}},"telephone":{"type":"string","x-stoplight":{"id":"923mnpxzuc68e"}},"dui":{"type":"string","x-stoplight":{"id":"0ju9w5ewrwx6e"}},"isVerified":{"type":"boolean","x-stoplight":{"id":"tnsbymfh8mgao"},"default":true}}}}}}},"delete":{"summary":"Delete a Clients","tags":["Clients"],"responses":{"200":{"description":"OK"},"400":{"description":"Bad Request"}},"operationId":"delete-api-clients","parameters":[{"schema":{"type":"string"},"in":"query","name":"id","required":true}]}}},"components":{"schemas":{"products":{"title":"products","type":"object","properties":{"name":{"type":"string"},"description":{"type":"number","x-stoplight":{"id":"qcz3zddfsmhpo"}},"stock":{"type":"number","x-stoplight":{"id":"z0s8kiseqv9cr"}}}}}}}