jjrom / resto

A metadata catalog and search engine for geospatialized data
Apache License 2.0
56 stars 19 forks source link

Documentation insertFeature body is not inputFeature schema #432 #433

Closed qgau closed 3 months ago

qgau commented 3 months ago

Solves #432

jjrom commented 3 months ago

The HTML documentation is automatically generated from the PHP swagger annotations in the code, specifically these lines : https://github.com/jjrom/resto/blob/master/app/resto/core/api/CollectionsAPI.php#L555-L563

The subsequent HTML indicates "any" for the type which can be confusing but the description is clear : "Either a GeoJSON Feature or a GeoJSON FeatureCollection".

Since the HTML cannot be modified "by hand" (automatically generated). I close this comment