Commit 6dbbaec2 authored by Ramiro Huayller's avatar Ramiro Huayller

eliminiacion de catalogo: se agrego apidoc

parent e8d65105
......@@ -217,7 +217,27 @@ module.exports = app => {
})
.catch(error => res.status(412).send(util.formatearMensaje('ERROR', error)));
});
// delete
//------------------> ELIMINAR CATALOGO
/**
@apiVersion 2.0.0
@apiGroup Catalogo
@apiName Delete catalogo
@api {delete} /api/v1/plantillasFormly/catalogo/:id/miscatalogos Borrrar catalogo
@apiDescription Eliminar catalogo
@apiParam (Params) {Number} id Identificador del catalogo a eliminar
@apiSuccessExample {json} Respuesta del Ejemplo:
HTTP/1.1 200 OK
{
"tipoMensaje": "EXITO",
"mensaje": "Eliminacion exitosa"
}
@apiSampleRequest off
*/
app.delete('/api/v1/plantillasFormly/catalogo/:id/miscatalogos',(req,res) => {
const idCatalogo = req.params.id;
sequelize.transaction().then(t => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment