{"info":{"_postman_id":"5b3b24fc-6efb-42e8-b818-01218c3a986a","name":"Gobook","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"3808786","collectionId":"5b3b24fc-6efb-42e8-b818-01218c3a986a","publishedId":"SzYevFGV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-04-09T08:17:06.000Z"},"item":[{"name":"Authentication","item":[{"name":"Register User","id":"7e925c13-eb6c-4791-9c73-875965780604","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"yusriltakeuchi\",\n\t\"password\": \"123456\",\n\t\"email\": \"yusriltakeuchi@gmail.com\",\n\t\"name\": \"yusriltakeuchi\",\n\t\"phone\": \"083872189303\",\n\t\"city\": \"Jakarta\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/v1/auth/register","urlObject":{"protocol":"http","port":"8080","path":["v1","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"06d84520-563d-4e37-b964-29f9b5bb0500","name":"Register User","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"yuranitakeuchi\",\n\t\"password\": \"123456\",\n\t\"email\": \"yuranitakeuchi@gmail.com\",\n\t\"name\": \"yuranitakeuchi\",\n\t\"phone\": \"083872189303\",\n\t\"city\": \"Jakarta\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/v1/auth/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Thu, 09 Apr 2020 07:23:06 GMT"},{"key":"Content-Length","value":"419"},{"key":"Content-Type","value":"text/plain; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\"data\":{\"id\":1,\"username\":\"yuranitakeuchi\",\"password\":\"$2a$14$mb1g8FlS.ah2UM41HOOKfOBIB2pDD76vC5zJs0ETpIbjyUwtvrYFK\",\"email\":\"yuranitakeuchi@gmail.com\",\"unique_key\":\"XVlBzgbaiC\",\"Profile\":{\"id\":1,\"name\":\"yuranitakeuchi\",\"phone\":\"083872189303\",\"city\":\"Jakarta\",\"user_id\":1},\"created_at\":\"2020-04-09T14:23:06.704665+07:00\",\"updated_at\":\"2020-04-09T14:23:06.704665+07:00\"},\"message\":\"Successfully registerd\",\"status\":201}"}],"_postman_id":"7e925c13-eb6c-4791-9c73-875965780604"},{"name":"Login User","id":"9a934422-e9a6-4058-962a-97981bdbb3a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"yuranitakeuchi\",\n\t\"password\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/v1/auth/login","urlObject":{"protocol":"http","port":"8080","path":["v1","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1107a2ee-890c-4ed7-8386-47e41221dfbf","name":"Login User","originalRequest":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\n\t\"username\": \"yusril\",\n\t\"password\": \"123456\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/v1/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Wed, 08 Apr 2020 07:11:19 GMT"},{"key":"Content-Length","value":"258"},{"key":"Content-Type","value":"text/plain; charset=utf-8"}],"cookie":[],"responseTime":null,"body":"{\"data\":{\"expired_time\":1586589079,\"token\":\"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODY1ODkwNzksInVuaXF1ZV9rZXkiOiJYVmxCemdiYWlDIiwidXNlcm5hbWUiOiJ5dXNyaWwifQ.HfI7IFbmJ_5UKqB54R9ncP5_Clix8puCPi_VodINWKc\"},\"message\":\"Successfully login\",\"status\":200}"}],"_postman_id":"9a934422-e9a6-4058-962a-97981bdbb3a7"},{"name":"Logout Users","id":"7ac5e41c-36d4-4ea5-9364-a83f0ae064aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","value":"Bearer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODY2ODAwNjAsInVuaXF1ZV9rZXkiOiJ0Y3VBeGh4S1FGIiwidXNlcm5hbWUiOiJ5dXNyaWx0YWtldWNoaSJ9.vAxQhOSdUnXpvvsxqtr3dOw3tXv-erY7a_raVRvoyWs","type":"text"}],"url":"http://localhost:8080/v1/auth/logout","urlObject":{"protocol":"http","port":"8080","path":["v1","auth","logout"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7ac5e41c-36d4-4ea5-9364-a83f0ae064aa"}],"id":"db4c80ac-65d1-4ecc-a4a3-c3deca8c0530","_postman_id":"db4c80ac-65d1-4ecc-a4a3-c3deca8c0530","description":""},{"name":"Book","item":[{"name":"Create Books","id":"8d42c490-2954-4c98-bc9c-8aa9e00b7d1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODY2ODAwNjAsInVuaXF1ZV9rZXkiOiJ0Y3VBeGh4S1FGIiwidXNlcm5hbWUiOiJ5dXNyaWx0YWtldWNoaSJ9.vAxQhOSdUnXpvvsxqtr3dOw3tXv-erY7a_raVRvoyWs","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"title\": \"Doraemon Adventure in MoodLand\",\n\t\"description\": \"Menceritakan kisah doraemon berada di bulan\",\n\t\"genre\": \"Fantasi\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/v1/books","urlObject":{"protocol":"http","port":"8080","path":["v1","books"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8e791a88-2091-473b-b504-e56499800060","name":"Create Books","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODY2ODAwNjAsInVuaXF1ZV9rZXkiOiJ0Y3VBeGh4S1FGIiwidXNlcm5hbWUiOiJ5dXNyaWx0YWtldWNoaSJ9.vAxQhOSdUnXpvvsxqtr3dOw3tXv-erY7a_raVRvoyWs","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"title\": \"Doraemon Adventure in MoodLand\",\n\t\"description\": \"Menceritakan kisah doraemon berada di bulan\",\n\t\"genre\": \"Fantasi\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/v1/books"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 08 Apr 2020 07:13:22 GMT"},{"key":"Content-Length","value":"283"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": 12,\n        \"title\": \"Doraemon Adventure in MoodLand\",\n        \"description\": \"Menceritakan kisah doraemon berada di bulan\",\n        \"genre\": \"Fantasi\",\n        \"created_at\": \"2020-04-08T14:13:22.502797+07:00\",\n        \"updated_at\": \"2020-04-08T14:13:22.502797+07:00\"\n    },\n    \"message\": \"Successfully create book\",\n    \"status\": 201\n}"}],"_postman_id":"8d42c490-2954-4c98-bc9c-8aa9e00b7d1a"},{"name":"Get Books","id":"2865bee3-d88d-4bcf-bddf-793dc84d056c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODY2ODAwNjAsInVuaXF1ZV9rZXkiOiJ0Y3VBeGh4S1FGIiwidXNlcm5hbWUiOiJ5dXNyaWx0YWtldWNoaSJ9.vAxQhOSdUnXpvvsxqtr3dOw3tXv-erY7a_raVRvoyWs","type":"text"}],"url":"http://localhost:8080/v1/books?p=0","urlObject":{"protocol":"http","port":"8080","path":["v1","books"],"host":["localhost"],"query":[{"key":"p","value":"0"}],"variable":[]}},"response":[{"id":"b9b22e84-b3fe-441c-8d45-ad54732f86e9","name":"Get Books","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODY2ODAwNjAsInVuaXF1ZV9rZXkiOiJ0Y3VBeGh4S1FGIiwidXNlcm5hbWUiOiJ5dXNyaWx0YWtldWNoaSJ9.vAxQhOSdUnXpvvsxqtr3dOw3tXv-erY7a_raVRvoyWs","type":"text"}],"url":{"raw":"http://localhost:8080/v1/books?p=0","protocol":"http","host":["localhost"],"port":"8080","path":["v1","books"],"query":[{"key":"p","value":"0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 08 Apr 2020 07:13:35 GMT"},{"key":"Content-Length","value":"502"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 10,\n            \"title\": \"Fantastic Beast And Where To Find Them\",\n            \"description\": \"Menceritakan kisah dunia sihir sebelum Harry Potter lahir\",\n            \"genre\": \"Fantasi\",\n            \"created_at\": \"2020-04-08T09:42:37+07:00\",\n            \"updated_at\": \"2020-04-08T09:42:37+07:00\"\n        },\n        {\n            \"id\": 12,\n            \"title\": \"Doraemon Adventure in MoodLand\",\n            \"description\": \"Menceritakan kisah doraemon berada di bulan\",\n            \"genre\": \"Fantasi\",\n            \"created_at\": \"2020-04-08T14:13:22+07:00\",\n            \"updated_at\": \"2020-04-08T14:13:22+07:00\"\n        }\n    ],\n    \"message\": \"Successfully get books\",\n    \"status\": 200\n}"}],"_postman_id":"2865bee3-d88d-4bcf-bddf-793dc84d056c"},{"name":"Delete books","id":"2f46fd77-acbe-4977-84c2-3103ab8e36cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODY2ODAwNjAsInVuaXF1ZV9rZXkiOiJ0Y3VBeGh4S1FGIiwidXNlcm5hbWUiOiJ5dXNyaWx0YWtldWNoaSJ9.vAxQhOSdUnXpvvsxqtr3dOw3tXv-erY7a_raVRvoyWs"}],"url":"http://localhost:8080/v1/books/15","urlObject":{"protocol":"http","port":"8080","path":["v1","books","15"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0972bbbd-b655-41ac-8b39-78da5e6006d4","name":"Delete books","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODY2ODAwNjAsInVuaXF1ZV9rZXkiOiJ0Y3VBeGh4S1FGIiwidXNlcm5hbWUiOiJ5dXNyaWx0YWtldWNoaSJ9.vAxQhOSdUnXpvvsxqtr3dOw3tXv-erY7a_raVRvoyWs"}],"body":{"mode":"raw","raw":"{\n\t\"title\": \"Fantastic Beast And Where To Find Them\",\n\t\"description\": \"Menceritakan kisah dunia sihir sebelum Harry Potter lahir\",\n\t\"genre\": \"Fantasi\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/v1/books/13"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 08 Apr 2020 07:14:06 GMT"},{"key":"Content-Length","value":"63"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": null,\n    \"message\": \"Successfully delete book\",\n    \"status\": 200\n}"}],"_postman_id":"2f46fd77-acbe-4977-84c2-3103ab8e36cc"},{"name":"Update Book","id":"84e23636-9294-4b3b-83ac-2aae27060297","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODY2ODAwNjAsInVuaXF1ZV9rZXkiOiJ0Y3VBeGh4S1FGIiwidXNlcm5hbWUiOiJ5dXNyaWx0YWtldWNoaSJ9.vAxQhOSdUnXpvvsxqtr3dOw3tXv-erY7a_raVRvoyWs","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"title\": \"Doraemon Adventure in MoodLandzz\",\n\t\"description\": \"Menceritakan kisah doraemon berada di bulan\",\n\t\"genre\": \"Fantasi\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/v1/books/12","urlObject":{"protocol":"http","port":"8080","path":["v1","books","12"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3eb78b46-0c41-4f94-88b0-7c456c266924","name":"Update Book","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODY2ODAwNjAsInVuaXF1ZV9rZXkiOiJ0Y3VBeGh4S1FGIiwidXNlcm5hbWUiOiJ5dXNyaWx0YWtldWNoaSJ9.vAxQhOSdUnXpvvsxqtr3dOw3tXv-erY7a_raVRvoyWs","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"title\": \"Doraemon Adventure in MoodLandzz\",\n\t\"description\": \"Menceritakan kisah doraemon berada di bulan\",\n\t\"genre\": \"Fantasi\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/v1/books/12"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Wed, 08 Apr 2020 07:14:40 GMT"},{"key":"Content-Length","value":"278"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": 12,\n        \"title\": \"Doraemon Adventure in MoodLandzz\",\n        \"description\": \"Menceritakan kisah doraemon berada di bulan\",\n        \"genre\": \"Fantasi\",\n        \"created_at\": \"2020-04-08T14:13:22+07:00\",\n        \"updated_at\": \"2020-04-08T14:14:40.422521+07:00\"\n    },\n    \"message\": \"Successfully update book\",\n    \"status\": 200\n}"}],"_postman_id":"84e23636-9294-4b3b-83ac-2aae27060297"}],"id":"39948f36-a5c4-4cd3-b35d-6d7054f032df","_postman_id":"39948f36-a5c4-4cd3-b35d-6d7054f032df","description":""},{"name":"Users","item":[{"name":"Get Profile","id":"db3a4474-0663-474f-a2c0-958b39d53dbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODY2ODAwNjAsInVuaXF1ZV9rZXkiOiJ0Y3VBeGh4S1FGIiwidXNlcm5hbWUiOiJ5dXNyaWx0YWtldWNoaSJ9.vAxQhOSdUnXpvvsxqtr3dOw3tXv-erY7a_raVRvoyWs"}],"url":"http://localhost:8080/v1/user/profile","urlObject":{"protocol":"http","port":"8080","path":["v1","user","profile"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a47b5484-d852-4fb9-aba5-5f5bb3e98781","name":"Get Profile","originalRequest":{"method":"GET","header":[{"key":"Content-Type","type":"text","value":"application/json"},{"key":"Accept","type":"text","value":"application/json"},{"key":"Authorization","type":"text","value":"Bearer: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODY2ODAwNjAsInVuaXF1ZV9rZXkiOiJ0Y3VBeGh4S1FGIiwidXNlcm5hbWUiOiJ5dXNyaWx0YWtldWNoaSJ9.vAxQhOSdUnXpvvsxqtr3dOw3tXv-erY7a_raVRvoyWs"}],"url":"http://localhost:8080/v1/user/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Thu, 09 Apr 2020 08:08:54 GMT"},{"key":"Content-Length","value":"407"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": {\n        \"id\": 1,\n        \"username\": \"yuranitakeuchi\",\n        \"password\": \"$2a$14$mb1g8FlS.ah2UM41HOOKfOBIB2pDD76vC5zJs0ETpIbjyUwtvrYFK\",\n        \"email\": \"yuranitakeuchi@gmail.com\",\n        \"unique_key\": \"XVlBzgbaiC\",\n        \"profile\": {\n            \"id\": 1,\n            \"name\": \"yuranitakeuchi\",\n            \"phone\": \"083872189303\",\n            \"city\": \"Jakarta\",\n            \"user_id\": 1\n        },\n        \"created_at\": \"2020-04-09T14:23:06+07:00\",\n        \"updated_at\": \"2020-04-09T14:23:06+07:00\"\n    },\n    \"message\": \"Successfully get profile\",\n    \"status\": 200\n}"}],"_postman_id":"db3a4474-0663-474f-a2c0-958b39d53dbb"}],"id":"24dc42b4-9df1-4965-9c31-34a794300cf8","_postman_id":"24dc42b4-9df1-4965-9c31-34a794300cf8","description":""}],"event":[{"listen":"prerequest","script":{"id":"7cf36677-f1e9-4748-b18b-e1615c36180b","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"df518b92-beae-4ba0-a9fb-68a52d0b7218","type":"text/javascript","exec":[""]}}],"variable":[{"key":"token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1ODY2ODAwNjAsInVuaXF1ZV9rZXkiOiJ0Y3VBeGh4S1FGIiwidXNlcm5hbWUiOiJ5dXNyaWx0YWtldWNoaSJ9.vAxQhOSdUnXpvvsxqtr3dOw3tXv-erY7a_raVRvoyWs"}]}