|
1 | 1 | {
|
2 | 2 | "info": {
|
3 |
| - "_postman_id": "2e0a1b99-3cb9-4c77-a562-7e6fe4956358", |
| 3 | + "_postman_id": "49981b6e-f611-4016-999e-737ef4103435", |
4 | 4 | "name": "Project API",
|
5 | 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
6 | 6 | },
|
|
5837 | 5837 | ],
|
5838 | 5838 | "protocolProfileBehavior": {}
|
5839 | 5839 | },
|
| 5840 | + { |
| 5841 | + "name": "Org Config", |
| 5842 | + "item": [ |
| 5843 | + { |
| 5844 | + "name": "Create org config", |
| 5845 | + "event": [ |
| 5846 | + { |
| 5847 | + "listen": "test", |
| 5848 | + "script": { |
| 5849 | + "id": "fbc45946-a3f2-433a-8ec5-0af82b69d2bd", |
| 5850 | + "exec": [ |
| 5851 | + "pm.test(\"Status code is 201\", function () {", |
| 5852 | + " pm.response.to.have.status(201);", |
| 5853 | + " console.log(pm.response.json())", |
| 5854 | + " pm.environment.set(\"orgStrId\", pm.response.json().orgId);", |
| 5855 | + " pm.environment.set(\"orgConfigName\", pm.response.json().configName);", |
| 5856 | + " pm.environment.set(\"orgId\", pm.response.json().id);", |
| 5857 | + "});" |
| 5858 | + ], |
| 5859 | + "type": "text/javascript" |
| 5860 | + } |
| 5861 | + } |
| 5862 | + ], |
| 5863 | + "request": { |
| 5864 | + "method": "POST", |
| 5865 | + "header": [ |
| 5866 | + { |
| 5867 | + "key": "Content-Type", |
| 5868 | + "value": "application/json" |
| 5869 | + }, |
| 5870 | + { |
| 5871 | + "key": "Authorization", |
| 5872 | + "value": "Bearer {{jwt-token}}" |
| 5873 | + } |
| 5874 | + ], |
| 5875 | + "body": { |
| 5876 | + "mode": "raw", |
| 5877 | + "raw": "{ \n\t\"orgId\": \"testStr Id\",\n \"configName\": \"project_catefory_url\",\n \"configValue\": \"http://localhost/url\"\n}" |
| 5878 | + }, |
| 5879 | + "url": { |
| 5880 | + "raw": "{{api-url}}/projects/metadata/orgConfig", |
| 5881 | + "host": [ |
| 5882 | + "{{api-url}}" |
| 5883 | + ], |
| 5884 | + "path": [ |
| 5885 | + "projects", |
| 5886 | + "metadata", |
| 5887 | + "orgConfig" |
| 5888 | + ] |
| 5889 | + } |
| 5890 | + }, |
| 5891 | + "response": [] |
| 5892 | + }, |
| 5893 | + { |
| 5894 | + "name": "List org configs without orgId", |
| 5895 | + "request": { |
| 5896 | + "method": "GET", |
| 5897 | + "header": [ |
| 5898 | + { |
| 5899 | + "key": "Content-Type", |
| 5900 | + "value": "application/json" |
| 5901 | + }, |
| 5902 | + { |
| 5903 | + "key": "Authorization", |
| 5904 | + "value": "Bearer {{jwt-token}}" |
| 5905 | + } |
| 5906 | + ], |
| 5907 | + "url": { |
| 5908 | + "raw": "{{api-url}}/projects/metadata/orgConfig", |
| 5909 | + "host": [ |
| 5910 | + "{{api-url}}" |
| 5911 | + ], |
| 5912 | + "path": [ |
| 5913 | + "projects", |
| 5914 | + "metadata", |
| 5915 | + "orgConfig" |
| 5916 | + ] |
| 5917 | + } |
| 5918 | + }, |
| 5919 | + "response": [] |
| 5920 | + }, |
| 5921 | + { |
| 5922 | + "name": "List org configs with only orgId", |
| 5923 | + "request": { |
| 5924 | + "method": "GET", |
| 5925 | + "header": [ |
| 5926 | + { |
| 5927 | + "key": "Content-Type", |
| 5928 | + "value": "application/json" |
| 5929 | + }, |
| 5930 | + { |
| 5931 | + "key": "Authorization", |
| 5932 | + "value": "Bearer {{jwt-token}}" |
| 5933 | + } |
| 5934 | + ], |
| 5935 | + "url": { |
| 5936 | + "raw": "{{api-url}}/projects/metadata/orgConfig?orgId={{orgStrId}}", |
| 5937 | + "host": [ |
| 5938 | + "{{api-url}}" |
| 5939 | + ], |
| 5940 | + "path": [ |
| 5941 | + "projects", |
| 5942 | + "metadata", |
| 5943 | + "orgConfig" |
| 5944 | + ], |
| 5945 | + "query": [ |
| 5946 | + { |
| 5947 | + "key": "orgId", |
| 5948 | + "value": "{{orgStrId}}", |
| 5949 | + "description": "orgId can be array with ',', 'id1,id2'" |
| 5950 | + } |
| 5951 | + ] |
| 5952 | + } |
| 5953 | + }, |
| 5954 | + "response": [] |
| 5955 | + }, |
| 5956 | + { |
| 5957 | + "name": "List org configs with orgId and configName", |
| 5958 | + "request": { |
| 5959 | + "method": "GET", |
| 5960 | + "header": [ |
| 5961 | + { |
| 5962 | + "key": "Content-Type", |
| 5963 | + "value": "application/json" |
| 5964 | + }, |
| 5965 | + { |
| 5966 | + "key": "Authorization", |
| 5967 | + "value": "Bearer {{jwt-token}}" |
| 5968 | + } |
| 5969 | + ], |
| 5970 | + "url": { |
| 5971 | + "raw": "{{api-url}}/projects/metadata/orgConfig?orgId={{orgStrId}}&configName={{orgConfigName}}", |
| 5972 | + "host": [ |
| 5973 | + "{{api-url}}" |
| 5974 | + ], |
| 5975 | + "path": [ |
| 5976 | + "projects", |
| 5977 | + "metadata", |
| 5978 | + "orgConfig" |
| 5979 | + ], |
| 5980 | + "query": [ |
| 5981 | + { |
| 5982 | + "key": "orgId", |
| 5983 | + "value": "{{orgStrId}}", |
| 5984 | + "description": "orgId can be array with ',', 'id1,id2'" |
| 5985 | + }, |
| 5986 | + { |
| 5987 | + "key": "configName", |
| 5988 | + "value": "{{orgConfigName}}" |
| 5989 | + } |
| 5990 | + ] |
| 5991 | + } |
| 5992 | + }, |
| 5993 | + "response": [] |
| 5994 | + }, |
| 5995 | + { |
| 5996 | + "name": "Delete org config", |
| 5997 | + "request": { |
| 5998 | + "method": "DELETE", |
| 5999 | + "header": [ |
| 6000 | + { |
| 6001 | + "key": "Content-Type", |
| 6002 | + "value": "application/json" |
| 6003 | + }, |
| 6004 | + { |
| 6005 | + "key": "Authorization", |
| 6006 | + "value": "Bearer {{jwt-token}}" |
| 6007 | + } |
| 6008 | + ], |
| 6009 | + "body": { |
| 6010 | + "mode": "raw", |
| 6011 | + "raw": "" |
| 6012 | + }, |
| 6013 | + "url": { |
| 6014 | + "raw": "{{api-url}}/projects/metadata/orgConfig/{{orgId}}", |
| 6015 | + "host": [ |
| 6016 | + "{{api-url}}" |
| 6017 | + ], |
| 6018 | + "path": [ |
| 6019 | + "projects", |
| 6020 | + "metadata", |
| 6021 | + "orgConfig", |
| 6022 | + "{{orgId}}" |
| 6023 | + ] |
| 6024 | + } |
| 6025 | + }, |
| 6026 | + "response": [] |
| 6027 | + }, |
| 6028 | + { |
| 6029 | + "name": "Update org config", |
| 6030 | + "request": { |
| 6031 | + "method": "PATCH", |
| 6032 | + "header": [ |
| 6033 | + { |
| 6034 | + "key": "Content-Type", |
| 6035 | + "value": "application/json" |
| 6036 | + }, |
| 6037 | + { |
| 6038 | + "key": "Authorization", |
| 6039 | + "value": "Bearer {{jwt-token}}" |
| 6040 | + } |
| 6041 | + ], |
| 6042 | + "body": { |
| 6043 | + "mode": "raw", |
| 6044 | + "raw": "{ \n\t\"orgId\": \"another orgId\",\n \"configName\": \"project_catefory_url\",\n \"configValue\": \"http://localhost/url\"\n}" |
| 6045 | + }, |
| 6046 | + "url": { |
| 6047 | + "raw": "{{api-url}}/projects/metadata/orgConfig/{{orgId}}", |
| 6048 | + "host": [ |
| 6049 | + "{{api-url}}" |
| 6050 | + ], |
| 6051 | + "path": [ |
| 6052 | + "projects", |
| 6053 | + "metadata", |
| 6054 | + "orgConfig", |
| 6055 | + "{{orgId}}" |
| 6056 | + ] |
| 6057 | + } |
| 6058 | + }, |
| 6059 | + "response": [] |
| 6060 | + } |
| 6061 | + ], |
| 6062 | + "event": [ |
| 6063 | + { |
| 6064 | + "listen": "prerequest", |
| 6065 | + "script": { |
| 6066 | + "id": "2e274cc9-22e6-4dd2-9eee-c4f1fd98253d", |
| 6067 | + "type": "text/javascript", |
| 6068 | + "exec": [ |
| 6069 | + "" |
| 6070 | + ] |
| 6071 | + } |
| 6072 | + }, |
| 6073 | + { |
| 6074 | + "listen": "test", |
| 6075 | + "script": { |
| 6076 | + "id": "9d171dbf-2a50-4483-b172-ce240ac09413", |
| 6077 | + "type": "text/javascript", |
| 6078 | + "exec": [ |
| 6079 | + "" |
| 6080 | + ] |
| 6081 | + } |
| 6082 | + } |
| 6083 | + ], |
| 6084 | + "protocolProfileBehavior": {} |
| 6085 | + }, |
5840 | 6086 | {
|
5841 | 6087 | "name": "Product Category",
|
5842 | 6088 | "item": [
|
|
0 commit comments