{ "info": { "_postman_id": "3466b7f1-a58a-4e3e-8da1-18c5adb9a117", "name": "DVCSharp Core API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Register User", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"name\": \"Test User\",\n\t\"email\": \"test@test.com\",\n\t\"password\": \"test123\",\n\t\"passwordConfirmation\": \"test123\"\n}" }, "url": { "raw": "http://localhost:5000/api/registrations", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "registrations" ] }, "description": "Register new user" }, "response": [] }, { "name": "List Users", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidGVzdEB0ZXN0LmNvbSIsInJvbGUiOiJVc2VyIiwiZXhwIjoxNTYzNjAzMjg0LCJpc3MiOiJodHRwOi8vbG9jYWxob3N0LmxvY2FsLyIsImF1ZCI6Imh0dHA6Ly9sb2NhbGhvc3QubG9jYWwvIn0.gwmVBsF54alL4FiS7H-7yFEKqjoDHmwH_526BbFgP8k" } ], "url": { "raw": "http://localhost:5000/api/users", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "users" ] } }, "response": [] }, { "name": "Update User", "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidGVzdEB0ZXN0LmNvbSIsInJvbGUiOiJVc2VyIiwiZXhwIjoxNTI2MzgwMzYxLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0LmxvY2FsLyIsImF1ZCI6Imh0dHA6Ly9sb2NhbGhvc3QubG9jYWwvIn0.5ZejCtXrq2vZJJQQxQn2GJ9aeZ2OEi8wuuia6fAAR1Q" }, { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"name\": \"Updated User\",\n\t\"email\": \"updated@updated.com\",\n\t\"password\": \"newpassword\",\n\t\"passwordConfirmation\": \"newpassword\",\n\t\"role\": \"Administrator\"\n}" }, "url": { "raw": "http://localhost:5000/api/users/1", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "users", "1" ] } }, "response": [] }, { "name": "Import Users", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidGVzdEB0ZXN0LmNvbSIsInJvbGUiOiJVc2VyIiwiZXhwIjoxNTI2Mjg3MTMxLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0LmxvY2FsLyIsImF1ZCI6Imh0dHA6Ly9sb2NhbGhvc3QubG9jYWwvIn0.5OOoWWZU26AmHlKOVgbhsQBoJVHQ0h_a0Eli6gfx5jM" } ], "url": { "raw": "http:/localhost:5000/api/users/import?url=http://ifconfig.co", "host": [ "http:" ], "port": "", "path": [ "localhost:5000", "api", "users", "import" ], "query": [ { "key": "url", "value": "http://ifconfig.co" } ] } }, "response": [] }, { "name": "Token Info", "request": { "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidGVzdEB0ZXN0LmNvbSIsInJvbGUiOiJVc2VyIiwiZXhwIjoxNTI2MzgwMzYxLCJpc3MiOiJodHRwOi8vbG9jYWxob3N0LmxvY2FsLyIsImF1ZCI6Imh0dHA6Ly9sb2NhbGhvc3QubG9jYWwvIn0.5ZejCtXrq2vZJJQQxQn2GJ9aeZ2OEi8wuuia6fAAR1Q" } ], "url": { "raw": "http://localhost:5000/api/tokens/tokenInfo", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "tokens", "tokenInfo" ] } }, "response": [] }, { "name": "Delete User", "request": { "method": "DELETE", "header": [], "url": { "raw": "http://localhost:5000/api/users/1", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "users", "1" ] }, "description": "Delete user by id" }, "response": [] }, { "name": "Authorization Request", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"email\": \"test@test.com\",\n\t\"password\": \"test123\"\n}" }, "url": { "raw": "http://localhost:5000/api/authorizations", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "authorizations" ] } }, "response": [] }, { "name": "Authorization Request SSO", "request": { "method": "GET", "header": [ { "key": "Cookie", "value": "sso_ctx=eyAiYXV0aF91c2VyIjogIjgiIH0K" } ], "url": { "raw": "http://localhost:5000/api/authorizations/GetTokenSSO", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "authorizations", "GetTokenSSO" ] } }, "response": [] }, { "name": "Password Reset Request", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"email\": \"test@test.com\"\n}" }, "url": { "raw": "http://localhost:5000/api/passwordresets", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "passwordresets" ] } }, "response": [] }, { "name": "Password Reset", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"key\": \"b642b4217b34b1e8d3bd915fc65c4452\",\n\t\"password\": \"password123\",\n\t\"passwordConfirmation\": \"password123\"\n}" }, "url": { "raw": "http://localhost:5000/api/passwordresets", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "passwordresets" ] } }, "response": [] }, { "name": "List Product", "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "http://localhost:5000/api/products", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "products" ] } }, "response": [] }, { "name": "Export Products", "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "http://localhost:5000/api/products/export", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "products", "export" ] } }, "response": [] }, { "name": "Search Products", "request": { "method": "GET", "header": [ { "key": "Content-Type", "value": "application/json" } ], "url": { "raw": "http://localhost:5000/api/products/export", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "products", "export" ] } }, "response": [] }, { "name": "Import Products", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/xml" } ], "body": { "mode": "raw", "raw": "\n\n \n 1\n Test Product 1\n Test Product Description\n PROD-001\n 0\n \n \n 2\n Test Product 11\n Test Product Description\n PROD-0011\n 100\n \n" }, "url": { "raw": "http://localhost:5000/api/products/import", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "products", "import" ] } }, "response": [] }, { "name": "Create Product", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n\t\"name\": \"Test Product 11\",\n\t\"description\": \"Test Product Description\",\n\t\"skuId\": \"PROD-0011\",\n\t\"unitPrice\": 100\n}" }, "url": { "raw": "http://localhost:5000/api/products", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "products" ] } }, "response": [] }, { "name": "Generic Entity Import", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/xml" } ], "body": { "mode": "raw", "raw": "\n\n \n \t\n\t Test Product 1\n\t Test Product Description\n\t PROD-001\n\t 0\n \n \n \n \t\n \tTest Product 11\n \tTest Product Description\n \tPROD-0011\n \t100\n \n \n" }, "url": { "raw": "http://localhost:5000/api/imports", "protocol": "http", "host": [ "localhost" ], "port": "5000", "path": [ "api", "imports" ] } }, "response": [] } ], "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoidGVzdDFAdGVzdC5jb20iLCJyb2xlIjoiVXNlciIsImV4cCI6MTU2NDA2NDgyNCwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdC5sb2NhbC8iLCJhdWQiOiJodHRwOi8vbG9jYWxob3N0LmxvY2FsLyJ9.CblEHNbmxUYVgZhGRkon6GC4julL7WtZtKF-yIRMh1A", "type": "string" } ] }, "event": [ { "listen": "prerequest", "script": { "id": "ea77644c-558c-4f74-baee-3f9b7f428bf0", "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "id": "900d984f-0d66-4b9b-b52b-37ebf5c2241c", "type": "text/javascript", "exec": [ "" ] } } ] }