{
	"info": {
		"_postman_id": "cded4135-a800-2752-4888-307196ec8f51",
		"name": "Geonature v2",
		"description": "GeoNature is a web application for naturalist data management developed by Ecrins National Park and Cevennes Nation Park.\nHere is the documentation about its web API.\n\nMore information :\nhttp://geonature.fr/\nhttps://github.com/PnX-SI/GeoNature",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
	},
	"item": [
		{
			"name": "Occurrence de taxons",
			"item": [
				{
					"name": "occtax/vreleve?cd_nom=351",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:8000/contact/vreleve?cd_nom=351&date_up=2016-01-01&date_low=2018-01-01&date_eq=2017-01-01&observer=1&observer=3",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"contact",
								"vreleve"
							],
							"query": [
								{
									"key": "cd_nom",
									"value": "351"
								},
								{
									"key": "date_up",
									"value": "2016-01-01"
								},
								{
									"key": "date_low",
									"value": "2018-01-01"
								},
								{
									"key": "date_eq",
									"value": "2017-01-01"
								},
								{
									"key": "observer",
									"value": "1"
								},
								{
									"key": "observer",
									"value": "3"
								}
							]
						},
						"description": "Return all the observations in GeoJson format with the current filter"
					},
					"response": []
				},
				{
					"name": "occtax/vrelevecontact",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:8000/contact/vrelevecontact?cd_nom=67111&orderby=cd_nom&order=desc&limit=1",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"contact",
								"vrelevecontact"
							],
							"query": [
								{
									"key": "cd_nom",
									"value": "67111"
								},
								{
									"key": "orderby",
									"value": "cd_nom"
								},
								{
									"key": "order",
									"value": "desc"
								},
								{
									"key": "limit",
									"value": "1"
								}
							]
						}
					},
					"response": []
				},
				{
					"name": "occtax/releve/1",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:8000/contact/releve/1",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"contact",
								"releve",
								"1"
							]
						}
					},
					"response": []
				},
				{
					"name": "occtax/releves",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:8000/contact/releves",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"contact",
								"releves"
							]
						},
						"description": "Return all releves"
					},
					"response": []
				},
				{
					"name": "occtax/occurrences",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:8000/contact/occurrences",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"contact",
								"occurrences"
							]
						},
						"description": "Return all occurences"
					},
					"response": []
				},
				{
					"name": "occtax/releve",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Authorization",
								"value": "Basic Og==",
								"disabled": true
							},
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							},
							{
								"key": "Cookie",
								"value": "token=eyJhbGciOiJIUzI1NiIsImlhdCI6MTU1NzM5MDAzNywiZXhwIjoxNTU3OTk0ODM3fQ.eyJpZF9yb2xlIjoxLCJub21fcm9sZSI6IkFkbWluaXN0cmF0ZXVyIiwicHJlbm9tX3JvbGUiOiJ0ZXN0IiwiaWRfYXBwbGljYXRpb24iOjMsImlkX29yZ2FuaXNtZSI6LTEsImlkZW50aWZpYW50IjoiYWRtaW4iLCJpZF9kcm9pdF9tYXgiOjF9.gUwFfKCpNe90eTrFJDowEnWwhIQoyeM-igc6cYb46sE",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n\"geometry\":\n\t{\"type\":\"Point\",\n\t\"coordinates\":[0.9008789062500001,47.14489748555398]},\n\t\"properties\":\n\t\t{\"id_releve_occtax\":null,\"id_dataset\":1,\"id_digitiser\":1,\"date_min\":\"2019-05-09\",\"date_max\":\"2019-05-09\",\"hour_min\":null,\"hour_max\":null,\"altitude_min\":null,\"altitude_max\":null,\"meta_device_entry\":\"web\",\"comment\":null,\"id_nomenclature_obs_technique\":316,\"observers\":[1],\"observers_txt\":null,\"id_nomenclature_grp_typ\":132,\n\t\t\t\"t_occurrences_occtax\":[{\n\t\t\t\t\"id_releve_occtax\":null,\"id_occurrence_occtax\":null,\"id_nomenclature_obs_meth\":41,\"id_nomenclature_bio_condition\":157,\"id_nomenclature_bio_status\":29,\"id_nomenclature_naturalness\":160,\"id_nomenclature_exist_proof\":81,\"id_nomenclature_observation_status\":88,\"id_nomenclature_blurring\":175,\"id_nomenclature_source_status\":75,\"determiner\":null,\"id_nomenclature_determination_method\":445,\"cd_nom\":67111,\"nom_cite\":\"Ablette =  <i> Alburnus alburnus (Linnaeus, 1758)</i> - [ES - 67111]\",\"meta_v_taxref\":null,\"sample_number_proof\":null,\"comment\":null,\n\t\t\t\t\t\"cor_counting_occtax\":[{\n\t\t\t\t\t\t\"id_counting_occtax\":null,\"id_nomenclature_life_stage\":1,\"id_nomenclature_sex\":171,\"id_nomenclature_obj_count\":146,\"id_nomenclature_type_count\":94,\"id_occurrence_occtax\":null,\"count_min\":1,\"count_max\":1\n\t\t\t\t\t\t\n\t\t\t\t\t}]\n\t\t\t\t\n\t\t\t}]\n\t}\n}"
						},
						"url": {
							"raw": "http://127.0.0.1:8000/occtax/releve",
							"protocol": "http",
							"host": [
								"127",
								"0",
								"0",
								"1"
							],
							"port": "8000",
							"path": [
								"occtax",
								"releve"
							]
						}
					},
					"response": []
				}
			],
			"description": "Routes of 'Occurrence de taxon' module.\n\nAccess to the naturalist observations entered in the 'Occurrence de taxon' module.\n\nAll data are exchanges in GeoJson format"
		},
		{
			"name": "Metadata",
			"item": [
				{
					"name": "meta/parameters/<param_name>/<id_org>",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:8000/meta/parameters/taxref_version",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"meta",
								"parameters",
								"taxref_version"
							]
						},
						"description": "Return the value of the parameter for an organism.\nThe second parameter is optional (return the default paramater value)"
					},
					"response": []
				},
				{
					"name": "meta/datasets",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Cookie",
								"value": "token=eyJleHAiOjE1MTU2NjY4NzIsImFsZyI6IkhTMjU2IiwiaWF0IjoxNTE1NjU5NjcyfQ.eyJpZGVudGlmaWFudCI6ImFnZW50IiwiaWRfYXBwbGljYXRpb24iOjE0LCJpZF9vcmdhbmlzbWUiOi0xLCJpZF9kcm9pdF9tYXgiOjMsImlkX3JvbGUiOjJ9.kwj4kOifWDo4WHMQXA2X4_lC3sQBUQuT6eRN46IDIVw"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:8000/meta/datasets",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"meta",
								"datasets"
							]
						},
						"description": "Liste des datasets"
					},
					"response": []
				},
				{
					"name": "meta/af",
					"request": {
						"method": "GET",
						"header": [
							{
								"key": "Cookie",
								"value": "token=eyJleHAiOjE1MTU2NjY4NzIsImFsZyI6IkhTMjU2IiwiaWF0IjoxNTE1NjU5NjcyfQ.eyJpZGVudGlmaWFudCI6ImFnZW50IiwiaWRfYXBwbGljYXRpb24iOjE0LCJpZF9vcmdhbmlzbWUiOi0xLCJpZF9kcm9pdF9tYXgiOjMsImlkX3JvbGUiOjJ9.kwj4kOifWDo4WHMQXA2X4_lC3sQBUQuT6eRN46IDIVw"
							}
						],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:8000/meta/datasets",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"meta",
								"datasets"
							]
						},
						"description": "Liste des cadres d'acquisitions"
					},
					"response": []
				}
			],
			"description": "Routes of the metadata module.\nInformations about datasets, acqusition framework, protocols, programs..."
		},
		{
			"name": "Nomenclatures",
			"item": [
				{
					"name": "nomenclatures/nomenclature/STADE_VIE?regne=Animalia",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:8000/nomenclatures/nomenclature/STADE_VIE?regne=Animalia",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"nomenclatures",
								"nomenclature",
								"STADE_VIE"
							],
							"query": [
								{
									"key": "regne",
									"value": "Animalia"
								}
							]
						},
						"description": "Return all nomenclatures for one type from its mnemonique code "
					},
					"response": []
				},
				{
					"name": "nomenclatures/nomenclatures?code_type=TYP_DENBR&code_type=STADE_VIE",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:8000/nomenclatures/nomenclatures?code_type=TYP_DENBR&code_type=STADE_VIE",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"nomenclatures",
								"nomenclatures"
							],
							"query": [
								{
									"key": "code_type",
									"value": "TYP_DENBR"
								},
								{
									"key": "code_type",
									"value": "STADE_VIE"
								}
							]
						},
						"description": "Return all nomenclature for several code types"
					},
					"response": []
				}
			],
			"description": "Routes of the nomenclature sub module.\n\nThis submodule is use to get the dropdown list's values of the differents forms.\nIn GeoNature we use the nomenclature of the SINP: http://standards-sinp.mnhn.fr/nomenclature/\n\nhttps://github.com/PnX-SI/Nomenclature-api-module"
		},
		{
			"name": "Ref_geo",
			"item": [
				{
					"name": "geo/areas - alltype",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"geometry\": {\"type\": \"Point\", \"coordinates\": [3.6054, 44.31736339]}\n}"
						},
						"url": {
							"raw": "http://localhost:8000/geo/areas",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"geo",
								"areas"
							]
						},
						"description": "From a posted geojson, the route return all the area intersected from l_areas"
					},
					"response": []
				},
				{
					"name": "geo/areas - filterby communes",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"geometry\": {\"type\": \"Point\", \"coordinates\": [3.6054, 44.31736339]},\n  \"id_type\":25\n}"
						},
						"url": {
							"raw": "http://localhost:8000/geo/areas",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"geo",
								"areas"
							]
						},
						"description": "From a posted geojson, the route return all the municipalities intersected"
					},
					"response": []
				}
			],
			"description": "Routes of the geographic referential module"
		},
		{
			"name": "Users",
			"item": [
				{
					"name": "users/menu/9",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:8000/users/menu/9",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"users",
								"menu",
								"9"
							]
						},
						"description": "Return all role for one menu"
					},
					"response": []
				},
				{
					"name": "users/role",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "application/json"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n\t\"id_role\":45,\n\t\"identifiant\": \"test\",\n\t\"nom_role\": \"test.test\",\n\t\"prenom_role\": \"nom test\",\n\t\"id_organisme\": 1\n}"
						},
						"url": {
							"raw": "http://localhost:8000/users/role",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"users",
								"role"
							]
						},
						"description": "Post a user"
					},
					"response": []
				},
				{
					"name": "login",
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"name": "Content-Type",
								"value": "application/json",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n\t\"id_role\":45,\n\t\"identifiant\": \"test\",\n\t\"nom_role\": \"test.test\",\n\t\"prenom_role\": \"nom test\",\n\t\"id_organisme\": 1\n}"
						},
						"url": {
							"raw": "http://127.0.0.1:8000/auth/login",
							"protocol": "http",
							"host": [
								"127",
								"0",
								"0",
								"1"
							],
							"port": "8000",
							"path": [
								"auth",
								"login"
							]
						},
						"description": "Post a user"
					},
					"response": []
				}
			],
			"description": "Routes of the user referential module"
		},
		{
			"name": "Taxonomy",
			"item": [
				{
					"name": "Taxon autocomplete",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:5000/api/taxref/allnamebylist/100?search_name=abl%20an",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "5000",
							"path": [
								"api",
								"taxref",
								"allnamebylist",
								"100"
							],
							"query": [
								{
									"key": "search_name",
									"value": "abl%20an"
								}
							]
						},
						"description": "Retourne les taxons de la liste 100 contenant \"gre\"\nRetourne tous les taxons de la liste sans la querystring"
					},
					"response": []
				},
				{
					"name": "Kingdom and group2Inpn",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:5000/api/taxref/regnewithgroupe2",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "5000",
							"path": [
								"api",
								"taxref",
								"regnewithgroupe2"
							]
						},
						"description": "Retunr all the kingdom and their 'group2_inpn'"
					},
					"response": []
				},
				{
					"name": "Taxon info",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:5000/api/taxref/212",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "5000",
							"path": [
								"api",
								"taxref",
								"212"
							]
						},
						"description": "Return the info of a taxon from its cd_nom"
					},
					"response": []
				},
				{
					"name": "Bib_nom info",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:5000/api/taxref/212",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "5000",
							"path": [
								"api",
								"taxref",
								"212"
							]
						},
						"description": "Return attributes info from a cd_nom.\nAttributes are complementary info of a taxon for each structure (ex: patrimonial, description locale...)\nWithout the id_attribut parameter, return all the attributes"
					},
					"response": []
				}
			],
			"description": "Routes of Taxhub app.\nFrom taxonomie schema in database"
		},
		{
			"name": "Synthese",
			"item": [
				{
					"name": "color_taxon",
					"request": {
						"method": "GET",
						"header": [],
						"body": {
							"mode": "raw",
							"raw": ""
						},
						"url": {
							"raw": "http://localhost:8000/synthese/color_taxon?code_area_type=M10&id_area=35551&id_area=35552&cd_nom=67111",
							"protocol": "http",
							"host": [
								"localhost"
							],
							"port": "8000",
							"path": [
								"synthese",
								"color_taxon"
							],
							"query": [
								{
									"key": "code_area_type",
									"value": "M10",
									"description": "code_area_type (str): Type area code (table ref_geo.bib_areas_types.type_code)"
								},
								{
									"key": "id_area",
									"value": "35551",
									"description": "id_type (int): Id of area (table ref_geo.l_areas.id_area)"
								},
								{
									"key": "id_area",
									"value": "35552",
									"description": "id_type (int): Id of area (table ref_geo.l_areas.id_area)"
								},
								{
									"key": "cd_nom",
									"value": "67111",
									"description": "cd_nom (int): Code taxon (table taxonomie.taxref.cd_nom)"
								}
							]
						}
					},
					"response": []
				}
			]
		}
	]
}