|
1 | 1 | {
|
2 | 2 | "info": {
|
3 |
| - "_postman_id": "db83f8a1-5b3f-4276-a371-aa3c3497542d", |
| 3 | + "_postman_id": "d9ea7b0f-1d2c-4d48-a693-fe7b51b1e2ea", |
4 | 4 | "name": "tc-project-service",
|
5 | 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
6 | 6 | },
|
|
3081 | 3081 | ],
|
3082 | 3082 | "body": {
|
3083 | 3083 | "mode": "raw",
|
3084 |
| - "raw": "{\r\n \"param\": {\r\n \"name\": \"name 1\",\r\n \"productKey\": \"productKey 1\",\r\n \"category\": \"key1\",\r\n \"icon\": \"http://example.com/icon1.ico\",\r\n \"brief\": \"brief 1\",\r\n \"details\": \"details 1\",\r\n \"aliases\": [\"product key 1\", \"product_key_1\"],\r\n \"template\": {\r\n \"template1\": {\r\n \"name\": \"template 1\",\r\n \"details\": {\r\n \"anyDetails\": \"any details 1\"\r\n },\r\n \"others\": [\"others 11\", \"others 12\"]\r\n },\r\n \"template2\": {\r\n \"name\": \"template 2\",\r\n \"details\": {\r\n \"anyDetails\": \"any details 2\"\r\n },\r\n \"others\": [\"others 21\", \"others 22\"]\r\n }\r\n }\r\n }\r\n }" |
| 3084 | + "raw": "{\r\n \"param\": {\r\n \"name\": \"name 1\",\r\n \"productKey\": \"productKey 1\",\r\n \"category\": \"key1\",\r\n \"icon\": \"http://example.com/icon1.ico\",\r\n \"brief\": \"brief 1\",\r\n \"details\": \"details 1\",\r\n \"aliases\": [\"product key 1\", \"product_key_1\"],\r\n \"template\": {\r\n \"template1\": {\r\n \"name\": \"template 1\",\r\n \"details\": {\r\n \"anyDetails\": \"any details 1\"\r\n },\r\n \"others\": [\"others 11\", \"others 12\"]\r\n },\r\n \"template2\": {\r\n \"name\": \"template 2\",\r\n \"details\": {\r\n \"anyDetails\": \"any details 2\"\r\n },\r\n \"others\": [\"others 21\", \"others 22\"]\r\n }\r\n }\r\n }\r\n}" |
| 3085 | + }, |
| 3086 | + "url": { |
| 3087 | + "raw": "{{api-url}}/v4/projects/metadata/productTemplates", |
| 3088 | + "host": [ |
| 3089 | + "{{api-url}}" |
| 3090 | + ], |
| 3091 | + "path": [ |
| 3092 | + "v4", |
| 3093 | + "projects", |
| 3094 | + "metadata", |
| 3095 | + "productTemplates" |
| 3096 | + ] |
| 3097 | + } |
| 3098 | + }, |
| 3099 | + "response": [] |
| 3100 | + }, |
| 3101 | + { |
| 3102 | + "name": "Create product template with form", |
| 3103 | + "request": { |
| 3104 | + "method": "POST", |
| 3105 | + "header": [ |
| 3106 | + { |
| 3107 | + "key": "Content-Type", |
| 3108 | + "value": "application/json" |
| 3109 | + }, |
| 3110 | + { |
| 3111 | + "key": "Authorization", |
| 3112 | + "value": "Bearer {{jwt-token}}" |
| 3113 | + } |
| 3114 | + ], |
| 3115 | + "body": { |
| 3116 | + "mode": "raw", |
| 3117 | + "raw": "{\r\n \"param\": {\r\n \"name\": \"name 1\",\r\n \"productKey\": \"productKey 1\",\r\n \"category\": \"key1\",\r\n \"icon\": \"http://example.com/icon1.ico\",\r\n \"brief\": \"brief 1\",\r\n \"details\": \"details 1\",\r\n \"aliases\": [\"product key 1\", \"product_key_1\"],\r\n \"form\": {\r\n\t\t\"key\": \"dev\",\r\n\t\t\"version\": 1\r\n\t}\r\n }\r\n}" |
| 3118 | + }, |
| 3119 | + "url": { |
| 3120 | + "raw": "{{api-url}}/v4/projects/metadata/productTemplates", |
| 3121 | + "host": [ |
| 3122 | + "{{api-url}}" |
| 3123 | + ], |
| 3124 | + "path": [ |
| 3125 | + "v4", |
| 3126 | + "projects", |
| 3127 | + "metadata", |
| 3128 | + "productTemplates" |
| 3129 | + ] |
| 3130 | + } |
| 3131 | + }, |
| 3132 | + "response": [] |
| 3133 | + }, |
| 3134 | + { |
| 3135 | + "name": "Create product template with wrong form key", |
| 3136 | + "request": { |
| 3137 | + "method": "POST", |
| 3138 | + "header": [ |
| 3139 | + { |
| 3140 | + "key": "Content-Type", |
| 3141 | + "value": "application/json" |
| 3142 | + }, |
| 3143 | + { |
| 3144 | + "key": "Authorization", |
| 3145 | + "value": "Bearer {{jwt-token}}" |
| 3146 | + } |
| 3147 | + ], |
| 3148 | + "body": { |
| 3149 | + "mode": "raw", |
| 3150 | + "raw": "{\r\n \"param\": {\r\n \"name\": \"name 1\",\r\n \"productKey\": \"productKey 1\",\r\n \"category\": \"key1\",\r\n \"icon\": \"http://example.com/icon1.ico\",\r\n \"brief\": \"brief 1\",\r\n \"details\": \"details 1\",\r\n \"aliases\": [\"product key 1\", \"product_key_1\"],\r\n \"form\": {\r\n\t\t\"key\": \"wrong-key\"\r\n\t}\r\n }\r\n}" |
| 3151 | + }, |
| 3152 | + "url": { |
| 3153 | + "raw": "{{api-url}}/v4/projects/metadata/productTemplates", |
| 3154 | + "host": [ |
| 3155 | + "{{api-url}}" |
| 3156 | + ], |
| 3157 | + "path": [ |
| 3158 | + "v4", |
| 3159 | + "projects", |
| 3160 | + "metadata", |
| 3161 | + "productTemplates" |
| 3162 | + ] |
| 3163 | + } |
| 3164 | + }, |
| 3165 | + "response": [] |
| 3166 | + }, |
| 3167 | + { |
| 3168 | + "name": "Create product template with wrong model version", |
| 3169 | + "request": { |
| 3170 | + "method": "POST", |
| 3171 | + "header": [ |
| 3172 | + { |
| 3173 | + "key": "Content-Type", |
| 3174 | + "value": "application/json" |
| 3175 | + }, |
| 3176 | + { |
| 3177 | + "key": "Authorization", |
| 3178 | + "value": "Bearer {{jwt-token}}" |
| 3179 | + } |
| 3180 | + ], |
| 3181 | + "body": { |
| 3182 | + "mode": "raw", |
| 3183 | + "raw": "{\r\n \"param\": {\r\n \"name\": \"name 1\",\r\n \"productKey\": \"productKey 1\",\r\n \"category\": \"key1\",\r\n \"icon\": \"http://example.com/icon1.ico\",\r\n \"brief\": \"brief 1\",\r\n \"details\": \"details 1\",\r\n \"aliases\": [\"product key 1\", \"product_key_1\"],\r\n \"form\": {\r\n\t\t\"key\": \"dev\",\r\n\t\t\"version\": 1123\r\n\t}\r\n }\r\n}" |
3085 | 3184 | },
|
3086 | 3185 | "url": {
|
3087 | 3186 | "raw": "{{api-url}}/v4/projects/metadata/productTemplates",
|
|
3232 | 3331 | }
|
3233 | 3332 | },
|
3234 | 3333 | "response": []
|
| 3334 | + }, |
| 3335 | + { |
| 3336 | + "name": "Upgrade a product template with form", |
| 3337 | + "request": { |
| 3338 | + "method": "POST", |
| 3339 | + "header": [ |
| 3340 | + { |
| 3341 | + "key": "Content-Type", |
| 3342 | + "value": "application/json", |
| 3343 | + "type": "text" |
| 3344 | + }, |
| 3345 | + { |
| 3346 | + "key": "Authorization", |
| 3347 | + "value": "Bearer {{jwt-token}}", |
| 3348 | + "type": "text" |
| 3349 | + } |
| 3350 | + ], |
| 3351 | + "body": { |
| 3352 | + "mode": "raw", |
| 3353 | + "raw": "{\r\n \"param\":{\r\n \"form\": {\r\n \t\"key\": \"dev\",\t\r\n \t\"version\": 2\r\n }\r\n }\r\n}" |
| 3354 | + }, |
| 3355 | + "url": { |
| 3356 | + "raw": "{{api-url}}/v4/projects/metadata/productTemplates/2/upgrade", |
| 3357 | + "host": [ |
| 3358 | + "{{api-url}}" |
| 3359 | + ], |
| 3360 | + "path": [ |
| 3361 | + "v4", |
| 3362 | + "projects", |
| 3363 | + "metadata", |
| 3364 | + "productTemplates", |
| 3365 | + "2", |
| 3366 | + "upgrade" |
| 3367 | + ] |
| 3368 | + } |
| 3369 | + }, |
| 3370 | + "response": [] |
| 3371 | + }, |
| 3372 | + { |
| 3373 | + "name": "Upgrade a product template with wrong model version", |
| 3374 | + "request": { |
| 3375 | + "method": "POST", |
| 3376 | + "header": [ |
| 3377 | + { |
| 3378 | + "key": "Content-Type", |
| 3379 | + "value": "application/json", |
| 3380 | + "type": "text" |
| 3381 | + }, |
| 3382 | + { |
| 3383 | + "key": "Authorization", |
| 3384 | + "value": "Bearer {{jwt-token}}", |
| 3385 | + "type": "text" |
| 3386 | + } |
| 3387 | + ], |
| 3388 | + "body": { |
| 3389 | + "mode": "raw", |
| 3390 | + "raw": "{\r\n \"param\":{\r\n \"form\": {\r\n \t\"key\": \"dev\",\t\r\n \t\"version\": 1234\r\n }\r\n }\r\n}" |
| 3391 | + }, |
| 3392 | + "url": { |
| 3393 | + "raw": "{{api-url}}/v4/projects/metadata/productTemplates/1/upgrade", |
| 3394 | + "host": [ |
| 3395 | + "{{api-url}}" |
| 3396 | + ], |
| 3397 | + "path": [ |
| 3398 | + "v4", |
| 3399 | + "projects", |
| 3400 | + "metadata", |
| 3401 | + "productTemplates", |
| 3402 | + "1", |
| 3403 | + "upgrade" |
| 3404 | + ] |
| 3405 | + } |
| 3406 | + }, |
| 3407 | + "response": [] |
| 3408 | + }, |
| 3409 | + { |
| 3410 | + "name": "Upgrade a product template without define form", |
| 3411 | + "request": { |
| 3412 | + "method": "POST", |
| 3413 | + "header": [ |
| 3414 | + { |
| 3415 | + "key": "Content-Type", |
| 3416 | + "value": "application/json", |
| 3417 | + "type": "text" |
| 3418 | + }, |
| 3419 | + { |
| 3420 | + "key": "Authorization", |
| 3421 | + "value": "Bearer {{jwt-token}}", |
| 3422 | + "type": "text" |
| 3423 | + } |
| 3424 | + ], |
| 3425 | + "body": { |
| 3426 | + "mode": "raw", |
| 3427 | + "raw": "{\r\n \"param\":{ \r\n }\r\n}" |
| 3428 | + }, |
| 3429 | + "url": { |
| 3430 | + "raw": "{{api-url}}/v4/projects/metadata/productTemplates/3/upgrade", |
| 3431 | + "host": [ |
| 3432 | + "{{api-url}}" |
| 3433 | + ], |
| 3434 | + "path": [ |
| 3435 | + "v4", |
| 3436 | + "projects", |
| 3437 | + "metadata", |
| 3438 | + "productTemplates", |
| 3439 | + "3", |
| 3440 | + "upgrade" |
| 3441 | + ] |
| 3442 | + } |
| 3443 | + }, |
| 3444 | + "response": [] |
3235 | 3445 | }
|
3236 | 3446 | ]
|
3237 | 3447 | },
|
|
0 commit comments