{"info":{"_postman_id":"0b13ab80-657b-44b4-bdb9-e1c578055b11","name":"LukasJ JWT","description":"<html><head></head><body><p>LukasJ Server with JWT toekn authentication</p>\n<p>Unprotected routes: register, login\nAll the other routes are protceted and neet the token in the body</p>\n<p>Restful routes path prefix: /api</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"4048873","collectionId":"0b13ab80-657b-44b4-bdb9-e1c578055b11","publishedId":"RVu4HASS","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-04-08T08:29:20.000Z"},"item":[{"name":"/api/login","id":"16505ebf-2b1e-43d5-90b6-769805ec446e","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"user\":\"rod001\",\n\"password\":\"admin\"\n}"},"url":"http://192.168.185.181:3000/api/login","description":"<p>Unprotected route to get token based on user/password\nThe user should be registered on the database</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","login"],"host":["192","168","185","181"],"query":[],"variable":[]}},"response":[],"_postman_id":"16505ebf-2b1e-43d5-90b6-769805ec446e"},{"name":"/api/register","id":"5b7886cf-914f-4603-8d43-644968939b25","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"name\":\"rod001\",\n\"role\":\"test\"\n}"},"url":"http://192.168.185.181:3000/api/register","description":"<p>Register a user/role returning the token</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","register"],"host":["192","168","185","181"],"query":[],"variable":[]}},"response":[],"_postman_id":"5b7886cf-914f-4603-8d43-644968939b25"},{"name":"/api/manager (no token)","id":"1a6e7e66-1c37-4e4c-8de9-d2505b5d8b53","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\"user\":\"rod001\",\n\"password\":\"admin\"\n}"},"url":"http://192.168.185.181:3000/api/manager","description":"<p>Example of a call to the /api/manager route without specifying the token in the header</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","manager"],"host":["192","168","185","181"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a6e7e66-1c37-4e4c-8de9-d2505b5d8b53"},{"name":"/api/manager","id":"1806d5cb-9b97-4c9f-b08d-66a2e7ebedeb","request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\"user\":\"rod001\",\n\"password\":\"admin\"\n}"},"url":"http://192.168.185.181:3000/api/manager","description":"<p>Example of a call to the /api/manager route with the generated token in the header.</p>\n<p>This API shows the entire content of the manager collection of the MongoDB</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","manager"],"host":["192","168","185","181"],"query":[],"variable":[]}},"response":[],"_postman_id":"1806d5cb-9b97-4c9f-b08d-66a2e7ebedeb"}],"event":[{"listen":"prerequest","script":{"id":"c1368708-f9ad-4693-8260-7efe80299122","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e186ac50-4d5f-47db-bdc1-a88ef71cf74e","type":"text/javascript","exec":[""]}}]}