Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (36 sloc) 1.41 KB

Demo Service

A demonstration instance of Arctic Bio Map Server is online for testing as an API-only service (it does not include a web user interface).

The database is automatically reset every hour.

Here are some test queries you can run with curl.

Get All Users

$ curl -s -H "Content-Type: application/json" -XGET ""

Get All Sightings

$ curl -s -H "Content-Type: application/json" -XGET "*&user_id=*"

Create a User

$ cat > tmp_user << _EOF_
	"email": "",
	"passwd": "secret",
	"name": "Me",
	"address": "Canada",
	"occupation": "worker",
	"year_hunting": 99

$ curl -s -H "Content-Type: application/json" -XPOST --data @tmp_user ""

Create a Sighting

$ cat > tmp_sighting << _EOF_
	"user_id": 1,
	"animal_name": "caribou",
	"no_of_adults": 2,
	"no_of_calves": 1,
	"unusual_observations": "N/A",
	"lat": 51.0,
	"lon": -114.0,
	"visible_signs": ["A", "B", "C"],
	"photos": null

$ curl -s -H "Content-Type: application/json" -XPOST --data @tmp_sighting ""
You can’t perform that action at this time.