API: Update Swagger docs for the /api/v1/places endpoints #465

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-07-02 20:42:42 +02:00
parent cb208bc09f
commit 829611c37f
2 changed files with 6 additions and 6 deletions

View File

@@ -11,13 +11,13 @@ import (
"github.com/photoprism/photoprism/pkg/txt"
)
// GetPlacesReverse performs a reverse geocoding lookup using PhotoPrism Places API.
// GetPlacesReverse returns location details for the specified coordinates.
//
// GET /api/v1/places/reverse?lat=12.444526469291622&lng=-69.94435584903263
//
// @Summary Reverse geocodes coordinates to a place name
// @Summary returns location details for the specified coordinates
// @Id GetPlacesReverse
// @Tags Maps
// @Tags Places
// @Produce json
// @Param lat query string true "Latitude"
// @Param lng query string true "Longitude"

View File

@@ -12,13 +12,13 @@ import (
"github.com/photoprism/photoprism/pkg/txt"
)
// GetPlacesSearch performs a place search using PhotoPrism Places API.
// GetPlacesSearch returns locations that match the specified search query.
//
// GET /api/v1/places/search?q=query&locale=en&count=10
//
// @Summary Search for places using text query
// @Summary returns locations that match the specified search query
// @Id GetPlacesSearch
// @Tags Maps
// @Tags Places
// @Produce json
// @Param q query string true "Search query"
// @Param locale query string false "Locale for results (default: en)"