diff --git a/Prepack.postman_collection.json b/Prepack.postman_collection.json index e68a644..2f75c16 100644 --- a/Prepack.postman_collection.json +++ b/Prepack.postman_collection.json @@ -6,200 +6,290 @@ }, "item": [ { - "name": "V1 Doot", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "localhost:9091/v1/doot", - "host": [ - "localhost" - ], - "port": "9091", - "path": [ - "v1", - "doot" - ] - } - }, - "response": [] - }, - { - "name": "V1 Secured Doot", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "localhost:9091/v1/sec/doot", - "host": [ - "localhost" - ], - "port": "9091", - "path": [ - "v1", - "sec", - "doot" - ] - } - }, - "response": [] - }, - { - "name": "V1 Admin Doot", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "localhost:9091/v1/adm/doot", - "host": [ - "localhost" - ], - "port": "9091", - "path": [ - "v1", - "adm", - "doot" - ] - } - }, - "response": [] - }, - { - "name": "V1 Signup", - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userkey\": \"newser@user.com\",\n \"password\": \"NewPass\"\n}", - "options": { - "raw": { - "language": "json" + "name": "Unauthenticated", + "item": [ + { + "name": "V1 Doot", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:9091/v1/doot", + "host": [ + "localhost" + ], + "port": "9091", + "path": [ + "v1", + "doot" + ] } - } + }, + "response": [] }, - "url": { - "raw": "localhost:9091/v1/signup", - "host": [ - "localhost" - ], - "port": "9091", - "path": [ - "v1", - "signup" - ] - } - }, - "response": [] - }, - { - "name": "V1 User Login", - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userkey\": \"newser@user.com\",\n \"password\": \"ChangedPass\"\n}", - "options": { - "raw": { - "language": "json" + { + "name": "V1 Signup", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userkey\": \"newser@user.com\",\n \"password\": \"NewPass\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:9091/v1/signup", + "host": [ + "localhost" + ], + "port": "9091", + "path": [ + "v1", + "signup" + ] } - } + }, + "response": [] }, - "url": { - "raw": "localhost:9091/v1/login", - "host": [ - "localhost" - ], - "port": "9091", - "path": [ - "v1", - "login" - ] - } - }, - "response": [] - }, - { - "name": "V1 User Verify", - "request": { - "method": "GET", - "header": [], - "url": { - "raw": "localhost:9091/v1/verify?verify=TOKEN", - "host": [ - "localhost" - ], - "port": "9091", - "path": [ - "v1", - "verify" - ], - "query": [ - { - "key": "verify", - "value": "TOKEN" + { + "name": "V1 User Forgot Password", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userkey\": \"newser@user.com\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:9091/v1/forgot", + "host": [ + "localhost" + ], + "port": "9091", + "path": [ + "v1", + "forgot" + ] } - ] - } - }, - "response": [] - }, - { - "name": "V1 User Forgot Password", - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"userkey\": \"newser@user.com\"\n}", - "options": { - "raw": { - "language": "json" - } - } + }, + "response": [] }, - "url": { - "raw": "localhost:9091/v1/forgot", - "host": [ - "localhost" - ], - "port": "9091", - "path": [ - "v1", - "forgot" - ] + { + "name": "V1 User Reset Password", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NTE0MjYzMjYsImlhdCI6MTY1MTQyNTQyNiwicm9sZSI6InJlc2V0Iiwic3ViIjoiZDFkNDBkMmUtOTFlYy00ZTBiLWEzY2EtM2U1ZTBkNGU5MTkxIn0.NE_0oV5MGJzuQuad-TUen1c7VCfFW9t6LMJPag8XC38\",\n \"password\": \"ChangedPass\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:9091/v1/reset", + "host": [ + "localhost" + ], + "port": "9091", + "path": [ + "v1", + "reset" + ] + } + }, + "response": [] + }, + { + "name": "V1 User Login", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userkey\": \"newser@user.com\",\n \"password\": \"ChangedPass\",\n \"twofactorcode\": \"393939\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:9091/v1/login", + "host": [ + "localhost" + ], + "port": "9091", + "path": [ + "v1", + "login" + ] + } + }, + "response": [] + }, + { + "name": "V1 User Verify", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:9091/v1/verify?verify=TOKEN", + "host": [ + "localhost" + ], + "port": "9091", + "path": [ + "v1", + "verify" + ], + "query": [ + { + "key": "verify", + "value": "TOKEN" + } + ] + } + }, + "response": [] + }, + { + "name": "V1 Admin Login", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userkey\": \"admin@admin.invalid\",\n \"password\": \"PASS_WOOOORD\",\n \"twofactorcode\": \"057192\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:9091/v1/admin", + "host": [ + "localhost" + ], + "port": "9091", + "path": [ + "v1", + "admin" + ] + } + }, + "response": [] + }, + { + "name": "Fresh Admin", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userkey\": \"admin@admin.invalid\",\n \"password\": \"q7irwc34h6rv4t34v\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:9091/{UUID}", + "host": [ + "localhost" + ], + "port": "9091", + "path": [ + "{UUID}" + ] + } + }, + "response": [] } - }, - "response": [] + ] }, { - "name": "V1 User Reset Password", - "request": { - "method": "POST", - "header": [], - "body": { - "mode": "raw", - "raw": "{\n \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NTE0MjYzMjYsImlhdCI6MTY1MTQyNTQyNiwicm9sZSI6InJlc2V0Iiwic3ViIjoiZDFkNDBkMmUtOTFlYy00ZTBiLWEzY2EtM2U1ZTBkNGU5MTkxIn0.NE_0oV5MGJzuQuad-TUen1c7VCfFW9t6LMJPag8XC38\",\n \"password\": \"ChangedPass\"\n}", - "options": { - "raw": { - "language": "json" + "name": "/sec (User)", + "item": [ + { + "name": "V1 Secured Doot", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:9091/v1/sec/doot", + "host": [ + "localhost" + ], + "port": "9091", + "path": [ + "v1", + "sec", + "doot" + ] } - } + }, + "response": [] }, - "url": { - "raw": "localhost:9091/v1/reset", - "host": [ - "localhost" - ], - "port": "9091", - "path": [ - "v1", - "reset" - ] + { + "name": "V1 Secured Doot Copy", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:9091/v1/sec/2fa-doot", + "host": [ + "localhost" + ], + "port": "9091", + "path": [ + "v1", + "sec", + "2fa-doot" + ] + } + }, + "response": [] } - }, - "response": [] + ] + }, + { + "name": "/adm (Admin)", + "item": [ + { + "name": "V1 Admin Doot", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:9091/v1/adm/doot", + "host": [ + "localhost" + ], + "port": "9091", + "path": [ + "v1", + "adm", + "doot" + ] + } + }, + "response": [] + } + ] } ] } \ No newline at end of file