diff --git a/back/strapi/api/commentaires-epds/config/routes.json b/back/strapi/api/commentaires-epds/config/routes.json new file mode 100644 index 000000000..8184162e8 --- /dev/null +++ b/back/strapi/api/commentaires-epds/config/routes.json @@ -0,0 +1,52 @@ +{ + "routes": [ + { + "method": "GET", + "path": "/commentaires-epds", + "handler": "commentaires-epds.find", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/commentaires-epds/count", + "handler": "commentaires-epds.count", + "config": { + "policies": [] + } + }, + { + "method": "GET", + "path": "/commentaires-epds/:id", + "handler": "commentaires-epds.findOne", + "config": { + "policies": [] + } + }, + { + "method": "POST", + "path": "/commentaires-epds", + "handler": "commentaires-epds.create", + "config": { + "policies": [] + } + }, + { + "method": "PUT", + "path": "/commentaires-epds/:id", + "handler": "commentaires-epds.update", + "config": { + "policies": [] + } + }, + { + "method": "DELETE", + "path": "/commentaires-epds/:id", + "handler": "commentaires-epds.delete", + "config": { + "policies": [] + } + } + ] +} diff --git a/back/strapi/api/commentaires-epds/models/commentaires-epds.settings.json b/back/strapi/api/commentaires-epds/models/commentaires-epds.settings.json new file mode 100644 index 000000000..33146c31f --- /dev/null +++ b/back/strapi/api/commentaires-epds/models/commentaires-epds.settings.json @@ -0,0 +1,20 @@ +{ + "kind": "collectionType", + "collectionName": "commentaires_epds", + "info": { + "name": "Commentaires EPDS" + }, + "options": { + "increments": true, + "timestamps": true, + "draftAndPublish": false + }, + "attributes": { + "score": { + "type": "integer" + }, + "commentaire": { + "type": "text" + } + } +} \ No newline at end of file