{"info":{"_postman_id":"1a3bcbd0-fef1-42a1-9b81-c59b6cc40eb9","name":"Login Register Api Rest Base","description":"<html><head></head><body><p>Esta es la base para una API REST con funcionalidades de:</p>\n<ul>\n<li>Registro</li>\n<li>Login</li>\n<li>Logout</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"18045110","collectionId":"1a3bcbd0-fef1-42a1-9b81-c59b6cc40eb9","publishedId":"2s9YyqiMnC","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-27T13:55:10.000Z"},"item":[{"name":"User Authentication","item":[{"name":"Register","event":[{"listen":"test","script":{"id":"42dfda1e-d728-4523-b8dc-6e9cebcef022","exec":["pm.test(\"Status code is 200\", function () {","    var jsonBearerData = JSON.parse(responseBody);","    pm.collectionVariables.set(\"bearer_token\", jsonBearerData.data.token);","    console.log(jsonBearerData);","});"],"type":"text/javascript"}}],"id":"d437c0d3-ca10-4c5a-ab36-75c7a96243f7","protocolProfileBehavior":{"disableBodyPruning":true,"disabledSystemHeaders":{"content-type":true}},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Pedro Perez\",\n    \"email\": \"correo@correo.com\",\n    \"password\": \"User12345$\",\n    \"c_password\": \"User12345$\",\n    \"rol\": \"customer\"\n}"},"url":"http://localhost:8000/api/v1/register","description":"<p>The <code>POST /api/v1/register</code> endpoint is used to register a new user. The request should be sent with a form-data body containing the <code>name</code>, <code>email</code>, <code>password</code>, and <code>c_password</code> parameters.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>name</code> (text): The name of the user.</li>\n<li><code>email</code> (text): The email address of the user.</li>\n<li><code>password</code> (text): The password for the user account.</li>\n<li><code>c_password</code> (text): The confirmation of the password.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful registration, the API returns a JSON response with a status code of 200 and the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"\",\n        \"name\": \"\"\n    },\n    \"message\": \"\"\n}\n\n</code></pre>\n<ul>\n<li><code>success</code> (boolean): Indicates if the registration was successful.</li>\n<li><code>data</code> (object): Contains the user's token and name upon successful registration.</li>\n<li><code>message</code> (string): Any additional message related to the registration process.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ae7ee8e5-37fc-4034-a970-43ba56a4b5bd","name":"Register 404 This user exists","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"This user exists.\",\n    \"data\": {\n        \"error\": \"The user is already registered\"\n    }\n}"},{"id":"97ba3fa5-9c8d-49b0-bfc3-f4f6fc258f0e","name":"Register 200","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"Pedro Perez\",\n    \"email\": \"correo@correo.com\",\n    \"password\": \"User12345$\",\n    \"c_password\": \"User12345$\",\n    \"rol\": \"customer\"\n}"},"url":"http://localhost:8000/api/v1/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Thu, 15 Feb 2024 12:05:58 GMT"},{"key":"Date","value":"Thu, 15 Feb 2024 12:05:58 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"57"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiZmRiODg3NTM1NjVkOTNkOGU2NGFiNGNiNTEyZDc3MzgyMTI2OTIyMzU3NGE1YzIyYjAzMWVhMmRkNmMyNjQzOTg0MTNiOWM0OTdhZjk5MTMiLCJpYXQiOjE3MDc5OTg3NTguNjc5MDcxLCJuYmYiOjE3MDc5OTg3NTguNjc5MDc3LCJleHAiOjE3Mzk2MjExNTguNjUzNDQ3LCJzdWIiOiIyIiwic2NvcGVzIjpbXX0.A8hAIjVQY2R_gYfTXfwOuD7nrjbrRXU_GcwUEhzeDBXKjFrsnVvS3Fw_xYS90x4dMj6oMMPZ42FeAJW4sbfOnEYWy7nN2cs4EGB0jX-fc9daPhvTbbEZgKx0AHCxTkRSb7aVGTo3cYx__TRXemJ8zYp2IT_N0B7CmIvyGSi8q88gOW8spg62b6bnT8jn6oBV_PfHMtO771u34xk2etMwzSAB687cIyC8nbSx-2U54uwFnGcOayO32LHJyCecw8zrNuL2t3l7o1zSkH5kb_iQZBI6YXyJqVcckWXtulrdGS8BayFSAIF6aTaNOJT1620lNEgOWT5J6DWDtSJyYi8RjhQJFF3OPfS6jDW3PXDBxp_6pSBzseYOa9iPtfSzb0h4oDKF6wozjpBfhZorTfKLUJDNDh3p_WY2AH2M-jqVf2MaXmChrczspFJUTSxmR_Pz_6b4PqAX6-SR5x-sKd5y69JFpacAukb_qntTcyCnbVekvD2j_IKGm2_G-ffUL7wvbvmPxXfkNC31G6WFTyrsexXE-7jNqALW71EuuZjxAPDCmB9S7KPd_jxrXQhZieckHc6jHjyHBU9gTxJH4SDNwhubzGvj7E7CFNKM8liwYKeQFWLaIP-wg29BzUj0-ZzcegWQKRDaU09sH_YAMrvg1Qa2rQ-9aDE73Bu2MWTeHFs\",\n        \"name\": \"Pedro Perez\"\n    },\n    \"message\": \"User register successfully.\"\n}"}],"_postman_id":"d437c0d3-ca10-4c5a-ab36-75c7a96243f7"},{"name":"Login","event":[{"listen":"test","script":{"id":"6562ebfc-6176-49c4-9c8c-7a35ce9ce84e","exec":["pm.test(\"Status code is 200\", function () {","    var jsonBearerData = JSON.parse(responseBody);","    pm.collectionVariables.set(\"bearer_token\", jsonBearerData.data.token);","    console.log(jsonBearerData);","});"],"type":"text/javascript","packages":{}}}],"id":"c0647b7a-f292-496a-8f7e-be534a6e5da4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"correo@correo.com","type":"text"},{"key":"password","value":"User12345$","type":"text"}]},"url":"http://localhost:8000/api/v1/login","description":"<p>This API endpoint is a POST request used for user login at the specified URL. The request requires form-data in the body, including the user's email and password.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>email (text) : The email of the user.</li>\n<li>password (text) : The password of the user.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful execution, the API returns a JSON object with a status code of 200 and the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"\",\n        \"name\": \"\"\n    },\n    \"message\": \"\"\n}\n</code></pre>\n<ul>\n<li>success : Indicates whether the request was successful.</li>\n<li>data : An object containing the user's token and name upon successful login.</li>\n<li>message : Any additional message related to the login process.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"16c0b7f8-3887-4a55-a7bc-91e5bb734fda","name":"Login 200 Ok","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"correo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:39:54 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:39:54 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiMTgzNGQ5MjU1ZDYzODkwYmEwNGQwYzBkZDcxZWEyMTgxYTBmOGFiYTRkYTEzNWM1YzQzMGE4MDU0ODcwODYxMzc1NWMxYzJjMDlkOWQ0ZjMiLCJpYXQiOjE3MDYzNjI3OTQuNDkwNTUzLCJuYmYiOjE3MDYzNjI3OTQuNDkwNTU3LCJleHAiOjE3Mzc5ODUxOTQuNDY0NzQyLCJzdWIiOiIyIiwic2NvcGVzIjpbXX0.L_iCnpdtRoA-6uRuy431hVHfn_b8rzKToFz7ifLcE1OapkN0fzP0w6SNP1AiudCYNtc4wdFd4HbpkJFLzWD6H_V9OJp2dtks-HN4dJtPpo4hTgR57xSAVbrQ8z5dC9FK0_kwJo_gDNPzsuZt8tjT7e7SlzsQbiLCvlYeBd5_AUrjXJ7WudyP5GLXmuq1Fn-21RnJEj2YPRd7lx_4gbX-YnyyScGdT5DvLZ3FNsSzUk6dtGjK9r1hnHy4q881UG-GvNhp6nX8n8KJZ03uxqVrGNABzsHRaTRM854AUMGxAeuXnF66SRg3ix6TEYOfrUbP_MJXGVgFxMdIRrPW7A7kxYptpcLXlW5ZmUgh_veTI8uVSYu3HnywqXBlpYfIhH80NTy_6-j3XgDF52QQZ6_kmgZ5GRTmHcMoWLyLCCL6S93GoaU2bhELES-ensYH4NR_WtMCYi9OqQGAu_PCLKlmHFtujzoWQINMihF-6BwfXgxqzNpSEDwKKJD97fuSAfS0EVJfze2sIbQZufE-BAA5KKtMHlf0m27Fskl14yZohg-BSH6M6CohVHBxUvy0bHBPf98KkCJvlo4_Dtkk7KLe8kvBFZ6ZoFStDpHYaveW1zs6nDj9QaiTEPnO0kierc5yqv2NQYiYIVON6VK_H5fvTtW3X6jJeWsj4Bub7NG07nE\",\n        \"name\": \"Pedro Pérez\"\n    },\n    \"message\": \"User login successfully.\"\n}"},{"id":"8b2999d3-d312-4327-a016-97bf249972a9","name":"Login 404 Unauthorised","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"email","value":"correo@dominio.com","type":"text"},{"key":"password","value":"Password54321","type":"text"}]},"url":"http://localhost:8000/api/v1/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:41:49 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:41:49 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"Unauthorised.\",\n    \"data\": {\n        \"error\": \"Unauthorised\"\n    }\n}"}],"_postman_id":"c0647b7a-f292-496a-8f7e-be534a6e5da4"},{"name":"Logout","event":[{"listen":"test","script":{"id":"6562ebfc-6176-49c4-9c8c-7a35ce9ce84e","exec":[""],"type":"text/javascript"}}],"id":"e0f728f5-7710-406b-ade2-43a3cbccf495","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiYWNiYzE4YjY3OWQ2ZGExNTYyMzcyYjQzYmU3ZjE5ODBkNTMyNDJhNzBlYjBlNmExNGE5NmViZmEwNWYwYjZjNjEyYjcxYzM4ZmIyNzU2YzMiLCJpYXQiOjE2OTk1NTY1NTMuODg1Mjc2LCJuYmYiOjE2OTk1NTY1NTMuODg1Mjc5LCJleHAiOjE3MzExNzg5NTMuODU3NDgxLCJzdWIiOiIzIiwic2NvcGVzIjpbXX0.uQf1fkcuq3IP_mXMUaGM2tb9K3j_ual-KgIO6F6g2vXzV0rlcAyETEby_PrEfme7K5680xvH9pjbLR88pq4Um3Ag7wlhurkq2cuXt95oe0eFv911TumnWPdH4CWffjLexaT8MO7HuTl0Jsr2Am82txEtlg0XhbBLOEOsT1pLsWwDYDhv4IQfqQtwtFekBPx1hhudUCAlVbdAw3IraibMD4cydMwDEeuymNqj-LpEvwKEAnIgFVd9pG1-ETTLArVzLrJWon9nNhRWnvB_j-pMbqIfajKbNy4tkXE4o1HX7RKD1ELexaqfpt7XoPngKU_SuFnr18xO8BgecYUKsVA0yVQcHqgQ2v8hOSK0sFdYESUnoVRx4iht6BFBpznVbp35iEblcKlvh-w7jynqCeX-Ue1UXf9Lpmq89UzEEPVpC0zSECHkbna4TCDhfXfmIl1ydR0jp9AmwLTh4IfkPVlg904uTRJGfCGiyq5A9ga3qojh-AQfwMFd-yG9lU6Rn7o0ZBiEKyrW7Wtz3mDb98Pi66rIGkHvpPMFXY2VcEZLLp5XCQoAVdirsMv49ogu-uVDyyI1kxoszJowALexYNuuhB6FreHkd1Likttqa2JHGvCRa7DDZ7hfQwZLaYqBVd3ZtNY9_VX_uE_P29detXaofp9d6qDSmnSng4EwpyBcHCU"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:8000/api/v1/logout","description":"<p>This endpoint is used to log out a user from the system.</p>\n<p>The request should be sent as an HTTP POST to <a href=\"http://localhost:8000/api/v1/logout\">http://localhost:8000/api/v1/logout</a> with an empty form-data request body.</p>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li>Status: 200</li>\n<li>Content-Type: application/json</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": \"\",\n    \"message\": \"\"\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a2f0206c-5d96-4582-8358-1dde2bc1bfc9","name":"Logout 200 Ok","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[]},"url":"http://localhost:8000/api/v1/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:44:34 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:44:34 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": \"Logout\",\n    \"message\": \"User logout successfully.\"\n}"}],"_postman_id":"e0f728f5-7710-406b-ade2-43a3cbccf495"}],"id":"9f141f85-bd2b-45cb-a6e7-678dd7bcb79d","_postman_id":"9f141f85-bd2b-45cb-a6e7-678dd7bcb79d","description":""},{"name":"Scopes","item":[{"name":"Get Scopes","event":[{"listen":"test","script":{"id":"42dfda1e-d728-4523-b8dc-6e9cebcef022","exec":[""],"type":"text/javascript"}}],"id":"d23a6b06-0eeb-428f-be42-3207d6675828","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiYWNiYzE4YjY3OWQ2ZGExNTYyMzcyYjQzYmU3ZjE5ODBkNTMyNDJhNzBlYjBlNmExNGE5NmViZmEwNWYwYjZjNjEyYjcxYzM4ZmIyNzU2YzMiLCJpYXQiOjE2OTk1NTY1NTMuODg1Mjc2LCJuYmYiOjE2OTk1NTY1NTMuODg1Mjc5LCJleHAiOjE3MzExNzg5NTMuODU3NDgxLCJzdWIiOiIzIiwic2NvcGVzIjpbXX0.uQf1fkcuq3IP_mXMUaGM2tb9K3j_ual-KgIO6F6g2vXzV0rlcAyETEby_PrEfme7K5680xvH9pjbLR88pq4Um3Ag7wlhurkq2cuXt95oe0eFv911TumnWPdH4CWffjLexaT8MO7HuTl0Jsr2Am82txEtlg0XhbBLOEOsT1pLsWwDYDhv4IQfqQtwtFekBPx1hhudUCAlVbdAw3IraibMD4cydMwDEeuymNqj-LpEvwKEAnIgFVd9pG1-ETTLArVzLrJWon9nNhRWnvB_j-pMbqIfajKbNy4tkXE4o1HX7RKD1ELexaqfpt7XoPngKU_SuFnr18xO8BgecYUKsVA0yVQcHqgQ2v8hOSK0sFdYESUnoVRx4iht6BFBpznVbp35iEblcKlvh-w7jynqCeX-Ue1UXf9Lpmq89UzEEPVpC0zSECHkbna4TCDhfXfmIl1ydR0jp9AmwLTh4IfkPVlg904uTRJGfCGiyq5A9ga3qojh-AQfwMFd-yG9lU6Rn7o0ZBiEKyrW7Wtz3mDb98Pi66rIGkHvpPMFXY2VcEZLLp5XCQoAVdirsMv49ogu-uVDyyI1kxoszJowALexYNuuhB6FreHkd1Likttqa2JHGvCRa7DDZ7hfQwZLaYqBVd3ZtNY9_VX_uE_P29detXaofp9d6qDSmnSng4EwpyBcHCU"}]},"isInherited":false},"method":"GET","header":[{"key":"Accept","value":"application/json","type":"text"}],"url":"http://localhost:8000/api/v1/scopes","description":"<p>The <code>POST /api/v1/register</code> endpoint is used to register a new user. The request should be sent with a form-data body containing the <code>name</code>, <code>email</code>, <code>password</code>, and <code>c_password</code> parameters.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>name</code> (text): The name of the user.</li>\n<li><code>email</code> (text): The email address of the user.</li>\n<li><code>password</code> (text): The password for the user account.</li>\n<li><code>c_password</code> (text): The confirmation of the password.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful registration, the API returns a JSON response with a status code of 200 and the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"\",\n        \"name\": \"\"\n    },\n    \"message\": \"\"\n}\n</code></pre>\n<ul>\n<li><code>success</code> (boolean): Indicates if the registration was successful.</li>\n<li><code>data</code> (object): Contains the user's token and name upon successful registration.</li>\n<li><code>message</code> (string): Any additional message related to the registration process.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","scopes"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d2b8e695-f43d-4290-9be2-f1cf8130f427","name":"Register 200 Ok","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiMjZlYzYwYmNiN2QxM2M3Zjc5MDc0OWNlODFkZGYwZjRmMDM3OWY3NTcwZWVhZjhlZWE3ZmQ1ZTIwOGI1NTcwZjZkNmUwMGJlZGM3MmFmN2IiLCJpYXQiOjE3MDYzNjMxNDQuNDA4ODMsIm5iZiI6MTcwNjM2MzE0NC40MDg4MzMsImV4cCI6MTczNzk4NTU0NC4zOTMyNjMsInN1YiI6IjMiLCJzY29wZXMiOltdfQ.UpYAE_Im3MRBxHWacBQ6EdLUoj7n3BMRUDAqs-RVgUKdImlBBI6sBhrJLJcIHDg7zfmu1_JrAJUJL9cQz45jxI8iNsevqgTu77OJVlGfdmR_LV-v7nFVHNL83iMXxlURSWfL_uqMM9X7lfGShr1Y6gHm47ckzdblz4hUQ2CiaeBeoNqXN8NbPik03hEZFo4LDJ4Hnx5LjniEAVzrbxkwKeMOS3T8reK0-khVeDt9RCgRQJi7xkol708XDmz92IH_HDRN0OSfkLs8soyiX4O9ZlszuqTeHTgu4e3zmKsCRl-87qfBFGDGv-xDdPoe4EsclZFdrBCqhSk6SPpKtUKEJZoxlQIHe9LDn30QWI-bqcRCz3BX0lWUOv5r4r8ITeRxf566NfTX61cVAxvQ_vocE0w18fxZJ_VmoxeecFqxdFvICHL2bMuQ0eIEsDsfeRjt65jhkVGioNB5j9E-C4vpZ-Z92oOETVcWdSDWwsPuvlfVxTORkdpxbBm_Ebf34BC7XYlhZkRx1F-n8H8d4e51o8YuZcFdFeEHfTX3b5zbjS5-jX7_klVuNt48rLRj1flpexTXX5pedl5Q-0hn40BFfjp5Ulo2ibKq7J1dCf99qjSfEceP2hp8Kuqt3SrXxa4P11shdD-3f54OyUrNpFuCgEe3RoaTKpm9K555mZ357Ss\",\n        \"name\": \"Pedro Pérez\"\n    },\n    \"message\": \"User register successfully.\"\n}"},{"id":"4e8761a6-092f-4aea-aba5-c8c86e3ce3f8","name":"Register 404 This user exists","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"This user exists.\",\n    \"data\": {\n        \"error\": \"The user is already registered\"\n    }\n}"}],"_postman_id":"d23a6b06-0eeb-428f-be42-3207d6675828"},{"name":"Create Scopes","event":[{"listen":"test","script":{"id":"42dfda1e-d728-4523-b8dc-6e9cebcef022","exec":["pm.test(\"Status code is 200\", function () {","    var jsonBearerData = JSON.parse(responseBody);","    pm.collectionVariables.set(\"bearer_token\", jsonBearerData.data.token);","    console.log(jsonBearerData);","});"],"type":"text/javascript"}}],"id":"c533a84f-304b-4ea6-9e83-ddc872d641bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiYWNiYzE4YjY3OWQ2ZGExNTYyMzcyYjQzYmU3ZjE5ODBkNTMyNDJhNzBlYjBlNmExNGE5NmViZmEwNWYwYjZjNjEyYjcxYzM4ZmIyNzU2YzMiLCJpYXQiOjE2OTk1NTY1NTMuODg1Mjc2LCJuYmYiOjE2OTk1NTY1NTMuODg1Mjc5LCJleHAiOjE3MzExNzg5NTMuODU3NDgxLCJzdWIiOiIzIiwic2NvcGVzIjpbXX0.uQf1fkcuq3IP_mXMUaGM2tb9K3j_ual-KgIO6F6g2vXzV0rlcAyETEby_PrEfme7K5680xvH9pjbLR88pq4Um3Ag7wlhurkq2cuXt95oe0eFv911TumnWPdH4CWffjLexaT8MO7HuTl0Jsr2Am82txEtlg0XhbBLOEOsT1pLsWwDYDhv4IQfqQtwtFekBPx1hhudUCAlVbdAw3IraibMD4cydMwDEeuymNqj-LpEvwKEAnIgFVd9pG1-ETTLArVzLrJWon9nNhRWnvB_j-pMbqIfajKbNy4tkXE4o1HX7RKD1ELexaqfpt7XoPngKU_SuFnr18xO8BgecYUKsVA0yVQcHqgQ2v8hOSK0sFdYESUnoVRx4iht6BFBpznVbp35iEblcKlvh-w7jynqCeX-Ue1UXf9Lpmq89UzEEPVpC0zSECHkbna4TCDhfXfmIl1ydR0jp9AmwLTh4IfkPVlg904uTRJGfCGiyq5A9ga3qojh-AQfwMFd-yG9lU6Rn7o0ZBiEKyrW7Wtz3mDb98Pi66rIGkHvpPMFXY2VcEZLLp5XCQoAVdirsMv49ogu-uVDyyI1kxoszJowALexYNuuhB6FreHkd1Likttqa2JHGvCRa7DDZ7hfQwZLaYqBVd3ZtNY9_VX_uE_P29detXaofp9d6qDSmnSng4EwpyBcHCU"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"rol\": \"Test\",\n    \"scope\": \"read-test\",\n    \"description\": \"scope create test\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/v1/scopes/create","description":"<p>The <code>POST /api/v1/register</code> endpoint is used to register a new user. The request should be sent with a form-data body containing the <code>name</code>, <code>email</code>, <code>password</code>, and <code>c_password</code> parameters.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>name</code> (text): The name of the user.</li>\n<li><code>email</code> (text): The email address of the user.</li>\n<li><code>password</code> (text): The password for the user account.</li>\n<li><code>c_password</code> (text): The confirmation of the password.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful registration, the API returns a JSON response with a status code of 200 and the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"\",\n        \"name\": \"\"\n    },\n    \"message\": \"\"\n}\n</code></pre>\n<ul>\n<li><code>success</code> (boolean): Indicates if the registration was successful.</li>\n<li><code>data</code> (object): Contains the user's token and name upon successful registration.</li>\n<li><code>message</code> (string): Any additional message related to the registration process.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","scopes","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4e91400e-03b4-403c-a68d-bfeff5541bda","name":"Register 200 Ok","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiMjZlYzYwYmNiN2QxM2M3Zjc5MDc0OWNlODFkZGYwZjRmMDM3OWY3NTcwZWVhZjhlZWE3ZmQ1ZTIwOGI1NTcwZjZkNmUwMGJlZGM3MmFmN2IiLCJpYXQiOjE3MDYzNjMxNDQuNDA4ODMsIm5iZiI6MTcwNjM2MzE0NC40MDg4MzMsImV4cCI6MTczNzk4NTU0NC4zOTMyNjMsInN1YiI6IjMiLCJzY29wZXMiOltdfQ.UpYAE_Im3MRBxHWacBQ6EdLUoj7n3BMRUDAqs-RVgUKdImlBBI6sBhrJLJcIHDg7zfmu1_JrAJUJL9cQz45jxI8iNsevqgTu77OJVlGfdmR_LV-v7nFVHNL83iMXxlURSWfL_uqMM9X7lfGShr1Y6gHm47ckzdblz4hUQ2CiaeBeoNqXN8NbPik03hEZFo4LDJ4Hnx5LjniEAVzrbxkwKeMOS3T8reK0-khVeDt9RCgRQJi7xkol708XDmz92IH_HDRN0OSfkLs8soyiX4O9ZlszuqTeHTgu4e3zmKsCRl-87qfBFGDGv-xDdPoe4EsclZFdrBCqhSk6SPpKtUKEJZoxlQIHe9LDn30QWI-bqcRCz3BX0lWUOv5r4r8ITeRxf566NfTX61cVAxvQ_vocE0w18fxZJ_VmoxeecFqxdFvICHL2bMuQ0eIEsDsfeRjt65jhkVGioNB5j9E-C4vpZ-Z92oOETVcWdSDWwsPuvlfVxTORkdpxbBm_Ebf34BC7XYlhZkRx1F-n8H8d4e51o8YuZcFdFeEHfTX3b5zbjS5-jX7_klVuNt48rLRj1flpexTXX5pedl5Q-0hn40BFfjp5Ulo2ibKq7J1dCf99qjSfEceP2hp8Kuqt3SrXxa4P11shdD-3f54OyUrNpFuCgEe3RoaTKpm9K555mZ357Ss\",\n        \"name\": \"Pedro Pérez\"\n    },\n    \"message\": \"User register successfully.\"\n}"},{"id":"eb5fd426-e9d3-4e21-b6cd-4751a95db492","name":"Register 404 This user exists","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"This user exists.\",\n    \"data\": {\n        \"error\": \"The user is already registered\"\n    }\n}"}],"_postman_id":"c533a84f-304b-4ea6-9e83-ddc872d641bd"},{"name":"Edit Scope","event":[{"listen":"test","script":{"id":"42dfda1e-d728-4523-b8dc-6e9cebcef022","exec":["pm.test(\"Status code is 200\", function () {","    var jsonBearerData = JSON.parse(responseBody);","    pm.collectionVariables.set(\"bearer_token\", jsonBearerData.data.token);","    console.log(jsonBearerData);","});"],"type":"text/javascript"}}],"id":"741f15fb-b1a8-453f-b073-e93710154c1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiYWNiYzE4YjY3OWQ2ZGExNTYyMzcyYjQzYmU3ZjE5ODBkNTMyNDJhNzBlYjBlNmExNGE5NmViZmEwNWYwYjZjNjEyYjcxYzM4ZmIyNzU2YzMiLCJpYXQiOjE2OTk1NTY1NTMuODg1Mjc2LCJuYmYiOjE2OTk1NTY1NTMuODg1Mjc5LCJleHAiOjE3MzExNzg5NTMuODU3NDgxLCJzdWIiOiIzIiwic2NvcGVzIjpbXX0.uQf1fkcuq3IP_mXMUaGM2tb9K3j_ual-KgIO6F6g2vXzV0rlcAyETEby_PrEfme7K5680xvH9pjbLR88pq4Um3Ag7wlhurkq2cuXt95oe0eFv911TumnWPdH4CWffjLexaT8MO7HuTl0Jsr2Am82txEtlg0XhbBLOEOsT1pLsWwDYDhv4IQfqQtwtFekBPx1hhudUCAlVbdAw3IraibMD4cydMwDEeuymNqj-LpEvwKEAnIgFVd9pG1-ETTLArVzLrJWon9nNhRWnvB_j-pMbqIfajKbNy4tkXE4o1HX7RKD1ELexaqfpt7XoPngKU_SuFnr18xO8BgecYUKsVA0yVQcHqgQ2v8hOSK0sFdYESUnoVRx4iht6BFBpznVbp35iEblcKlvh-w7jynqCeX-Ue1UXf9Lpmq89UzEEPVpC0zSECHkbna4TCDhfXfmIl1ydR0jp9AmwLTh4IfkPVlg904uTRJGfCGiyq5A9ga3qojh-AQfwMFd-yG9lU6Rn7o0ZBiEKyrW7Wtz3mDb98Pi66rIGkHvpPMFXY2VcEZLLp5XCQoAVdirsMv49ogu-uVDyyI1kxoszJowALexYNuuhB6FreHkd1Likttqa2JHGvCRa7DDZ7hfQwZLaYqBVd3ZtNY9_VX_uE_P29detXaofp9d6qDSmnSng4EwpyBcHCU"}]},"isInherited":false},"method":"PUT","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": 10,\n    \"rol\": \"Test edit 2\",\n    \"scope\": \"read-test\",\n    \"description\": \"scope create test\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/v1/scopes/update","description":"<p>The <code>POST /api/v1/register</code> endpoint is used to register a new user. The request should be sent with a form-data body containing the <code>name</code>, <code>email</code>, <code>password</code>, and <code>c_password</code> parameters.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>name</code> (text): The name of the user.</li>\n<li><code>email</code> (text): The email address of the user.</li>\n<li><code>password</code> (text): The password for the user account.</li>\n<li><code>c_password</code> (text): The confirmation of the password.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful registration, the API returns a JSON response with a status code of 200 and the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"\",\n        \"name\": \"\"\n    },\n    \"message\": \"\"\n}\n</code></pre>\n<ul>\n<li><code>success</code> (boolean): Indicates if the registration was successful.</li>\n<li><code>data</code> (object): Contains the user's token and name upon successful registration.</li>\n<li><code>message</code> (string): Any additional message related to the registration process.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","scopes","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8ec7ffa0-44ac-4307-a626-666dbe0904bb","name":"Register 200 Ok","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiMjZlYzYwYmNiN2QxM2M3Zjc5MDc0OWNlODFkZGYwZjRmMDM3OWY3NTcwZWVhZjhlZWE3ZmQ1ZTIwOGI1NTcwZjZkNmUwMGJlZGM3MmFmN2IiLCJpYXQiOjE3MDYzNjMxNDQuNDA4ODMsIm5iZiI6MTcwNjM2MzE0NC40MDg4MzMsImV4cCI6MTczNzk4NTU0NC4zOTMyNjMsInN1YiI6IjMiLCJzY29wZXMiOltdfQ.UpYAE_Im3MRBxHWacBQ6EdLUoj7n3BMRUDAqs-RVgUKdImlBBI6sBhrJLJcIHDg7zfmu1_JrAJUJL9cQz45jxI8iNsevqgTu77OJVlGfdmR_LV-v7nFVHNL83iMXxlURSWfL_uqMM9X7lfGShr1Y6gHm47ckzdblz4hUQ2CiaeBeoNqXN8NbPik03hEZFo4LDJ4Hnx5LjniEAVzrbxkwKeMOS3T8reK0-khVeDt9RCgRQJi7xkol708XDmz92IH_HDRN0OSfkLs8soyiX4O9ZlszuqTeHTgu4e3zmKsCRl-87qfBFGDGv-xDdPoe4EsclZFdrBCqhSk6SPpKtUKEJZoxlQIHe9LDn30QWI-bqcRCz3BX0lWUOv5r4r8ITeRxf566NfTX61cVAxvQ_vocE0w18fxZJ_VmoxeecFqxdFvICHL2bMuQ0eIEsDsfeRjt65jhkVGioNB5j9E-C4vpZ-Z92oOETVcWdSDWwsPuvlfVxTORkdpxbBm_Ebf34BC7XYlhZkRx1F-n8H8d4e51o8YuZcFdFeEHfTX3b5zbjS5-jX7_klVuNt48rLRj1flpexTXX5pedl5Q-0hn40BFfjp5Ulo2ibKq7J1dCf99qjSfEceP2hp8Kuqt3SrXxa4P11shdD-3f54OyUrNpFuCgEe3RoaTKpm9K555mZ357Ss\",\n        \"name\": \"Pedro Pérez\"\n    },\n    \"message\": \"User register successfully.\"\n}"},{"id":"769b1ad2-3881-4b6c-8f5a-65ed5cc2f19e","name":"Register 404 This user exists","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"This user exists.\",\n    \"data\": {\n        \"error\": \"The user is already registered\"\n    }\n}"}],"_postman_id":"741f15fb-b1a8-453f-b073-e93710154c1f"}],"id":"8ee55597-31a1-425f-800a-17de188846e9","_postman_id":"8ee55597-31a1-425f-800a-17de188846e9","description":""},{"name":"AWS","item":[{"name":"Create SubDominio","event":[{"listen":"test","script":{"id":"42dfda1e-d728-4523-b8dc-6e9cebcef022","exec":[""],"type":"text/javascript","packages":{}}}],"id":"224ad060-4ab0-4180-9b5a-28ac98394190","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiYWNiYzE4YjY3OWQ2ZGExNTYyMzcyYjQzYmU3ZjE5ODBkNTMyNDJhNzBlYjBlNmExNGE5NmViZmEwNWYwYjZjNjEyYjcxYzM4ZmIyNzU2YzMiLCJpYXQiOjE2OTk1NTY1NTMuODg1Mjc2LCJuYmYiOjE2OTk1NTY1NTMuODg1Mjc5LCJleHAiOjE3MzExNzg5NTMuODU3NDgxLCJzdWIiOiIzIiwic2NvcGVzIjpbXX0.uQf1fkcuq3IP_mXMUaGM2tb9K3j_ual-KgIO6F6g2vXzV0rlcAyETEby_PrEfme7K5680xvH9pjbLR88pq4Um3Ag7wlhurkq2cuXt95oe0eFv911TumnWPdH4CWffjLexaT8MO7HuTl0Jsr2Am82txEtlg0XhbBLOEOsT1pLsWwDYDhv4IQfqQtwtFekBPx1hhudUCAlVbdAw3IraibMD4cydMwDEeuymNqj-LpEvwKEAnIgFVd9pG1-ETTLArVzLrJWon9nNhRWnvB_j-pMbqIfajKbNy4tkXE4o1HX7RKD1ELexaqfpt7XoPngKU_SuFnr18xO8BgecYUKsVA0yVQcHqgQ2v8hOSK0sFdYESUnoVRx4iht6BFBpznVbp35iEblcKlvh-w7jynqCeX-Ue1UXf9Lpmq89UzEEPVpC0zSECHkbna4TCDhfXfmIl1ydR0jp9AmwLTh4IfkPVlg904uTRJGfCGiyq5A9ga3qojh-AQfwMFd-yG9lU6Rn7o0ZBiEKyrW7Wtz3mDb98Pi66rIGkHvpPMFXY2VcEZLLp5XCQoAVdirsMv49ogu-uVDyyI1kxoszJowALexYNuuhB6FreHkd1Likttqa2JHGvCRa7DDZ7hfQwZLaYqBVd3ZtNY9_VX_uE_P29detXaofp9d6qDSmnSng4EwpyBcHCU"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"sub_domain\": \"tesapi6\",\n    \"ip\": \"3.12.74.253\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/v1/aws/r53/create-sub-domain","description":"<p>The <code>POST /api/v1/register</code> endpoint is used to register a new user. The request should be sent with a form-data body containing the <code>name</code>, <code>email</code>, <code>password</code>, and <code>c_password</code> parameters.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>name</code> (text): The name of the user.</li>\n<li><code>email</code> (text): The email address of the user.</li>\n<li><code>password</code> (text): The password for the user account.</li>\n<li><code>c_password</code> (text): The confirmation of the password.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful registration, the API returns a JSON response with a status code of 200 and the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"\",\n        \"name\": \"\"\n    },\n    \"message\": \"\"\n}\n</code></pre>\n<ul>\n<li><code>success</code> (boolean): Indicates if the registration was successful.</li>\n<li><code>data</code> (object): Contains the user's token and name upon successful registration.</li>\n<li><code>message</code> (string): Any additional message related to the registration process.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","aws","r53","create-sub-domain"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"14723f88-1e82-4689-b993-28a507ba286a","name":"Register 200 Ok","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiMjZlYzYwYmNiN2QxM2M3Zjc5MDc0OWNlODFkZGYwZjRmMDM3OWY3NTcwZWVhZjhlZWE3ZmQ1ZTIwOGI1NTcwZjZkNmUwMGJlZGM3MmFmN2IiLCJpYXQiOjE3MDYzNjMxNDQuNDA4ODMsIm5iZiI6MTcwNjM2MzE0NC40MDg4MzMsImV4cCI6MTczNzk4NTU0NC4zOTMyNjMsInN1YiI6IjMiLCJzY29wZXMiOltdfQ.UpYAE_Im3MRBxHWacBQ6EdLUoj7n3BMRUDAqs-RVgUKdImlBBI6sBhrJLJcIHDg7zfmu1_JrAJUJL9cQz45jxI8iNsevqgTu77OJVlGfdmR_LV-v7nFVHNL83iMXxlURSWfL_uqMM9X7lfGShr1Y6gHm47ckzdblz4hUQ2CiaeBeoNqXN8NbPik03hEZFo4LDJ4Hnx5LjniEAVzrbxkwKeMOS3T8reK0-khVeDt9RCgRQJi7xkol708XDmz92IH_HDRN0OSfkLs8soyiX4O9ZlszuqTeHTgu4e3zmKsCRl-87qfBFGDGv-xDdPoe4EsclZFdrBCqhSk6SPpKtUKEJZoxlQIHe9LDn30QWI-bqcRCz3BX0lWUOv5r4r8ITeRxf566NfTX61cVAxvQ_vocE0w18fxZJ_VmoxeecFqxdFvICHL2bMuQ0eIEsDsfeRjt65jhkVGioNB5j9E-C4vpZ-Z92oOETVcWdSDWwsPuvlfVxTORkdpxbBm_Ebf34BC7XYlhZkRx1F-n8H8d4e51o8YuZcFdFeEHfTX3b5zbjS5-jX7_klVuNt48rLRj1flpexTXX5pedl5Q-0hn40BFfjp5Ulo2ibKq7J1dCf99qjSfEceP2hp8Kuqt3SrXxa4P11shdD-3f54OyUrNpFuCgEe3RoaTKpm9K555mZ357Ss\",\n        \"name\": \"Pedro Pérez\"\n    },\n    \"message\": \"User register successfully.\"\n}"},{"id":"82c66fcb-5eb6-4065-a3a5-b53d8d8507f4","name":"Register 404 This user exists","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"This user exists.\",\n    \"data\": {\n        \"error\": \"The user is already registered\"\n    }\n}"}],"_postman_id":"224ad060-4ab0-4180-9b5a-28ac98394190"},{"name":"Delete SubDominio","event":[{"listen":"test","script":{"id":"42dfda1e-d728-4523-b8dc-6e9cebcef022","exec":[""],"type":"text/javascript","packages":{}}}],"id":"abeb7664-2b9f-4252-a84d-ed3916506ae7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiYWNiYzE4YjY3OWQ2ZGExNTYyMzcyYjQzYmU3ZjE5ODBkNTMyNDJhNzBlYjBlNmExNGE5NmViZmEwNWYwYjZjNjEyYjcxYzM4ZmIyNzU2YzMiLCJpYXQiOjE2OTk1NTY1NTMuODg1Mjc2LCJuYmYiOjE2OTk1NTY1NTMuODg1Mjc5LCJleHAiOjE3MzExNzg5NTMuODU3NDgxLCJzdWIiOiIzIiwic2NvcGVzIjpbXX0.uQf1fkcuq3IP_mXMUaGM2tb9K3j_ual-KgIO6F6g2vXzV0rlcAyETEby_PrEfme7K5680xvH9pjbLR88pq4Um3Ag7wlhurkq2cuXt95oe0eFv911TumnWPdH4CWffjLexaT8MO7HuTl0Jsr2Am82txEtlg0XhbBLOEOsT1pLsWwDYDhv4IQfqQtwtFekBPx1hhudUCAlVbdAw3IraibMD4cydMwDEeuymNqj-LpEvwKEAnIgFVd9pG1-ETTLArVzLrJWon9nNhRWnvB_j-pMbqIfajKbNy4tkXE4o1HX7RKD1ELexaqfpt7XoPngKU_SuFnr18xO8BgecYUKsVA0yVQcHqgQ2v8hOSK0sFdYESUnoVRx4iht6BFBpznVbp35iEblcKlvh-w7jynqCeX-Ue1UXf9Lpmq89UzEEPVpC0zSECHkbna4TCDhfXfmIl1ydR0jp9AmwLTh4IfkPVlg904uTRJGfCGiyq5A9ga3qojh-AQfwMFd-yG9lU6Rn7o0ZBiEKyrW7Wtz3mDb98Pi66rIGkHvpPMFXY2VcEZLLp5XCQoAVdirsMv49ogu-uVDyyI1kxoszJowALexYNuuhB6FreHkd1Likttqa2JHGvCRa7DDZ7hfQwZLaYqBVd3ZtNY9_VX_uE_P29detXaofp9d6qDSmnSng4EwpyBcHCU"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"sub_domain\": \"tesapi6\",\n    \"ip\": \"3.12.74.253\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/v1/aws/r53/delete-sub-domain","description":"<p>The <code>POST /api/v1/register</code> endpoint is used to register a new user. The request should be sent with a form-data body containing the <code>name</code>, <code>email</code>, <code>password</code>, and <code>c_password</code> parameters.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>name</code> (text): The name of the user.</li>\n<li><code>email</code> (text): The email address of the user.</li>\n<li><code>password</code> (text): The password for the user account.</li>\n<li><code>c_password</code> (text): The confirmation of the password.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful registration, the API returns a JSON response with a status code of 200 and the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"\",\n        \"name\": \"\"\n    },\n    \"message\": \"\"\n}\n</code></pre>\n<ul>\n<li><code>success</code> (boolean): Indicates if the registration was successful.</li>\n<li><code>data</code> (object): Contains the user's token and name upon successful registration.</li>\n<li><code>message</code> (string): Any additional message related to the registration process.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","aws","r53","delete-sub-domain"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"29f99f7f-2e75-486b-9a50-a4fcc9b32e0c","name":"Register 200 Ok","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiMjZlYzYwYmNiN2QxM2M3Zjc5MDc0OWNlODFkZGYwZjRmMDM3OWY3NTcwZWVhZjhlZWE3ZmQ1ZTIwOGI1NTcwZjZkNmUwMGJlZGM3MmFmN2IiLCJpYXQiOjE3MDYzNjMxNDQuNDA4ODMsIm5iZiI6MTcwNjM2MzE0NC40MDg4MzMsImV4cCI6MTczNzk4NTU0NC4zOTMyNjMsInN1YiI6IjMiLCJzY29wZXMiOltdfQ.UpYAE_Im3MRBxHWacBQ6EdLUoj7n3BMRUDAqs-RVgUKdImlBBI6sBhrJLJcIHDg7zfmu1_JrAJUJL9cQz45jxI8iNsevqgTu77OJVlGfdmR_LV-v7nFVHNL83iMXxlURSWfL_uqMM9X7lfGShr1Y6gHm47ckzdblz4hUQ2CiaeBeoNqXN8NbPik03hEZFo4LDJ4Hnx5LjniEAVzrbxkwKeMOS3T8reK0-khVeDt9RCgRQJi7xkol708XDmz92IH_HDRN0OSfkLs8soyiX4O9ZlszuqTeHTgu4e3zmKsCRl-87qfBFGDGv-xDdPoe4EsclZFdrBCqhSk6SPpKtUKEJZoxlQIHe9LDn30QWI-bqcRCz3BX0lWUOv5r4r8ITeRxf566NfTX61cVAxvQ_vocE0w18fxZJ_VmoxeecFqxdFvICHL2bMuQ0eIEsDsfeRjt65jhkVGioNB5j9E-C4vpZ-Z92oOETVcWdSDWwsPuvlfVxTORkdpxbBm_Ebf34BC7XYlhZkRx1F-n8H8d4e51o8YuZcFdFeEHfTX3b5zbjS5-jX7_klVuNt48rLRj1flpexTXX5pedl5Q-0hn40BFfjp5Ulo2ibKq7J1dCf99qjSfEceP2hp8Kuqt3SrXxa4P11shdD-3f54OyUrNpFuCgEe3RoaTKpm9K555mZ357Ss\",\n        \"name\": \"Pedro Pérez\"\n    },\n    \"message\": \"User register successfully.\"\n}"},{"id":"b104ae49-c68e-41f0-a928-205c10f478fc","name":"Register 404 This user exists","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"This user exists.\",\n    \"data\": {\n        \"error\": \"The user is already registered\"\n    }\n}"}],"_postman_id":"abeb7664-2b9f-4252-a84d-ed3916506ae7"},{"name":"Create EC2 Instance","event":[{"listen":"test","script":{"id":"42dfda1e-d728-4523-b8dc-6e9cebcef022","exec":[""],"type":"text/javascript","packages":{}}}],"id":"66c3392e-72de-4d62-8273-c38d481bb2f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiYWNiYzE4YjY3OWQ2ZGExNTYyMzcyYjQzYmU3ZjE5ODBkNTMyNDJhNzBlYjBlNmExNGE5NmViZmEwNWYwYjZjNjEyYjcxYzM4ZmIyNzU2YzMiLCJpYXQiOjE2OTk1NTY1NTMuODg1Mjc2LCJuYmYiOjE2OTk1NTY1NTMuODg1Mjc5LCJleHAiOjE3MzExNzg5NTMuODU3NDgxLCJzdWIiOiIzIiwic2NvcGVzIjpbXX0.uQf1fkcuq3IP_mXMUaGM2tb9K3j_ual-KgIO6F6g2vXzV0rlcAyETEby_PrEfme7K5680xvH9pjbLR88pq4Um3Ag7wlhurkq2cuXt95oe0eFv911TumnWPdH4CWffjLexaT8MO7HuTl0Jsr2Am82txEtlg0XhbBLOEOsT1pLsWwDYDhv4IQfqQtwtFekBPx1hhudUCAlVbdAw3IraibMD4cydMwDEeuymNqj-LpEvwKEAnIgFVd9pG1-ETTLArVzLrJWon9nNhRWnvB_j-pMbqIfajKbNy4tkXE4o1HX7RKD1ELexaqfpt7XoPngKU_SuFnr18xO8BgecYUKsVA0yVQcHqgQ2v8hOSK0sFdYESUnoVRx4iht6BFBpznVbp35iEblcKlvh-w7jynqCeX-Ue1UXf9Lpmq89UzEEPVpC0zSECHkbna4TCDhfXfmIl1ydR0jp9AmwLTh4IfkPVlg904uTRJGfCGiyq5A9ga3qojh-AQfwMFd-yG9lU6Rn7o0ZBiEKyrW7Wtz3mDb98Pi66rIGkHvpPMFXY2VcEZLLp5XCQoAVdirsMv49ogu-uVDyyI1kxoszJowALexYNuuhB6FreHkd1Likttqa2JHGvCRa7DDZ7hfQwZLaYqBVd3ZtNY9_VX_uE_P29detXaofp9d6qDSmnSng4EwpyBcHCU"}]},"isInherited":false},"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"instance_name\": \"\",\n    \"instance_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/v1/aws/ec2/create-instance","description":"<p>The <code>POST /api/v1/register</code> endpoint is used to register a new user. The request should be sent with a form-data body containing the <code>name</code>, <code>email</code>, <code>password</code>, and <code>c_password</code> parameters.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>name</code> (text): The name of the user.</li>\n<li><code>email</code> (text): The email address of the user.</li>\n<li><code>password</code> (text): The password for the user account.</li>\n<li><code>c_password</code> (text): The confirmation of the password.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful registration, the API returns a JSON response with a status code of 200 and the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"\",\n        \"name\": \"\"\n    },\n    \"message\": \"\"\n}\n</code></pre>\n<ul>\n<li><code>success</code> (boolean): Indicates if the registration was successful.</li>\n<li><code>data</code> (object): Contains the user's token and name upon successful registration.</li>\n<li><code>message</code> (string): Any additional message related to the registration process.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","aws","ec2","create-instance"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7cb8536c-2bf4-49c3-88b6-75ce4e4ff511","name":"Register 200 Ok","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiMjZlYzYwYmNiN2QxM2M3Zjc5MDc0OWNlODFkZGYwZjRmMDM3OWY3NTcwZWVhZjhlZWE3ZmQ1ZTIwOGI1NTcwZjZkNmUwMGJlZGM3MmFmN2IiLCJpYXQiOjE3MDYzNjMxNDQuNDA4ODMsIm5iZiI6MTcwNjM2MzE0NC40MDg4MzMsImV4cCI6MTczNzk4NTU0NC4zOTMyNjMsInN1YiI6IjMiLCJzY29wZXMiOltdfQ.UpYAE_Im3MRBxHWacBQ6EdLUoj7n3BMRUDAqs-RVgUKdImlBBI6sBhrJLJcIHDg7zfmu1_JrAJUJL9cQz45jxI8iNsevqgTu77OJVlGfdmR_LV-v7nFVHNL83iMXxlURSWfL_uqMM9X7lfGShr1Y6gHm47ckzdblz4hUQ2CiaeBeoNqXN8NbPik03hEZFo4LDJ4Hnx5LjniEAVzrbxkwKeMOS3T8reK0-khVeDt9RCgRQJi7xkol708XDmz92IH_HDRN0OSfkLs8soyiX4O9ZlszuqTeHTgu4e3zmKsCRl-87qfBFGDGv-xDdPoe4EsclZFdrBCqhSk6SPpKtUKEJZoxlQIHe9LDn30QWI-bqcRCz3BX0lWUOv5r4r8ITeRxf566NfTX61cVAxvQ_vocE0w18fxZJ_VmoxeecFqxdFvICHL2bMuQ0eIEsDsfeRjt65jhkVGioNB5j9E-C4vpZ-Z92oOETVcWdSDWwsPuvlfVxTORkdpxbBm_Ebf34BC7XYlhZkRx1F-n8H8d4e51o8YuZcFdFeEHfTX3b5zbjS5-jX7_klVuNt48rLRj1flpexTXX5pedl5Q-0hn40BFfjp5Ulo2ibKq7J1dCf99qjSfEceP2hp8Kuqt3SrXxa4P11shdD-3f54OyUrNpFuCgEe3RoaTKpm9K555mZ357Ss\",\n        \"name\": \"Pedro Pérez\"\n    },\n    \"message\": \"User register successfully.\"\n}"},{"id":"01e70391-7073-4c57-ab16-09a6a2c1808b","name":"Register 404 This user exists","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"This user exists.\",\n    \"data\": {\n        \"error\": \"The user is already registered\"\n    }\n}"}],"_postman_id":"66c3392e-72de-4d62-8273-c38d481bb2f5"},{"name":"Delete EC2 Instance","event":[{"listen":"test","script":{"id":"42dfda1e-d728-4523-b8dc-6e9cebcef022","exec":[""],"type":"text/javascript","packages":{}}}],"id":"40837ba0-d585-438a-a36f-994c29bbdb4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiYWNiYzE4YjY3OWQ2ZGExNTYyMzcyYjQzYmU3ZjE5ODBkNTMyNDJhNzBlYjBlNmExNGE5NmViZmEwNWYwYjZjNjEyYjcxYzM4ZmIyNzU2YzMiLCJpYXQiOjE2OTk1NTY1NTMuODg1Mjc2LCJuYmYiOjE2OTk1NTY1NTMuODg1Mjc5LCJleHAiOjE3MzExNzg5NTMuODU3NDgxLCJzdWIiOiIzIiwic2NvcGVzIjpbXX0.uQf1fkcuq3IP_mXMUaGM2tb9K3j_ual-KgIO6F6g2vXzV0rlcAyETEby_PrEfme7K5680xvH9pjbLR88pq4Um3Ag7wlhurkq2cuXt95oe0eFv911TumnWPdH4CWffjLexaT8MO7HuTl0Jsr2Am82txEtlg0XhbBLOEOsT1pLsWwDYDhv4IQfqQtwtFekBPx1hhudUCAlVbdAw3IraibMD4cydMwDEeuymNqj-LpEvwKEAnIgFVd9pG1-ETTLArVzLrJWon9nNhRWnvB_j-pMbqIfajKbNy4tkXE4o1HX7RKD1ELexaqfpt7XoPngKU_SuFnr18xO8BgecYUKsVA0yVQcHqgQ2v8hOSK0sFdYESUnoVRx4iht6BFBpznVbp35iEblcKlvh-w7jynqCeX-Ue1UXf9Lpmq89UzEEPVpC0zSECHkbna4TCDhfXfmIl1ydR0jp9AmwLTh4IfkPVlg904uTRJGfCGiyq5A9ga3qojh-AQfwMFd-yG9lU6Rn7o0ZBiEKyrW7Wtz3mDb98Pi66rIGkHvpPMFXY2VcEZLLp5XCQoAVdirsMv49ogu-uVDyyI1kxoszJowALexYNuuhB6FreHkd1Likttqa2JHGvCRa7DDZ7hfQwZLaYqBVd3ZtNY9_VX_uE_P29detXaofp9d6qDSmnSng4EwpyBcHCU"}]},"isInherited":false},"method":"DELETE","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"instanceIds\": [\"i-078e9422ecccbb9f2\"]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/api/v1/aws/ec2/terminate-instance","description":"<p>The <code>POST /api/v1/register</code> endpoint is used to register a new user. The request should be sent with a form-data body containing the <code>name</code>, <code>email</code>, <code>password</code>, and <code>c_password</code> parameters.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li><code>name</code> (text): The name of the user.</li>\n<li><code>email</code> (text): The email address of the user.</li>\n<li><code>password</code> (text): The password for the user account.</li>\n<li><code>c_password</code> (text): The confirmation of the password.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon successful registration, the API returns a JSON response with a status code of 200 and the following structure:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"\",\n        \"name\": \"\"\n    },\n    \"message\": \"\"\n}\n</code></pre>\n<ul>\n<li><code>success</code> (boolean): Indicates if the registration was successful.</li>\n<li><code>data</code> (object): Contains the user's token and name upon successful registration.</li>\n<li><code>message</code> (string): Any additional message related to the registration process.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8000","path":["api","v1","aws","ec2","terminate-instance"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e2175b05-f9c1-4ac7-9d89-b7efed34bfeb","name":"Register 200 Ok","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:45:44 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"data\": {\n        \"token\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiMjZlYzYwYmNiN2QxM2M3Zjc5MDc0OWNlODFkZGYwZjRmMDM3OWY3NTcwZWVhZjhlZWE3ZmQ1ZTIwOGI1NTcwZjZkNmUwMGJlZGM3MmFmN2IiLCJpYXQiOjE3MDYzNjMxNDQuNDA4ODMsIm5iZiI6MTcwNjM2MzE0NC40MDg4MzMsImV4cCI6MTczNzk4NTU0NC4zOTMyNjMsInN1YiI6IjMiLCJzY29wZXMiOltdfQ.UpYAE_Im3MRBxHWacBQ6EdLUoj7n3BMRUDAqs-RVgUKdImlBBI6sBhrJLJcIHDg7zfmu1_JrAJUJL9cQz45jxI8iNsevqgTu77OJVlGfdmR_LV-v7nFVHNL83iMXxlURSWfL_uqMM9X7lfGShr1Y6gHm47ckzdblz4hUQ2CiaeBeoNqXN8NbPik03hEZFo4LDJ4Hnx5LjniEAVzrbxkwKeMOS3T8reK0-khVeDt9RCgRQJi7xkol708XDmz92IH_HDRN0OSfkLs8soyiX4O9ZlszuqTeHTgu4e3zmKsCRl-87qfBFGDGv-xDdPoe4EsclZFdrBCqhSk6SPpKtUKEJZoxlQIHe9LDn30QWI-bqcRCz3BX0lWUOv5r4r8ITeRxf566NfTX61cVAxvQ_vocE0w18fxZJ_VmoxeecFqxdFvICHL2bMuQ0eIEsDsfeRjt65jhkVGioNB5j9E-C4vpZ-Z92oOETVcWdSDWwsPuvlfVxTORkdpxbBm_Ebf34BC7XYlhZkRx1F-n8H8d4e51o8YuZcFdFeEHfTX3b5zbjS5-jX7_klVuNt48rLRj1flpexTXX5pedl5Q-0hn40BFfjp5Ulo2ibKq7J1dCf99qjSfEceP2hp8Kuqt3SrXxa4P11shdD-3f54OyUrNpFuCgEe3RoaTKpm9K555mZ357Ss\",\n        \"name\": \"Pedro Pérez\"\n    },\n    \"message\": \"User register successfully.\"\n}"},{"id":"397a4e23-4a72-4817-a4cc-3bab4792538b","name":"Register 404 This user exists","originalRequest":{"method":"POST","header":[{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Pedro Pérez","type":"text"},{"key":"email","value":"micorreo@dominio.com","type":"text"},{"key":"password","value":"Password12345.","type":"text"},{"key":"c_password","value":"Password12345.","type":"text"}]},"url":"http://localhost:8000/api/v1/register"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Host","value":"localhost:8000"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Date","value":"Sat, 27 Jan 2024 13:46:16 GMT"},{"key":"Connection","value":"close"},{"key":"X-Powered-By","value":"PHP/8.1.2-1ubuntu2.14"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Type","value":"application/json"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Access-Control-Allow-Origin","value":"*"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"This user exists.\",\n    \"data\": {\n        \"error\": \"The user is already registered\"\n    }\n}"}],"_postman_id":"40837ba0-d585-438a-a36f-994c29bbdb4c"}],"id":"57797948-f893-4bbd-8517-e93056102863","_postman_id":"57797948-f893-4bbd-8517-e93056102863","description":""}],"event":[{"listen":"prerequest","script":{"id":"4bb6822a-3c03-4241-84f4-be0dbcd5de41","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e6230134-0c9e-49fe-8dbb-680229f8e1ba","type":"text/javascript","exec":[""]}}],"variable":[{"key":"bearer_token","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIxIiwianRpIjoiYWNiYzE4YjY3OWQ2ZGExNTYyMzcyYjQzYmU3ZjE5ODBkNTMyNDJhNzBlYjBlNmExNGE5NmViZmEwNWYwYjZjNjEyYjcxYzM4ZmIyNzU2YzMiLCJpYXQiOjE2OTk1NTY1NTMuODg1Mjc2LCJuYmYiOjE2OTk1NTY1NTMuODg1Mjc5LCJleHAiOjE3MzExNzg5NTMuODU3NDgxLCJzdWIiOiIzIiwic2NvcGVzIjpbXX0.uQf1fkcuq3IP_mXMUaGM2tb9K3j_ual-KgIO6F6g2vXzV0rlcAyETEby_PrEfme7K5680xvH9pjbLR88pq4Um3Ag7wlhurkq2cuXt95oe0eFv911TumnWPdH4CWffjLexaT8MO7HuTl0Jsr2Am82txEtlg0XhbBLOEOsT1pLsWwDYDhv4IQfqQtwtFekBPx1hhudUCAlVbdAw3IraibMD4cydMwDEeuymNqj-LpEvwKEAnIgFVd9pG1-ETTLArVzLrJWon9nNhRWnvB_j-pMbqIfajKbNy4tkXE4o1HX7RKD1ELexaqfpt7XoPngKU_SuFnr18xO8BgecYUKsVA0yVQcHqgQ2v8hOSK0sFdYESUnoVRx4iht6BFBpznVbp35iEblcKlvh-w7jynqCeX-Ue1UXf9Lpmq89UzEEPVpC0zSECHkbna4TCDhfXfmIl1ydR0jp9AmwLTh4IfkPVlg904uTRJGfCGiyq5A9ga3qojh-AQfwMFd-yG9lU6Rn7o0ZBiEKyrW7Wtz3mDb98Pi66rIGkHvpPMFXY2VcEZLLp5XCQoAVdirsMv49ogu-uVDyyI1kxoszJowALexYNuuhB6FreHkd1Likttqa2JHGvCRa7DDZ7hfQwZLaYqBVd3ZtNY9_VX_uE_P29detXaofp9d6qDSmnSng4EwpyBcHCU","type":"string"}]}