|
1 | 1 | { |
2 | 2 | "info": { |
3 | | - "_postman_id": "b6c83d85-3899-4ebb-ba68-679bec81bd52", |
| 3 | + "_postman_id": "81086475-1eea-4021-b602-b7441a7e86e6", |
4 | 4 | "name": "ElectionGuard Web Api", |
5 | 5 | "description": "A collection of API calls for ElectionGuard Web Api", |
6 | 6 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" |
|
111 | 111 | { |
112 | 112 | "listen": "test", |
113 | 113 | "script": { |
114 | | - "id": "44698cce-1da1-4296-b616-18dc0eae8a53", |
| 114 | + "id": "861b0dd4-0835-4f65-8f07-155ec5fb487e", |
115 | 115 | "exec": [ |
116 | 116 | "pm.test(\"Ballots are returned in the same order as the request\", function () {", |
117 | 117 | " const requestJson = JSON.parse(pm.request.body.toString())", |
|
183 | 183 | { |
184 | 184 | "listen": "test", |
185 | 185 | "script": { |
186 | | - "id": "7bc63d84-ffdb-4401-a1ba-dd94aa8066fa", |
| 186 | + "id": "9072fd9f-9ed4-47e3-86eb-9e31275131a0", |
187 | 187 | "exec": [ |
188 | 188 | "pm.test(\"Ballots are returned in the same order as the request\", function () {", |
189 | 189 | " const requestJson = JSON.parse(pm.request.body.toString())", |
|
244 | 244 | { |
245 | 245 | "listen": "prerequest", |
246 | 246 | "script": { |
247 | | - "id": "e6bc2390-9e1b-4acf-a7b4-76f961241303", |
| 247 | + "id": "df799c09-3a81-417c-bf1c-a2eac2ffab2a", |
248 | 248 | "type": "text/javascript", |
249 | 249 | "exec": [ |
250 | 250 | "" |
|
254 | 254 | { |
255 | 255 | "listen": "test", |
256 | 256 | "script": { |
257 | | - "id": "e8558e10-d6d4-4a3f-804e-c3ff2ce9f4d1", |
| 257 | + "id": "d4204e33-758b-4476-b71e-e75c789f8e00", |
258 | 258 | "type": "text/javascript", |
259 | 259 | "exec": [ |
260 | 260 | "" |
|
477 | 477 | } |
478 | 478 | }, |
479 | 479 | "response": [] |
| 480 | + }, |
| 481 | + { |
| 482 | + "name": "Tracker hash to words", |
| 483 | + "request": { |
| 484 | + "method": "POST", |
| 485 | + "header": [], |
| 486 | + "body": { |
| 487 | + "mode": "raw", |
| 488 | + "raw": "{\n \"tracker_hash\":\"82295779859697986364440242162484040502484343758343249767620990301560940975228\"\n}", |
| 489 | + "options": { |
| 490 | + "raw": { |
| 491 | + "language": "json" |
| 492 | + } |
| 493 | + } |
| 494 | + }, |
| 495 | + "url": { |
| 496 | + "raw": "{{mediator-url}}/api/{{version}}/tracker/words", |
| 497 | + "host": [ |
| 498 | + "{{mediator-url}}" |
| 499 | + ], |
| 500 | + "path": [ |
| 501 | + "api", |
| 502 | + "{{version}}", |
| 503 | + "tracker", |
| 504 | + "words" |
| 505 | + ] |
| 506 | + }, |
| 507 | + "description": "Get a readable / friendly word tracker from the hash" |
| 508 | + }, |
| 509 | + "response": [] |
| 510 | + }, |
| 511 | + { |
| 512 | + "name": "Tracker words to hash", |
| 513 | + "request": { |
| 514 | + "method": "POST", |
| 515 | + "header": [], |
| 516 | + "body": { |
| 517 | + "mode": "raw", |
| 518 | + "raw": "{\n \"tracker_words\": \"abacus-abacus-amazement-arithmetic-assist-adjustment-assembly-alligator-antique-age-arena-airport-acquaintance-accomplishment-accord-apparel-airline-abacus-artist-adjective-assumption-aim-analogue-album-accelerant-advice-allergist-antibody-article-agent-appreciation-approach-assembly-appeal\"\n}", |
| 519 | + "options": { |
| 520 | + "raw": { |
| 521 | + "language": "json" |
| 522 | + } |
| 523 | + } |
| 524 | + }, |
| 525 | + "url": { |
| 526 | + "raw": "{{mediator-url}}/api/{{version}}/tracker/hash", |
| 527 | + "host": [ |
| 528 | + "{{mediator-url}}" |
| 529 | + ], |
| 530 | + "path": [ |
| 531 | + "api", |
| 532 | + "{{version}}", |
| 533 | + "tracker", |
| 534 | + "hash" |
| 535 | + ] |
| 536 | + }, |
| 537 | + "description": "Get a readable / friendly word tracker from the hash" |
| 538 | + }, |
| 539 | + "response": [] |
480 | 540 | } |
481 | 541 | ], |
482 | 542 | "event": [ |
483 | 543 | { |
484 | 544 | "listen": "prerequest", |
485 | 545 | "script": { |
486 | | - "id": "93000645-0e5d-4d68-9b76-bc2fc8fb6e8a", |
| 546 | + "id": "2a3c6fcf-7c49-4a51-aa97-26aaa2544240", |
487 | 547 | "type": "text/javascript", |
488 | 548 | "exec": [ |
489 | 549 | "" |
|
493 | 553 | { |
494 | 554 | "listen": "test", |
495 | 555 | "script": { |
496 | | - "id": "c68bbfaf-adac-418f-87f7-f2b6f81e6fd1", |
| 556 | + "id": "d7ef01db-6909-464c-b70e-8748b93d9631", |
497 | 557 | "type": "text/javascript", |
498 | 558 | "exec": [ |
499 | 559 | "" |
|
754 | 814 | { |
755 | 815 | "listen": "test", |
756 | 816 | "script": { |
757 | | - "id": "74f0deec-8658-42ed-af3e-77287ee6c656", |
| 817 | + "id": "0a8fc220-b377-479b-9b3a-70fe85ee1660", |
758 | 818 | "exec": [ |
759 | 819 | "pm.test(\"Ballot shares are returned in the same order as the request\", function () {", |
760 | 820 | " const requestJson = JSON.parse(pm.request.body.toString())", |
|
841 | 901 | { |
842 | 902 | "listen": "prerequest", |
843 | 903 | "script": { |
844 | | - "id": "7690e768-e219-435e-988b-705406e4713b", |
| 904 | + "id": "9539fa67-e461-4138-b3b9-691dc8e5284a", |
845 | 905 | "type": "text/javascript", |
846 | 906 | "exec": [ |
847 | 907 | "" |
|
851 | 911 | { |
852 | 912 | "listen": "test", |
853 | 913 | "script": { |
854 | | - "id": "072f942b-08c3-42d8-877b-16428077c390", |
| 914 | + "id": "724d61c2-5cf6-43ee-8994-0c9d596c1fea", |
855 | 915 | "type": "text/javascript", |
856 | 916 | "exec": [ |
857 | 917 | "" |
|
870 | 930 | { |
871 | 931 | "listen": "prerequest", |
872 | 932 | "script": { |
873 | | - "id": "8b52952d-726b-48cb-b3eb-7f19bfa44c61", |
| 933 | + "id": "3109002d-bdb4-4cf2-8ad8-d507c48afd57", |
874 | 934 | "type": "text/javascript", |
875 | 935 | "exec": [ |
876 | 936 | "" |
|
880 | 940 | { |
881 | 941 | "listen": "test", |
882 | 942 | "script": { |
883 | | - "id": "a0dc5753-cb73-44ad-9b75-4efe6c78ed79", |
| 943 | + "id": "8d5bbb95-fad8-4ee4-b727-4cbb6b39fc3f", |
884 | 944 | "type": "text/javascript", |
885 | 945 | "exec": [ |
886 | 946 | "pm.test(\"Status code is 200\", () => {", |
|
0 commit comments