Open dguglielmi-git opened 1 year ago
We need to have available in the Mercadopago backend, the endpoint /address with the following routes:
{ "method": "GET", "path": "/addresses", "handler": "address.find", "config": { "policies": [] } }, { "method": "GET", "path": "/addresses/count", "handler": "address.count", "config": { "policies": [] } }, { "method": "GET", "path": "/addresses/:id", "handler": "address.findOne", "config": { "policies": [] } }, { "method": "POST", "path": "/addresses", "handler": "address.create", "config": { "policies": [] } }, { "method": "PUT", "path": "/addresses/:id", "handler": "address.update", "config": { "policies": [] } }, { "method": "DELETE", "path": "/addresses/:id", "handler": "address.delete", "config": { "policies": [] } } ]
Below is the structure:
"collectionName": "addresses", "info": { "name": "address", "description": "" }, "options": { "increments": true, "timestamps": true, "draftAndPublish": true }, "pluginOptions": {}, "attributes": { "title": { "type": "string", "required": true }, "name": { "type": "string", "required": true }, "address": { "type": "string", "required": true }, "city": { "type": "string", "required": true }, "state": { "type": "string", "required": true }, "zipCode": { "type": "string", "required": true }, "phone": { "type": "string", "required": true }, "users_permissions_user": { "plugin": "users-permissions", "model": "user" }, "formatted_distance": { "type": "string" }, "value_distance": { "type": "biginteger" }, "email_url": { "type": "string" } }
We need to have available in the Mercadopago backend, the endpoint /address with the following routes:
Below is the structure: