OpenDataSoft service objects with custom base URL

, ,
Tags: #<Tag:0x00007f491253b558> #<Tag:0x00007f491253b490> #<Tag:0x00007f491253b378>

It is possible to configure OpenDataSoft service for datasets exposed on a custom base URL. e.g. datasets from https://plateforme.api-agro.fr/pages/plateforme/

To do so you just need to configure the base_url parameter along with the dataset name parameter, e.g:

{
	"base_url": "https://plateforme.api-agro.fr/api",
	"name": "sols-bretagne-1-250000"
}

See https://www.simplicite.io/resources/documentation/05-remote/opendatasoft.md for details on OpenDataSoft service object configuration

Merci pour cette réponse simple et claire : j’avais oublié je pense “/api” à la fin de la base_url.