These are the endpoints that the API currently supports. If any of these endpoints are out of date or not working, please create an issue.
Basing off this article on REST API naming conventions:
- GET /api/honeyclients (get all honeyclients, or maybe first 50 or something)
- POST /api/honeyclients (creates a honeyclient)
- GET /api/honeyclients/{id} (get all information associated with a specific honeyclient)
- GET /api/honeyclients/{id}/artifacts (get all file artifacts like screenshots or js associated with specific honeyclient)
- GET /api/honeyclients/{id}/artifacts/{artifact-name} (get specific artifact associated with a honeyclient)
Prerequisites:
- Golang is installed
- Docker is installed
With Golang
- Run
go buildto compile the executable from the file "main.go" - Run the executable named "api" (ex: if using mac run
./api)
With Docker
- Run
docker run -p 8080:8080 csci4950tgt/api
- Run
docker build -t csci4950tgt/api .to build the image - Run
docker push csci4950tgt/apito push new image to Docker repo
- Run
go test(orgo test -vif you want verbose information)