{"id":"2234fe3e-3c0c-5b1a-51b1-991e155dc616","name":"User registration API","description":"API to enable user creates and logins. \nHas sample responses created by `https://mockable.io`.\nChange the environment to the prod environment before \nyou use it in your application.\n\nTo run the mocking service, create an environment and \nset the `url` variable to `https://demo0902809.mockable.io`.","order":["eeaa42cc-bd51-912e-29d9-792ff7b50f1c","2904d91a-7074-4592-efac-170b2aaad763"],"folders":[],"timestamp":0,"owner":"25888","remoteLink":"https://www.getpostman.com/collections/f7d6273cc64fffa86871","public":false,"requests":[{"id":"2904d91a-7074-4592-efac-170b2aaad763","headers":"Content-Type: application/json\nCache-Control: no-cache\nPostman-Token: fc05c676-d009-1077-d65e-d4ebf9f312fd\n","url":"{{url}}/login?type=failure","preRequestScript":"","pathVariables":{},"method":"POST","data":[],"dataMode":"raw","version":2,"tests":"","currentHelper":"normal","helperAttributes":{},"time":1453799178425,"name":"Successful Login","description":"Successfully logs a user in","collectionId":"2234fe3e-3c0c-5b1a-51b1-991e155dc616","responses":[{"status":"","responseCode":{"code":200,"name":"OK"},"time":497,"headers":[{"name":"access-control-allow-origin","key":"access-control-allow-origin","value":"*","description":""},{"name":"alt-svc","key":"alt-svc","value":"quic=\":443\"; ma=604800; v=\"30,29,28,27,26,25\"","description":""},{"name":"cache-control","key":"cache-control","value":"private","description":""},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":""},{"name":"content-length","key":"content-length","value":"113","description":""},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":""},{"name":"date","key":"date","value":"Tue, 26 Jan 2016 08:52:37 GMT","description":""},{"name":"server","key":"server","value":"Google Frontend","description":""},{"name":"status","key":"status","value":"200","description":""},{"name":"vary","key":"vary","value":"Accept-Encoding","description":""}],"cookies":[],"mime":"","text":"{\n\t\"status\":\"success\",\n\t\"access_token\": \"aYEM6b51XPlRPifcKN6lLmGzOt6fD8iC\",\n\t\"expiry\": 1454627203175\n}","language":"javascript","rawDataType":"text","state":{"size":"normal"},"previewType":"html","searchResultScrolledTo":-1,"forceNoPretty":false,"write":true,"empty":false,"failed":false,"isSample":true,"scrollToResult":true,"runTests":true,"id":"5ca38aa3-3d86-39b8-2dfd-009797899307","name":"successful login","request":{"url":"https://demo0902809.mockable.io/login?type=success","headers":[{"key":"Content-Type","value":"application/json","name":"Content-Type","enabled":true},{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","enabled":true},{"key":"Postman-Token","type":"text","name":"Postman-Token","value":"d8bc9af3-420a-46ed-5a01-05f18c517270"}],"data":"{\n    \"username\": \"postman-test-user\",\n    \"password\": \"la62n0a63b\"\n}","method":"POST","dataMode":"raw"}},{"status":"","responseCode":{"code":200,"name":"OK","detail":"Standard response for successful HTTP requests. The actual response will depend on the request method used. In a GET request, the response will contain an entity corresponding to the requested resource. In a POST request the response will contain an entity describing or containing the result of the action."},"time":1598,"headers":[{"name":"access-control-allow-origin","key":"access-control-allow-origin","value":"*","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"name":"alt-svc","key":"alt-svc","value":"quic=\":443\"; ma=604800; v=\"30,29,28,27,26,25\"","description":"Custom header"},{"name":"cache-control","key":"cache-control","value":"private","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":"The type of encoding used on the data."},{"name":"content-length","key":"content-length","value":"86","description":"The length of the response body in octets (8-bit bytes)"},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":"The mime type of this content"},{"name":"date","key":"date","value":"Tue, 26 Jan 2016 08:52:52 GMT","description":"The date and time that the message was sent"},{"name":"server","key":"server","value":"Google Frontend","description":"A name for the server"},{"name":"status","key":"status","value":"200","description":"Custom header"},{"name":"vary","key":"vary","value":"Accept-Encoding","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."}],"cookies":[],"mime":"","text":"{\n\t\"status\": \"failure\",\n\t\"message\": \"Incorrect username or password\"\n}","language":"javascript","rawDataType":"text","state":{"size":"normal"},"previewType":"html","searchResultScrolledTo":-1,"forceNoPretty":false,"write":true,"empty":false,"failed":false,"isSample":true,"scrollToResult":true,"runTests":true,"id":"0310e6e4-8ecf-3677-186c-15648fb0e382","name":"failed login","request":{"url":"https://demo0902809.mockable.io/login?type=failure","headers":[{"key":"Content-Type","value":"application/json","name":"Content-Type","enabled":true},{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","enabled":true},{"key":"Postman-Token","type":"text","name":"Postman-Token","value":"fc05c676-d009-1077-d65e-d4ebf9f312fd"}],"data":"{\n    \"username\": \"postman-test-user\",\n    \"password\": \"la62n0a63b\"\n}","method":"POST","dataMode":"raw"}}],"rawModeData":"{\n    \"username\": \"postman-test-user\",\n    \"password\": \"la62n0a63b\"\n}"},{"id":"eeaa42cc-bd51-912e-29d9-792ff7b50f1c","headers":"Content-Type: application/json\nCache-Control: no-cache\nPostman-Token: 018eae58-fa3d-642c-57c0-500f9896aa7a\n","url":"{{url}}/user?type=success","preRequestScript":"","pathVariables":{},"method":"POST","data":[],"dataMode":"raw","version":2,"tests":"","currentHelper":"normal","helperAttributes":{},"time":1453799016538,"name":"Successful Signup","description":"Successfully creates a new user","collectionId":"2234fe3e-3c0c-5b1a-51b1-991e155dc616","responses":[{"status":"","responseCode":{"code":200,"name":"OK","detail":"Standard response for successful HTTP requests. The actual response will depend on the request method used. In a GET request, the response will contain an entity corresponding to the requested resource. In a POST request the response will contain an entity describing or containing the result of the action."},"time":1290,"headers":[{"name":"access-control-allow-origin","key":"access-control-allow-origin","value":"*","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"name":"alt-svc","key":"alt-svc","value":"quic=\":443\"; ma=604800; v=\"30,29,28,27,26,25\"","description":"Custom header"},{"name":"cache-control","key":"cache-control","value":"private","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":"The type of encoding used on the data."},{"name":"content-length","key":"content-length","value":"135","description":"The length of the response body in octets (8-bit bytes)"},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8, application/json","description":"The mime type of this content"},{"name":"date","key":"date","value":"Tue, 26 Jan 2016 09:03:56 GMT","description":"The date and time that the message was sent"},{"name":"server","key":"server","value":"Google Frontend","description":"A name for the server"},{"name":"status","key":"status","value":"200","description":"Custom header"},{"name":"vary","key":"vary","value":"Accept-Encoding","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."}],"cookies":[],"mime":"","text":"{\n\t\"status\": \"success\",\n\t\"data\": {\n\t    \"username\": \"postman-test-user\",\n\t    \"access-token\": \"zOLXPlRPifcKmft61N6lDaYEM6b5G8iC\"\n\t}\n}","language":"javascript","rawDataType":"text","state":{"size":"normal"},"previewType":"html","searchResultScrolledTo":-1,"forceNoPretty":false,"write":true,"empty":false,"failed":false,"isSample":true,"scrollToResult":true,"runTests":true,"id":"d9d4d1ed-3dc3-158b-54b8-bcfd7a04b9b6","name":"successful signup","request":{"url":"https://demo0902809.mockable.io/user?type=success","headers":[{"key":"Content-Type","value":"application/json","name":"Content-Type","enabled":true},{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","enabled":true},{"key":"Postman-Token","type":"text","name":"Postman-Token","value":"88a1f7e8-1b46-2048-9671-936fdd15e595"}],"data":"{\n    \"username\": \"postman-test-user\",\n    \"password\": \"la62n0a63b\",\n    \"email\": \"postman-test@mycompany.com\"\n}","method":"POST","dataMode":"raw"}},{"status":"","responseCode":{"code":200,"name":"OK","detail":"Standard response for successful HTTP requests. The actual response will depend on the request method used. In a GET request, the response will contain an entity corresponding to the requested resource. In a POST request the response will contain an entity describing or containing the result of the action."},"time":1241,"headers":[{"name":"access-control-allow-origin","key":"access-control-allow-origin","value":"*","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"name":"alt-svc","key":"alt-svc","value":"quic=\":443\"; ma=604800; v=\"30,29,28,27,26,25\"","description":"Custom header"},{"name":"cache-control","key":"cache-control","value":"private","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"name":"content-encoding","key":"content-encoding","value":"gzip","description":"The type of encoding used on the data."},{"name":"content-length","key":"content-length","value":"80","description":"The length of the response body in octets (8-bit bytes)"},{"name":"content-type","key":"content-type","value":"application/json; charset=UTF-8","description":"The mime type of this content"},{"name":"date","key":"date","value":"Tue, 26 Jan 2016 09:04:19 GMT","description":"The date and time that the message was sent"},{"name":"server","key":"server","value":"Google Frontend","description":"A name for the server"},{"name":"status","key":"status","value":"200","description":"Custom header"},{"name":"vary","key":"vary","value":"Accept-Encoding","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."}],"cookies":[],"mime":"","text":"{\n  \"status\": \"failure\",\n  \"message\": \"Username already exists\"\n}","language":"javascript","rawDataType":"text","state":{"size":"normal"},"previewType":"html","searchResultScrolledTo":-1,"forceNoPretty":false,"write":true,"empty":false,"failed":false,"isSample":true,"scrollToResult":true,"runTests":true,"id":"417693cb-153c-b071-bc65-c1f028f48633","name":"failed signup","request":{"url":"https://demo0902809.mockable.io/user?type=failure","headers":[{"key":"Content-Type","value":"application/json","name":"Content-Type","enabled":true},{"key":"Cache-Control","value":"no-cache","name":"Cache-Control","enabled":true},{"key":"Postman-Token","type":"text","name":"Postman-Token","value":"ebb37d48-c5c8-ce67-10ab-2443eb606d39"}],"data":"{\n    \"username\": \"postman-test-user\",\n    \"password\": \"la62n0a63b\",\n    \"email\": \"postman-test@mycompany.com\"\n}","method":"POST","dataMode":"raw"}}],"rawModeData":"{\n    \"username\": \"postman-test-user\",\n    \"password\": \"la62n0a63b\",\n    \"email\": \"postman-test@mycompany.com\"\n}"}]}