|
1 | 1 | {
|
2 | 2 | "info": {
|
3 |
| - "_postman_id": "03129edd-111f-4875-924d-2ffd2c0c18eb", |
| 3 | + "_postman_id": "2e554101-d99e-4522-8ce5-39ff8e6cca0e", |
4 | 4 | "name": "member-api",
|
5 | 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
6 | 6 | },
|
|
3617 | 3617 | }
|
3618 | 3618 | ],
|
3619 | 3619 | "url": {
|
3620 |
| - "raw": "{{URL}}/members/standlove/stats/history?fields=userId,handle,DATA_SCIENCE,DEVELOP,createdBy", |
| 3620 | + "raw": "{{URL}}/members/denis/stats/history?fields=userId,handle,DATA_SCIENCE,DEVELOP,createdBy", |
3621 | 3621 | "host": [
|
3622 | 3622 | "{{URL}}"
|
3623 | 3623 | ],
|
3624 | 3624 | "path": [
|
3625 | 3625 | "members",
|
3626 |
| - "standlove", |
| 3626 | + "denis", |
3627 | 3627 | "stats",
|
3628 | 3628 | "history"
|
3629 | 3629 | ],
|
|
3667 | 3667 | }
|
3668 | 3668 | ],
|
3669 | 3669 | "url": {
|
3670 |
| - "raw": "{{URL}}/members/standlove/stats/history?groupIds=10,20000000&fields=userId,handle,groupId", |
| 3670 | + "raw": "{{URL}}/members/denis/stats/history?groupIds=10,20000001&fields=userId,handle,groupId", |
3671 | 3671 | "host": [
|
3672 | 3672 | "{{URL}}"
|
3673 | 3673 | ],
|
3674 | 3674 | "path": [
|
3675 | 3675 | "members",
|
3676 |
| - "standlove", |
| 3676 | + "denis", |
| 3677 | + "stats", |
| 3678 | + "history" |
| 3679 | + ], |
| 3680 | + "query": [ |
| 3681 | + { |
| 3682 | + "key": "groupIds", |
| 3683 | + "value": "10,20000001" |
| 3684 | + }, |
| 3685 | + { |
| 3686 | + "key": "fields", |
| 3687 | + "value": "userId,handle,groupId" |
| 3688 | + } |
| 3689 | + ] |
| 3690 | + } |
| 3691 | + }, |
| 3692 | + "response": [] |
| 3693 | + }, |
| 3694 | + { |
| 3695 | + "name": "get member history private statistics - groupIds by admin", |
| 3696 | + "event": [ |
| 3697 | + { |
| 3698 | + "listen": "test", |
| 3699 | + "script": { |
| 3700 | + "exec": [ |
| 3701 | + "pm.test(\"Status code is 200\", function () {", |
| 3702 | + " pm.response.to.have.status(200);", |
| 3703 | + "});" |
| 3704 | + ], |
| 3705 | + "type": "text/javascript" |
| 3706 | + } |
| 3707 | + } |
| 3708 | + ], |
| 3709 | + "request": { |
| 3710 | + "method": "GET", |
| 3711 | + "header": [ |
| 3712 | + { |
| 3713 | + "key": "Accept", |
| 3714 | + "type": "text", |
| 3715 | + "value": "application/json" |
| 3716 | + }, |
| 3717 | + { |
| 3718 | + "key": "Content-Type", |
| 3719 | + "type": "text", |
| 3720 | + "value": "application/json" |
| 3721 | + }, |
| 3722 | + { |
| 3723 | + "key": "Authorization", |
| 3724 | + "value": "Bearer {{admin_token}}", |
| 3725 | + "type": "text" |
| 3726 | + } |
| 3727 | + ], |
| 3728 | + "url": { |
| 3729 | + "raw": "{{URL}}/members/denis/stats/history?groupIds=10,20000001&fields=userId,handle,groupId", |
| 3730 | + "host": [ |
| 3731 | + "{{URL}}" |
| 3732 | + ], |
| 3733 | + "path": [ |
| 3734 | + "members", |
| 3735 | + "denis", |
| 3736 | + "stats", |
| 3737 | + "history" |
| 3738 | + ], |
| 3739 | + "query": [ |
| 3740 | + { |
| 3741 | + "key": "groupIds", |
| 3742 | + "value": "10,20000001" |
| 3743 | + }, |
| 3744 | + { |
| 3745 | + "key": "fields", |
| 3746 | + "value": "userId,handle,groupId" |
| 3747 | + } |
| 3748 | + ] |
| 3749 | + } |
| 3750 | + }, |
| 3751 | + "response": [] |
| 3752 | + }, |
| 3753 | + { |
| 3754 | + "name": "get member history private statistics - groupIds by member himself", |
| 3755 | + "event": [ |
| 3756 | + { |
| 3757 | + "listen": "test", |
| 3758 | + "script": { |
| 3759 | + "exec": [ |
| 3760 | + "pm.test(\"Status code is 200\", function () {", |
| 3761 | + " pm.response.to.have.status(200);", |
| 3762 | + "});" |
| 3763 | + ], |
| 3764 | + "type": "text/javascript" |
| 3765 | + } |
| 3766 | + } |
| 3767 | + ], |
| 3768 | + "request": { |
| 3769 | + "method": "GET", |
| 3770 | + "header": [ |
| 3771 | + { |
| 3772 | + "key": "Accept", |
| 3773 | + "type": "text", |
| 3774 | + "value": "application/json" |
| 3775 | + }, |
| 3776 | + { |
| 3777 | + "key": "Content-Type", |
| 3778 | + "type": "text", |
| 3779 | + "value": "application/json" |
| 3780 | + }, |
| 3781 | + { |
| 3782 | + "key": "Authorization", |
| 3783 | + "value": "Bearer {{user_token}}", |
| 3784 | + "type": "text" |
| 3785 | + } |
| 3786 | + ], |
| 3787 | + "url": { |
| 3788 | + "raw": "{{URL}}/members/denis/stats/history?groupIds=10,20000001&fields=userId,handle,groupId", |
| 3789 | + "host": [ |
| 3790 | + "{{URL}}" |
| 3791 | + ], |
| 3792 | + "path": [ |
| 3793 | + "members", |
| 3794 | + "denis", |
3677 | 3795 | "stats",
|
3678 | 3796 | "history"
|
3679 | 3797 | ],
|
3680 | 3798 | "query": [
|
3681 | 3799 | {
|
3682 | 3800 | "key": "groupIds",
|
3683 |
| - "value": "10,20000000" |
| 3801 | + "value": "10,20000001" |
3684 | 3802 | },
|
3685 | 3803 | {
|
3686 | 3804 | "key": "fields",
|
|
3721 | 3839 | }
|
3722 | 3840 | ],
|
3723 | 3841 | "url": {
|
3724 |
| - "raw": "{{URL}}/members/standlove/stats/history?groupIds=10,20000000,20000010&fields=userId,handle,groupId", |
| 3842 | + "raw": "{{URL}}/members/denis/stats/history?groupIds=10,20000000,20000010&fields=userId,handle,groupId", |
3725 | 3843 | "host": [
|
3726 | 3844 | "{{URL}}"
|
3727 | 3845 | ],
|
3728 | 3846 | "path": [
|
3729 | 3847 | "members",
|
3730 |
| - "standlove", |
| 3848 | + "denis", |
3731 | 3849 | "stats",
|
3732 | 3850 | "history"
|
3733 | 3851 | ],
|
|
4062 | 4180 | },
|
4063 | 4181 | "response": []
|
4064 | 4182 | },
|
| 4183 | + { |
| 4184 | + "name": "get member private statistics with admin token", |
| 4185 | + "event": [ |
| 4186 | + { |
| 4187 | + "listen": "test", |
| 4188 | + "script": { |
| 4189 | + "exec": [ |
| 4190 | + "pm.test(\"Status code is 200\", function () {", |
| 4191 | + " pm.response.to.have.status(200);", |
| 4192 | + "});" |
| 4193 | + ], |
| 4194 | + "type": "text/javascript" |
| 4195 | + } |
| 4196 | + } |
| 4197 | + ], |
| 4198 | + "request": { |
| 4199 | + "method": "GET", |
| 4200 | + "header": [ |
| 4201 | + { |
| 4202 | + "key": "Accept", |
| 4203 | + "type": "text", |
| 4204 | + "value": "application/json" |
| 4205 | + }, |
| 4206 | + { |
| 4207 | + "key": "Content-Type", |
| 4208 | + "type": "text", |
| 4209 | + "value": "application/json" |
| 4210 | + }, |
| 4211 | + { |
| 4212 | + "key": "Authorization", |
| 4213 | + "value": "Bearer {{admin_token}}", |
| 4214 | + "type": "text" |
| 4215 | + } |
| 4216 | + ], |
| 4217 | + "url": { |
| 4218 | + "raw": "{{URL}}/members/denis/stats?groupIds=10,d6bf6bb6-457c-461c-a4d6-0a6b1a87fde9", |
| 4219 | + "host": [ |
| 4220 | + "{{URL}}" |
| 4221 | + ], |
| 4222 | + "path": [ |
| 4223 | + "members", |
| 4224 | + "denis", |
| 4225 | + "stats" |
| 4226 | + ], |
| 4227 | + "query": [ |
| 4228 | + { |
| 4229 | + "key": "groupIds", |
| 4230 | + "value": "10,d6bf6bb6-457c-461c-a4d6-0a6b1a87fde9" |
| 4231 | + } |
| 4232 | + ] |
| 4233 | + } |
| 4234 | + }, |
| 4235 | + "response": [] |
| 4236 | + }, |
| 4237 | + { |
| 4238 | + "name": "get member private statistics by user himself", |
| 4239 | + "event": [ |
| 4240 | + { |
| 4241 | + "listen": "test", |
| 4242 | + "script": { |
| 4243 | + "exec": [ |
| 4244 | + "pm.test(\"Status code is 200\", function () {", |
| 4245 | + " pm.response.to.have.status(200);", |
| 4246 | + "});" |
| 4247 | + ], |
| 4248 | + "type": "text/javascript" |
| 4249 | + } |
| 4250 | + } |
| 4251 | + ], |
| 4252 | + "request": { |
| 4253 | + "method": "GET", |
| 4254 | + "header": [ |
| 4255 | + { |
| 4256 | + "key": "Accept", |
| 4257 | + "type": "text", |
| 4258 | + "value": "application/json" |
| 4259 | + }, |
| 4260 | + { |
| 4261 | + "key": "Content-Type", |
| 4262 | + "type": "text", |
| 4263 | + "value": "application/json" |
| 4264 | + }, |
| 4265 | + { |
| 4266 | + "key": "Authorization", |
| 4267 | + "value": "Bearer {{user_token}}", |
| 4268 | + "type": "text" |
| 4269 | + } |
| 4270 | + ], |
| 4271 | + "url": { |
| 4272 | + "raw": "{{URL}}/members/denis/stats?groupIds=10,d6bf6bb6-457c-461c-a4d6-0a6b1a87fde9", |
| 4273 | + "host": [ |
| 4274 | + "{{URL}}" |
| 4275 | + ], |
| 4276 | + "path": [ |
| 4277 | + "members", |
| 4278 | + "denis", |
| 4279 | + "stats" |
| 4280 | + ], |
| 4281 | + "query": [ |
| 4282 | + { |
| 4283 | + "key": "groupIds", |
| 4284 | + "value": "10,d6bf6bb6-457c-461c-a4d6-0a6b1a87fde9" |
| 4285 | + } |
| 4286 | + ] |
| 4287 | + } |
| 4288 | + }, |
| 4289 | + "response": [] |
| 4290 | + }, |
4065 | 4291 | {
|
4066 | 4292 | "name": "get member private statistics - multiple group Ids",
|
4067 | 4293 | "event": [
|
|
4115 | 4341 | },
|
4116 | 4342 | "response": []
|
4117 | 4343 | },
|
| 4344 | + { |
| 4345 | + "name": "get member private statistics - multiple group Ids with admin token", |
| 4346 | + "event": [ |
| 4347 | + { |
| 4348 | + "listen": "test", |
| 4349 | + "script": { |
| 4350 | + "exec": [ |
| 4351 | + "pm.test(\"Status code is 200\", function () {", |
| 4352 | + " pm.response.to.have.status(200);", |
| 4353 | + "});" |
| 4354 | + ], |
| 4355 | + "type": "text/javascript" |
| 4356 | + } |
| 4357 | + } |
| 4358 | + ], |
| 4359 | + "request": { |
| 4360 | + "method": "GET", |
| 4361 | + "header": [ |
| 4362 | + { |
| 4363 | + "key": "Accept", |
| 4364 | + "type": "text", |
| 4365 | + "value": "application/json" |
| 4366 | + }, |
| 4367 | + { |
| 4368 | + "key": "Content-Type", |
| 4369 | + "type": "text", |
| 4370 | + "value": "application/json" |
| 4371 | + }, |
| 4372 | + { |
| 4373 | + "key": "Authorization", |
| 4374 | + "value": "Bearer {{admin_token}}", |
| 4375 | + "type": "text" |
| 4376 | + } |
| 4377 | + ], |
| 4378 | + "url": { |
| 4379 | + "raw": "{{URL}}/members/denis/stats?groupIds=10,d6bf6bb6-457c-461c-a4d6-0a6b1a87fde9&fields=userId,handle,wins,groupId,challenges", |
| 4380 | + "host": [ |
| 4381 | + "{{URL}}" |
| 4382 | + ], |
| 4383 | + "path": [ |
| 4384 | + "members", |
| 4385 | + "denis", |
| 4386 | + "stats" |
| 4387 | + ], |
| 4388 | + "query": [ |
| 4389 | + { |
| 4390 | + "key": "groupIds", |
| 4391 | + "value": "10,d6bf6bb6-457c-461c-a4d6-0a6b1a87fde9" |
| 4392 | + }, |
| 4393 | + { |
| 4394 | + "key": "fields", |
| 4395 | + "value": "userId,handle,wins,groupId,challenges" |
| 4396 | + } |
| 4397 | + ] |
| 4398 | + } |
| 4399 | + }, |
| 4400 | + "response": [] |
| 4401 | + }, |
4118 | 4402 | {
|
4119 | 4403 | "name": "get member statistics - userId,handle,wins,develop,design",
|
4120 | 4404 | "event": [
|
|
0 commit comments