photoprism/internal/api
Michael Mayer b71ec5bce1 Config: Fix assets path and disable hub updates when running unit tests
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-04 14:16:11 +02:00
..
download API: Add const, func, and struct comments for easier troubleshooting 2025-09-30 22:02:43 +02:00
embed UX: Refactor video formats and codecs in front and backend #1307 #3168 2025-01-28 23:26:52 +01:00
testdata AI: Finalize facial embeddings, labels and nsfw API endpoints #127 #1090 2025-04-10 20:28:26 +02:00
abort.go API: Add const, func, and struct comments for easier troubleshooting 2025-09-30 22:02:43 +02:00
albums.go Auth: Add "node" and "portal" roles, refactor session entity #98 2025-09-18 13:33:18 +02:00
albums_search.go API: Improve logging of bad request errors across all endpoints #271 2025-07-10 09:38:36 +02:00
albums_search_test.go Config: Add "develop" feature flag to disable new viewer sidebar #3168 2025-02-03 12:29:02 +01:00
albums_test.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
api.go API: Add security definitions to swagger annotations 2025-05-05 16:50:33 +02:00
api_auth.go Auth: Support asymmetric JSON Web Tokens (JWT) and Key Sets (JWKS) #5230 2025-09-25 17:52:44 +02:00
api_auth_jwt.go API: Refactor JWT-based request authorization #98 #5230 2025-09-26 05:32:30 +02:00
api_auth_jwt_test.go API: Refactor JWT-based request authorization #98 #5230 2025-09-26 05:32:30 +02:00
api_auth_test.go Backend: Introduce optimized test config helpers to improve performance 2025-09-25 23:09:52 +02:00
api_client_config.go Backend: Add security-focused tests, harden WebDAV and use safe.Download 2025-09-22 10:42:53 +02:00
api_client_config_test.go AI: Default to the 720x720 fit thumb for generating captions #3438 #5011 2025-07-16 14:58:44 +02:00
api_event.go API: Add const, func, and struct comments for easier troubleshooting 2025-09-30 22:02:43 +02:00
api_log.go Logs: Shorten the names of error log helper functions 2024-01-18 11:23:59 +01:00
api_methods.go API: Improve form and tests for POST /batch/photos/edit endpoint #271 2025-07-08 10:40:45 +02:00
api_request.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
api_response.go Auth: Use hashed auth tokens for enhanced security #3943 #808 #782 2024-01-06 17:35:19 +01:00
api_response_headers.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
api_response_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
api_test.go Config: Fix assets path and disable hub updates when running unit tests 2025-10-04 14:16:11 +02:00
auth_tokens.go Security: Use individual preview tokens for each user account #98 2022-10-13 22:11:02 +02:00
batch_albums.go API: Improve logging of bad request errors across all endpoints #271 2025-07-10 09:38:36 +02:00
batch_labels.go API: Improve logging of bad request errors across all endpoints #271 2025-07-10 09:38:36 +02:00
batch_photos.go Backend: Add security-focused tests, harden WebDAV and use safe.Download 2025-09-22 10:42:53 +02:00
batch_photos_edit.go API: Update Swagger docs of batch edit endpoint #271 2025-07-10 11:16:23 +02:00
batch_photos_edit_test.go API: Improve form and tests for POST /batch/photos/edit endpoint #271 2025-07-08 10:40:45 +02:00
batch_photos_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
cache.go API: Update Thumb/ThumbSrc for subjects and labels #4151 2025-10-03 23:17:07 +02:00
cache_test.go API: Update Thumb/ThumbSrc for subjects and labels #4151 2025-10-03 23:17:07 +02:00
cluster_metrics.go Backend: Refactor middleware naming and improve code comments #5235 2025-09-30 23:25:53 +02:00
cluster_metrics_test.go API: Add internal/api/cluster_metrics_test.go #98 #5230 2025-09-26 06:59:05 +02:00
cluster_nodes.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
cluster_nodes_redaction_test.go Auth: Support asymmetric JSON Web Tokens (JWT) and Key Sets (JWKS) #5230 2025-09-25 17:52:44 +02:00
cluster_nodes_register.go Auth: Return and persist ClusterCIDR when registering a node #98 #5230 2025-09-26 06:17:31 +02:00
cluster_nodes_register_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
cluster_nodes_register_url_test.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
cluster_nodes_test.go Auth: Support asymmetric JSON Web Tokens (JWT) and Key Sets (JWKS) #5230 2025-09-25 17:52:44 +02:00
cluster_nodes_update_siteurl_test.go Auth: Support asymmetric JSON Web Tokens (JWT) and Key Sets (JWKS) #5230 2025-09-25 17:52:44 +02:00
cluster_permissions_test.go API: Add GET /api/v1/cluster/metrics endpoint #98 #5230 2025-09-26 06:36:23 +02:00
cluster_summary.go Auth: Return and persist ClusterCIDR when registering a node #98 #5230 2025-09-26 06:17:31 +02:00
cluster_theme.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
cluster_theme_test.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
config_options.go CLI: Add "photoprism vision reset" command to reset metadata #5233 2025-09-29 18:59:52 +02:00
config_options_test.go Config: Add "develop" feature flag to disable new viewer sidebar #3168 2025-02-03 12:29:02 +01:00
config_settings.go Auth: Add "node" and "portal" roles, refactor session entity #98 2025-09-18 13:33:18 +02:00
config_settings_test.go Config: Add "develop" feature flag to disable new viewer sidebar #3168 2025-02-03 12:29:02 +01:00
connect.go Backend: Add security-focused tests, harden WebDAV and use safe.Download 2025-09-22 10:42:53 +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 Config: Add an option to disable the web user interface #5111 2025-07-14 19:30:24 +02:00
covers_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
doc_overrides.go API: Add const, func, and struct comments for easier troubleshooting 2025-09-30 22:02:43 +02:00
docs.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
download.go API: Disable gzip compression for /api/v1/dl endpoint #127 #1090 2025-04-11 14:13:25 +02:00
download_album.go API: Update swagger endpoint documentation #5133 2025-08-28 11:13:28 +02:00
download_album_test.go Tests: Add unit tests 2025-03-18 15:20:51 +01:00
download_test.go API: Disable gzip compression for /api/v1/dl endpoint #127 #1090 2025-04-11 14:13:25 +02:00
echo.go API: Update swagger endpoint documentation #5133 2025-08-28 10:56:30 +02:00
echo_test.go CLI: Added JWT issuance and diagnostics sub commands #5230 2025-09-26 02:38:49 +02:00
errors.go API: Add "@Accept json" Swagger doc annotations where applicable 2025-01-19 15:26:18 +01:00
errors_test.go API: Add additional fields to label and subject edit forms #383 #3168 2025-01-17 02:55:07 +01:00
faces.go API: Improve logging of bad request errors across all endpoints #271 2025-07-10 09:38:36 +02:00
faces_search.go API: Improve logging of bad request errors across all endpoints #271 2025-07-10 09:38:36 +02:00
faces_search_test.go Config: Add "develop" feature flag to disable new viewer sidebar #3168 2025-02-03 12:29:02 +01:00
faces_test.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
feedback.go API: Update swagger endpoint documentation #5133 2025-08-28 10:56:30 +02:00
feedback_test.go API: Add .well-known/oauth-authorization-server route handler #808 #3943 2024-01-08 14:53:39 +01:00
file_delete.go API: Add "@Accept json" Swagger doc annotations where applicable 2025-01-19 15:26:18 +01:00
file_delete_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
file_orientation.go API: Add "@Accept json" Swagger doc annotations where applicable 2025-01-19 15:26:18 +01:00
files.go AI: Add vision package and vision API endpoints #127 #1090 2025-04-06 23:39:37 +02:00
files_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
folders_cover.go Config: Add an option to disable the web user interface #5111 2025-07-14 19:30:24 +02:00
folders_cover_test.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
folders_search.go Backend: Add security-focused tests, harden WebDAV and use safe.Download 2025-09-22 10:42:53 +02:00
folders_search_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
health.go API: Add cluster operations endpoints to manage and register nodes #98 2025-09-15 06:43:43 +02:00
import.go API: Add const, func, and struct comments for easier troubleshooting 2025-09-30 22:02:43 +02:00
import_test.go Tests: Add unit tests 2025-03-12 16:34:28 +01:00
index.go Auth: Add "node" and "portal" roles, refactor session entity #98 2025-09-18 13:33:18 +02:00
index_test.go API: Add additional fields to label and subject edit forms #383 #3168 2025-01-17 02:55:07 +01:00
labels.go API: Update Thumb/ThumbSrc for subjects and labels #4151 2025-10-03 23:17:07 +02:00
labels_search.go AI: Improve the generation, sorting, and filtering of labels #5232 2025-10-02 13:08:52 +02:00
labels_search_test.go API: Add additional fields to label and subject edit forms #383 #3168 2025-01-17 02:55:07 +01:00
labels_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
links.go Backend: Add security-focused tests, harden WebDAV and use safe.Download 2025-09-22 10:42:53 +02:00
links_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
markers.go API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +02:00
markers_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
metrics.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
metrics_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
moments_time.go API: Add Swagger annotations #2132 2024-09-04 13:50:24 +02:00
moments_time_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
oauth_authorize.go API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +02:00
oauth_authorize_test.go Tests: Add unit tests 2024-07-16 17:26:18 +02:00
oauth_revoke.go API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +02:00
oauth_revoke_test.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
oauth_token.go API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +02:00
oauth_token_ratelimit_test.go Backend: Add security-focused tests, harden WebDAV and use safe.Download 2025-09-22 10:42:53 +02:00
oauth_token_test.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
oauth_userinfo.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
oauth_userinfo_test.go Tests: Add unit tests 2024-07-16 17:26:18 +02:00
oidc_login.go Backend: Refactor middleware naming and improve code comments #5235 2025-09-30 23:25:53 +02:00
oidc_login_test.go Tests: Add unit tests 2024-07-17 16:35:49 +02:00
oidc_redirect.go API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +02:00
oidc_redirect_test.go Videos: Refactor codec, content and file type specifications #4770 2025-02-05 00:30:45 +01:00
options.go API: Update swagger endpoint documentation #5133 2025-08-28 11:00:19 +02:00
photo_label.go CLI: Add "photoprism vision reset" command to reset metadata #5233 2025-09-29 18:59:52 +02:00
photo_label_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
photo_unstack.go Backend: Improve Copy()/Move() and increase pkg/internal test coverage 2025-09-22 03:07:51 +02:00
photo_unstack_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
photos.go Config: Add fs.ExtYml file extension const for transitioning to ".yaml" 2025-09-13 02:09:22 +02:00
photos_search.go Auth: Add "node" and "portal" roles, refactor session entity #98 2025-09-18 13:33:18 +02:00
photos_search_geo.go Auth: Add "node" and "portal" roles, refactor session entity #98 2025-09-18 13:33:18 +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 Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
photos_test.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
places_reverse.go Places: Add config option to specify location details locale #465 #883 2025-07-03 12:58:20 +02:00
places_search.go Places: Add config option to specify location details locale #465 #883 2025-07-03 12:58:20 +02:00
places_test.go Tests: Add unit tests #465 2025-07-09 14:57:32 +02:00
reactions.go Auth: Add "node" and "portal" roles, refactor session entity #98 2025-09-18 13:33:18 +02:00
server.go API: Update swagger endpoint documentation #5133 2025-08-28 10:56:30 +02:00
services.go Config: Add an option to disable the web user interface #5111 2025-07-14 19:30:24 +02:00
services_search.go API: Improve logging of bad request errors across all endpoints #271 2025-07-10 09:38:36 +02:00
services_search_test.go API: Add additional fields to label and subject edit forms #383 #3168 2025-01-17 02:55:07 +01:00
services_test.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
services_upload.go API: Improve logging of bad request errors across all endpoints #271 2025-07-10 09:38:36 +02:00
services_upload_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
session.go Backend: Move get package to /internal/photoprism/get 2024-07-02 08:03:30 +02:00
session_create.go API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +02:00
session_delete.go API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +02:00
session_get.go API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +02:00
session_ratelimit_test.go Backend: Add security-focused tests, harden WebDAV and use safe.Download 2025-09-22 10:42:53 +02:00
session_response.go Auth: Add "node" and "portal" roles, refactor session entity #98 2025-09-18 13:33:18 +02:00
session_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
share.go Sharing: Don't use the album UID twice in the redirect URL 2025-03-19 11:52:46 +01:00
share_preview.go Videos: Refactor codec, content and file type specifications #4770 2025-02-05 00:30:45 +01:00
share_preview_test.go Auth: Add CLI command to create access tokens for apps #782 #808 #3943 2024-01-05 16:31:07 +01:00
share_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
status.go API: Update swagger endpoint documentation #5133 2025-08-28 11:20:00 +02:00
status_test.go API: Add additional fields to label and subject edit forms #383 #3168 2025-01-17 02:55:07 +01:00
subjects.go API: Improve logging of bad request errors across all endpoints #271 2025-07-10 09:38:36 +02:00
subjects_search.go API: Improve logging of bad request errors across all endpoints #271 2025-07-10 09:38:36 +02:00
subjects_search_test.go Config: Add "develop" feature flag to disable new viewer sidebar #3168 2025-02-03 12:29:02 +01:00
subjects_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
svg.go API: Embed updated icons for the /api/v1/svg endpoints #3168 2024-12-20 05:16:35 +01:00
svg_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
swagger.json AI: Improve the generation, sorting, and filtering of labels #5232 2025-10-02 13:08:52 +02:00
thumbnails.go API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +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 API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +02:00
users_avatar_test.go Test: Use PascalCase names for all Go subtests in /internal 2025-10-02 14:50:02 +02:00
users_passcode.go API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +02:00
users_passcode_test.go Account: Refactor access token API and request forms #808 #4114 2024-04-05 14:46:11 +02:00
users_password.go API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +02:00
users_password_test.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
users_sessions.go API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +02:00
users_sessions_test.go Videos: Refactor codec, content and file type specifications #4770 2025-02-05 00:30:45 +01:00
users_update.go API: Add missing Swagger endpoint annotations and update swagger.json 2025-09-22 04:12:02 +02:00
users_update_test.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
users_upload.go CLI: Add txt.JoinAnd() helper function to format lists of items #5233 2025-09-29 19:25:47 +02:00
users_upload_multipart_test.go Backend: Add security-focused tests, harden WebDAV and use safe.Download 2025-09-22 10:42:53 +02:00
users_upload_test.go Backend: Add security-focused tests, harden WebDAV and use safe.Download 2025-09-22 10:42:53 +02:00
video.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
video_test.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
vision_caption.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
vision_face.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
vision_face_test.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
vision_labels.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
vision_labels_test.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
vision_nsfw.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
vision_nsfw_test.go Pkg: Add service/cluster package & rename media/http → service/http #98 2025-09-13 12:58:28 +02:00
websocket.go API: Implement OIDC redirect endpoint #782 2024-07-01 16:50:53 +02:00
websocket_create.go Backend: Move get package to /internal/photoprism/get 2024-07-02 08:03:30 +02:00
websocket_reader.go Auth: Add "node" and "portal" roles, refactor session entity #98 2025-09-18 13:33:18 +02:00
websocket_test.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
websocket_writer.go API: Implement OIDC redirect endpoint #782 2024-07-01 16:50:53 +02:00
zip.go Auth: Refactor cluster configuration and provisioning API endpoints #98 2025-09-24 08:28:38 +02:00
zip_test.go Import: Add ytdl package for downloading videos from URLs #4982 2025-05-02 10:04:34 +02:00