No description, website, or topics provided.
Julia
Latest commit 263f4a1 Jul 5, 2015 @Quantisan add deploy info
Permalink
Failed to load latest commit information.
src
Dockerfile
README.md
REQUIRE
docker-compose.yml

README.md

privatise-data-release-service

A microservice to privatise data release using the MWEM mechanism (HLM12).

Getting Started

To start the server on port 8000,

docker-compose up

Example

Once the server is up, you can make a POST request like so:

$ curl -H "Content-Type: application/json" -X POST -d '[[1,0,0,1,1],[1,0,0,1,0],[1,1,1,0,0],[1,0,1,1,1],[1,1,0,0,1],[1,0,1,1,1],[0,0,0,0,1],[0,0,1,0,1],[1,1,1,1,0],[1,0,0,0,0],[0,1,1,1,1],[1,0,0,0,0],[1,1,0,0,1],[0,1,0,1,0],[1,0,0,0,0],[1,0,1,1,1],[1,1,0,1,1],[0,1,1,0,1],[1,1,1,0,1],[1,0,0,1,0],[0,0,1,1,1],[0,1,1,1,0],[0,1,1,0,1],[0,1,1,1,1],[1,1,0,1,0],[0,1,1,0,1],[0,1,0,0,1],[1,1,0,1,0],[1,0,0,1,1],[1,0,0,0,0],[1,0,1,1,1],[0,0,0,0,1],[1,1,1,1,0],[0,1,1,1,1],[1,0,1,1,1],[0,0,0,0,1],[0,1,0,0,1],[1,0,0,1,0],[1,0,0,0,1],[1,1,0,0,1],[0,0,1,1,1],[1,1,1,0,0],[1,1,1,1,0],[0,0,0,1,1],[0,0,0,0,0],[0,1,1,0,0],[0,0,1,1,0],[1,0,1,0,1],[1,0,0,1,0],[0,0,0,0,0],[1,0,0,0,0],[1,1,1,1,1],[1,0,0,1,1],[0,1,1,0,0],[1,1,1,1,0],[1,1,0,0,0],[1,1,1,0,1],[1,0,1,1,0],[0,0,1,1,0],[0,1,1,0,0],[0,0,1,1,0],[1,1,0,0,1],[0,1,1,1,0],[1,0,1,0,0],[0,0,0,0,0],[1,0,1,1,1],[0,0,0,0,1],[1,1,0,0,0],[1,0,0,0,0],[1,0,1,1,0],[1,1,1,1,1],[1,1,0,1,1],[1,0,0,0,0],[0,1,1,1,0],[0,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1.0],[1.0,0.0,0.0,0.0,0.0],[1.0,1.0,1.0,0.0,1.0],[1.0,1.0,1.0,0.0,1.0],[1.0,1.0,1.0,1.0,0.0],[0.0,0.0,1.0,0.0,0.0],[0.0,1.0,1.0,0.0,1.0],[1.0,1.0,1.0,0.0,1.0],[1.0,0.0,0.0,1.0,1.0],[1.0,0.0,0.0,1.0,1.0],[0.0,0.0,0.0,0.0,1.0],[0.0,0.0,0.0,0.0,0.0],[1.0,0.0,0.0,1.0,1.0],[1.0,0.0,1.0,0.0,0.0],[1.0,1.0,1.0,0.0,1.0],[0.0,0.0,1.0,1.0,1.0],[0.0,0.0,0.0,1.0,1.0],[1.0,1.0,0.0,0.0,1.0]]}

Deploy

Runs Docker image in the background

docker run -d -p 9000:8000 quantisan/privatise-data-release-service