photoprism/internal/api
Brandon Richardson 3d962e2382 Backend: Expose prometheus-style metrics endpoint
Expose a new API which can be scraped by prometheus to gather useful
metrics from an instance. The new endpoint exposes photoprism build
version information, golang version, edition and various count metrics.
2023-12-06 08:13:24 +01:00
..
abort.go Clean: Shorten error log sanitization function name #439 #3588 2023-08-15 17:05:55 +02:00
albums.go Share: Improve query validation in the search and albums API 2023-10-07 17:33:04 +02:00
albums_search.go Albums: Add experimental private album flag to edit dialog #480 2023-02-21 00:02:44 +01:00
albums_search_test.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
albums_test.go API: Update albums_test.go 2023-02-09 14:06:01 +01:00
api.go Links: Change https://photoprism.app/ to https://www.photoprism.app/ 2023-02-08 09:07:42 +01:00
api_client.go Security: Add http rate limiter and auto tls mode #98 2022-10-11 22:44:11 +02:00
api_client_config.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
api_log.go Auth: Session and ACL enhancements #98 #1746 2022-09-28 09:01:17 +02:00
api_test.go Backend: Expose prometheus-style metrics endpoint 2023-12-06 08:13:24 +01:00
api_ws.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
api_ws_publish.go Auth: Open album share links in the regular user interface #98 #782 2022-10-02 11:38:30 +02:00
api_ws_test.go Auth: Open album share links in the regular user interface #98 #782 2022-10-02 11:38:30 +02:00
auth.go Auth: Apply user rights and permissions in the search API #98 #782 2022-09-30 00:42:19 +02:00
auth_test.go API: Refactor authentication tests to use conf.SetAuthMode() #98 2022-10-12 18:11:20 +02:00
auth_tokens.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
batch.go SQLite: Improve logging to confirm where the error is triggered #3742 2023-09-19 09:12:15 +02:00
batch_test.go Settings: Enable delete feature by default #3801 2023-10-08 15:42:23 +02:00
cache.go Albums: Regenerate share preview after one hour and after changes #3658 2023-09-08 17:36:56 +02:00
cache_test.go Videos: Allow setting a lower TTL for caching video content #3631 2023-08-15 11:06:43 +02:00
config_options.go Server: Add "restart required" flag and button to restart the server 2023-03-27 19:27:19 +02:00
config_options_test.go Auth: Session and ACL enhancements #98 #1746 2022-09-28 09:01:17 +02:00
config_settings.go Settings: Prevent success notification from being displayed twice 2022-12-28 20:14:35 +01:00
config_settings_test.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
connect.go Upgrade: Improve error handling and messages #3813 2023-10-13 12:43:20 +02:00
connect_test.go API: Improve logs and add /api/v1/connect endpoint for auth callbacks 2022-07-19 16:58:43 +02:00
covers.go SQLite: Improve logging to confirm where the error is triggered #3742 2023-09-19 09:12:15 +02:00
covers_test.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
download_album.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
download_album_test.go UX: Skip RAW files by default when downloading albums #2234 2022-04-11 11:53:21 +02:00
download_file.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
download_file_test.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
errors.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
errors_test.go UX: Add button to clear error log history in Library > Errors #1683 2022-04-03 12:37:43 +02:00
faces.go Auth: Session and ACL enhancements #98 #1746 2022-09-28 09:01:17 +02:00
faces_search.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
faces_search_test.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
faces_test.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
feedback.go Upgrade: Improve error handling and messages #3813 2023-10-13 12:43:20 +02:00
feedback_test.go Backend: Format go imports 2020-11-21 18:08:41 +01:00
file_delete.go Edit: Change image orientation through the user interface #464 2023-03-20 16:18:27 +01:00
file_delete_test.go Tests: Add tests for internal/api 2021-03-10 16:55:55 +01:00
file_orientation.go Photos: Update file mod time when changing image orientation #464 2023-03-22 17:41:07 +01:00
files.go Auth: Session and ACL enhancements #98 #1746 2022-09-28 09:01:17 +02:00
files_test.go Auth: Session and ACL enhancements #98 #1746 2022-09-28 09:01:17 +02:00
folders_cover.go SQLite: Improve logging to confirm where the error is triggered #3742 2023-09-19 09:12:15 +02:00
folders_cover_test.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
folders_search.go Albums: Add experimental private album flag to edit dialog #480 2023-02-21 00:02:44 +01:00
folders_search_test.go API: Add sort order "random" to find a random set of photos #153 2023-01-30 12:27:34 +01:00
headers.go Index: Add native support for MP4 and Samsung/Google Motion Photos #439 2023-09-22 23:59:56 +02:00
import.go Video: Add transcoding libs and improve error handling #3466 2023-07-15 15:17:41 +02:00
import_test.go Logs: Improve event log and messages in i18n package 2020-07-07 10:51:55 +02:00
index.go Library: Add option to run index and cache cleanup from the UI #3699 2023-09-03 16:02:42 +02:00
index_test.go Logs: Improve event log and messages in i18n package 2020-07-07 10:51:55 +02:00
labels.go Auth: Session and ACL enhancements #98 #1746 2022-09-28 09:01:17 +02:00
labels_search.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
labels_search_test.go Auth: Session and ACL enhancements #98 #1746 2022-09-28 09:01:17 +02:00
labels_test.go Auth: Session and ACL enhancements #98 #1746 2022-09-28 09:01:17 +02:00
links.go Moments: Change default sort order in the overview to "newest" #3280 2023-03-13 22:17:23 +01:00
links_test.go API: Code clean-up #3297 2023-03-20 20:42:13 +01:00
markers.go Faces: Add POST REST endpoint to manually create new file markers #1548 2023-07-27 19:13:00 +02:00
markers_test.go Faces: Add POST REST endpoint to manually create new file markers #1548 2023-07-27 19:13:00 +02:00
metrics.go Backend: Expose prometheus-style metrics endpoint 2023-12-06 08:13:24 +01:00
metrics_test.go Backend: Expose prometheus-style metrics endpoint 2023-12-06 08:13:24 +01:00
moments_time.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
moments_time_test.go Backend: Format go imports 2020-11-21 18:08:41 +01:00
photo_label.go Auth: Session and ACL enhancements #98 #1746 2022-09-28 09:01:17 +02:00
photo_label_test.go Backend: Add translations for API messages 2020-07-04 12:54:35 +02:00
photo_unstack.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
photo_unstack_test.go Backups: Rename album backups to exports and improve command help #1887 2022-01-05 11:40:44 +01:00
photos.go Edit: Change image orientation through the user interface #464 2023-03-20 16:18:27 +01:00
photos_search.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
photos_search_geo.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
photos_search_geo_test.go Auth: Open album share links in the regular user interface #98 #782 2022-10-02 11:38:30 +02:00
photos_search_test.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
photos_test.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
reactions.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
response.go Server: Add "restart required" flag and button to restart the server 2023-03-27 19:27:19 +02:00
server.go Server: Add "restart required" flag and button to restart the server 2023-03-27 19:27:19 +02:00
services.go API: Add action and user context to indexing events #98 2023-03-11 14:09:00 +01:00
services_search.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
services_search_test.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
services_test.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
services_upload.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
services_upload_test.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
session.go Auth: Refactor session API #98 2023-03-10 12:15:10 +01:00
session_create.go Auth: Refactor session API #98 2023-03-10 12:15:10 +01:00
session_delete.go Auth: Refactor session API #98 2023-03-10 12:15:10 +01:00
session_get.go Auth: Refactor session API #98 2023-03-10 12:15:10 +01:00
session_test.go Auth: Refactor session API #98 2023-03-10 12:15:10 +01:00
share.go Albums: Fix generation of site URL when opening a share link #3658 2023-08-21 11:29:41 +02:00
share_preview.go Albums: Downsize share preview image from 1600x900 to 1200x675 #3658 2023-09-09 10:40:25 +02:00
share_preview_test.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
share_test.go Albums: Fix generation of site URL when opening a share link #3658 2023-08-21 11:29:41 +02:00
status.go Server: Add "restart required" flag and button to restart the server 2023-03-27 19:27:19 +02:00
status_test.go Backend: Format go imports 2020-11-21 18:08:41 +01:00
subjects.go People: Fix merging and renaming in connection with deleted names #3414 2023-08-21 15:04:14 +02:00
subjects_search.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
subjects_search_test.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
subjects_test.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
svg.go Icons: Improve UI contrast by changing color from black to dim gray 2023-09-11 10:43:40 +02:00
svg_test.go Tests: Update fixtures and folder test 2020-12-30 18:12:30 +01:00
thumbnails.go Search: Include RAW files in results by default #2040 2023-10-06 02:22:48 +02:00
thumbnails_test.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
users_avatar.go Auth: Improve privilege level change detection #3512 2023-07-18 23:35:10 +02:00
users_avatar_test.go Auth: Extend account settings with user details and avatar upload #98 2022-10-17 19:07:38 +02:00
users_password.go Auth: Improve privilege level change detection #3512 2023-07-18 23:35:10 +02:00
users_password_test.go Auth: Extend account settings with user details and avatar upload #98 2022-10-17 19:07:38 +02:00
users_update.go Auth: Improve privilege level change detection #3512 2023-07-18 23:35:10 +02:00
users_update_test.go Auth: Refactor user management API and CLI commands #98 2023-03-08 23:30:39 +01:00
users_upload.go Video: Add transcoding libs and improve error handling #3466 2023-07-15 15:17:41 +02:00
users_upload_test.go Auth: Extend account settings with user details and avatar upload #98 2022-10-17 19:07:38 +02:00
video.go Videos: Cache embedded media to allow streaming and transcoding #3764 2023-09-24 17:13:06 +02:00
video_test.go Index: Add native support for MP4 and Samsung/Google Motion Photos #439 2023-09-22 23:59:56 +02:00
zip.go Routing: Prefix frontend UI routes with /library #840 #2466 2022-10-15 21:54:11 +02:00
zip_test.go Zip: Improve download handler, tests and logging #2532 2022-07-21 15:16:20 +02:00