Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Encoding web service

to compile and install

go install github.com/saw2th/encoding-proj/encserv

using the server

run using:

bin/encserv

storing Content

curl -X POST  http://localhost:8080/store -d '{"Id" : "123", "Content": "abcde"}'

example return:

{"Key":"5151d9ef0a6ff067447f72cebd532ca3"}

retrieving Content

then copy the 'Key' value to the POST data 'Key' on the retrieve url

curl -X POST  http://localhost:8080/retrieve -d '{"Id" : "123", "Key": "5151d9ef0a6ff067447f72cebd532ca3"}'

example return:

{"Content":"abcde"}

To run test on client

go test github.com/saw2th/encoding-proj/enc-client

About

Encoding web service

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages