Space DNS for future
curl --location --request POST 'http://localhost:9001/sectors' \
--header 'Content-Type: text/plain' \
--data-raw '{
"sector_name" : "sector1"
}'
curl --location --request POST 'http://localhost:9001/drones' \
--header 'Content-Type: text/plain' \
--data-raw '{
"name" : "drone1",
"sector_id" : 1
}'
curl --location --request POST 'http://localhost:9001/dns' \
--header 'Content-Type: text/plain' \
--data-raw '{
"name" : "dns1",
"sectors" : [1]
}'
curl --location --request GET 'http://localhost:9001/sectors'
curl --location --request GET 'http://localhost:9001/drones'
curl --location --request GET 'http://localhost:9001/dns'
curl --location --request POST 'http://localhost:9001/dns/1/drones/1/location' \
--header 'Content-Type: text/plain' \
--data-raw '{
"x": 123.12,
"y": 456.56,
"z": 789.89,
"vel": 20.0
}'
curl --location --request POST 'http://localhost:9001/dns/1/drones/1/location?is_custom=true' \
--header 'Content-Type: text/plain' \
--data-raw '{
"x": 123.12,
"y": 456.56,
"z": 789.89,
"vel": 20.0
}'
cd space_exploration/cmd/space_explore
./space_explore
A proper Go environment is required in order to run this project. Once setup, tests can be run with the following command:
cd space_exploration/cmd/space_explore
go test -v ./...
docker build -t space_exploration .
docker run -p 9001:9001 -it --rm --name space space_exploration