-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtesting.rest
More file actions
39 lines (28 loc) · 1.9 KB
/
Copy pathtesting.rest
File metadata and controls
39 lines (28 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
POST http://localhost:5000/api/huffman-text-encode
content-type: application/json
{
"payload": "aababcabcd"
}
###
POST http://localhost:5000/api/huffman-text-decode
content-type: application/json
{
"payload": "0010010111010111110"
}
####
POST http://localhost:5000/api/huffman-text-encode
content-type: application/json
{
"payload": "Rajiv Hari Om Bhatia, known professionally as Akshay Kumar, is an India-born naturalized Canadian actor, producer, martial artist and television personality who works in Bollywood, the commercial Hindi language film industry based chiefly in Mumbai, India"
}
###
POST http://localhost:5000/api/huffman-text-decode
content-type: application/json
{
"payload":"11000000010100001111111100010110100101010100111111110110001000001111011000111110010010110111111010000101011000001001011011000110011010010000111011000101111101111001110011110110100101000000000001101010101110010100101001000001110011001001000110101100011010001100111010011100010101111111100101010100110111000011001110101111010100001100010010110011110011011001010110110001101110100000111110001100111011101010111000001010100101011010111101010011010101100111101101100111000101010010000111011011010000111100111110101110001010100111010011111011111101000001010100111110111111111001101110101010011101010111011111010000111011000101111111100111101101001101001000111010111111000110100101000001111110110011010111000111001001101011100010110011110000011100101111110011011000111011000000000001101100010110011011010000101011101111001011101101110011011000111001111110101111100111111010000010100101011111100111010111110100000101001100001000011010100001011101101001011111100000011110111111001110100001111100110110111001101010010010101110011101110101011100111100101111111010010110000001101011111100110110001001000110011100100101011110001010111000011001110101111010"
}
###
GET http://localhost:5000/api/get-tree
####
0010010111010111110
aababcabcd