{"info":{"_postman_id":"1b14af11-3f43-4760-7ed5-7e22a5ddf2ac","name":"Simple MERN App","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"845602","collectionId":"1b14af11-3f43-4760-7ed5-7e22a5ddf2ac","publishedId":"T1LQfRGk","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-08-16T15:32:33.000Z"},"item":[{"name":"http://localhost:8000/api/users/login","id":"58cced32-6d15-2fed-3488-f34602393679","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"email\":\"test@example.com\",\n\t\"password\":\"test1234\"\n}"},"url":"http://localhost:8000/api/users/login","description":"<h1 id=\"description\">Description</h1>\n<p>Login to the application</p>\n<h1 id=\"example-body\">Example Body</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"email\":\"test@example.com\",\n    \"password\":\"test1234\"\n}\n</code></pre><h1 id=\"example-successful-response\">Example Successful Response</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"status\": true,\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNWYzOTA2MzY1YTFjZWQxYjdkYzg0OGQxIiwiZW1haWwiOiJ0ZXN0QGV4YW1wbGUuY29tIn0sImlhdCI6MTU5NzU5MDM2NSwiZXhwIjoxNTk3NTk3NTY1fQ.IDBQgDh3Ceg5_NAzhlsgiI-wUY4iDg8-y38f8aL5jsI\",\n    \"message\": \"Login successful.\",\n    \"data\": {\n        \"id\": \"5f3906365a1ced1b7dc848d1\",\n        \"firstName\": \"test\",\n        \"lastName\": \"123\",\n        \"email\": \"test@example.com\"\n    }\n}\n</code></pre><h1 id=\"example-failed-response\">Example Failed Response</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"status\": false,\n    \"message\": \"Oops! Couldn't find the Email.Please signup.\",\n    \"data\": {}\n}\n</code></pre>","urlObject":{"protocol":"http","port":"8000","path":["api","users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"58cced32-6d15-2fed-3488-f34602393679"},{"name":"http://localhost:8000/api/users/signup","id":"0d0a48d0-5c6a-a4a4-931e-2a32fd4a5bf7","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"firstName\":\"test\",\n\t\"lastName\":\"123\",\n\t\"email\":\"test2@example.com\",\n\t\"password\":\"test1234\"\n}"},"url":"http://localhost:8000/api/users/signup","description":"<h1 id=\"description\">Description</h1>\n<p>signup to the application</p>\n<h1 id=\"example-body\">Example Body</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"firstName\":\"test\",\n    \"lastName\":\"123\",\n    \"email\":\"test2@example.com\",\n    \"password\":\"test1234\"\n}\n</code></pre><h1 id=\"example-successful-response\">Example Successful Response</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"status\": true,\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoiNWYzOTUwYmUzNmQwMGQ0M2ZlMmI2M2ExIiwiZW1haWwiOiJ0ZXN0NEBleGFtcGxlLmNvbSJ9LCJpYXQiOjE1OTc1OTE3NDIsImV4cCI6MTU5NzU5ODk0Mn0.g9n4uGnklnGvpx3ab7FoXDe1xdi-6yL9b2pkgAV4QSs\",\n    \"message\": \"Signing up successful.\",\n    \"data\": {\n        \"id\": \"5f3950be36d00d43fe2b63a1\",\n        \"firstName\": \"test\",\n        \"lastName\": \"123\",\n        \"email\": \"test@example.com\"\n    }\n}\n</code></pre><h1 id=\"example-failed-response\">Example Failed Response</h1>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"status\": false,\n    \"message\": \"User with this email already exists.Please login.\",\n    \"data\": {}\n}\n</code></pre>","urlObject":{"protocol":"http","port":"8000","path":["api","users","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0d0a48d0-5c6a-a4a4-931e-2a32fd4a5bf7"}]}