From 7bcdff58685a14bee4ec468d41e9d02fb6922244 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Tue, 3 Dec 2024 16:39:09 +0100 Subject: [PATCH] Update changelog --- CHANGELOG.md | 19 +++++++++++++++++++ spec/swagger/api/v1/photos_controller_spec.rb | 11 ----------- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a29907c..c0bfa4f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,25 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## The Photoprism integration release +⚠️ This release introduces a breaking change. The `GET /api/v1/photos` endpoint now returns following structure of the response: + +```json +[ + { + "id": id, + "latitude": latitude, + "longitude": longitude, + "localDateTime": local_date_time, + "originalFileName": original_file_name, + "city": city, + "state": state, + "country": country, + "type": type, // "image" or "video" + "source": source // "photoprism" or "immich" + } +] +``` + ### Added - Photos from Photoprism are now can be shown on the map. To enable this feature, you need to provide your Photoprism instance URL and API key in the Settings page. Then you need to enable "Photos" layer on the map (top right corner). diff --git a/spec/swagger/api/v1/photos_controller_spec.rb b/spec/swagger/api/v1/photos_controller_spec.rb index 5b63d307..f441c307 100644 --- a/spec/swagger/api/v1/photos_controller_spec.rb +++ b/spec/swagger/api/v1/photos_controller_spec.rb @@ -102,17 +102,6 @@ RSpec.describe 'Api::V1::PhotosController', type: :request do items: { type: :object, properties: { - # { - # id: id, - # latitude: latitude, - # longitude: longitude, - # localDateTime: local_date_time, - # originalFileName: original_file_name, - # city: city, - # state: state, - # country: country, - # type: type, - # source: source id: { type: :string }, latitude: { type: :number, format: :float }, longitude: { type: :number, format: :float },