From e34906a187091d433302a955adb8b7eec9cbf762 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Thu, 22 Jan 2026 17:04:07 -0500 Subject: [PATCH] Update Bruno requests: add Update Theme endpoint and include theme in responses --- bruno/auth/Get Profile.bru | 1 + bruno/auth/Login User.bru | 4 ++++ bruno/auth/Register User.bru | 4 ++++ bruno/auth/Update Theme.bru | 40 ++++++++++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 bruno/auth/Update Theme.bru diff --git a/bruno/auth/Get Profile.bru b/bruno/auth/Get Profile.bru index 3027ca0..96383e5 100644 --- a/bruno/auth/Get Profile.bru +++ b/bruno/auth/Get Profile.bru @@ -30,6 +30,7 @@ docs { - `id` (string): User ID - `email` (string): Email - `username` (string): Username + - `theme` (string): User theme preference **Status Codes:** - 200: Success diff --git a/bruno/auth/Login User.bru b/bruno/auth/Login User.bru index 9698e37..e4c2523 100644 --- a/bruno/auth/Login User.bru +++ b/bruno/auth/Login User.bru @@ -46,6 +46,10 @@ docs { **Response:** - `token` (string): JWT token - `user` (object): User details + - `id` (string): User ID + - `email` (string): Email + - `username` (string): Username + - `theme` (string): User theme preference **Status Codes:** - 200: Success diff --git a/bruno/auth/Register User.bru b/bruno/auth/Register User.bru index 5d5b9b1..6db5ae1 100644 --- a/bruno/auth/Register User.bru +++ b/bruno/auth/Register User.bru @@ -47,6 +47,10 @@ docs { **Response:** - `token` (string): JWT token - `user` (object): User details + - `id` (string): User ID + - `email` (string): Email + - `username` (string): Username + - `theme` (string): User theme preference **Status Codes:** - 201: Created diff --git a/bruno/auth/Update Theme.bru b/bruno/auth/Update Theme.bru new file mode 100644 index 0000000..8f3e47e --- /dev/null +++ b/bruno/auth/Update Theme.bru @@ -0,0 +1,40 @@ +meta { + name: Update Theme + type: http + seq: 4 +} + +put { + url: {{base_url}}/api/auth/theme + body: json + auth: inherit +} + +body:json { + { + "theme": "dracula" + } +} + +docs { + ## Update User Theme + + Updates the authenticated user's theme preference. + + **Method:** PUT + + **Endpoint:** /api/auth/theme + + **Authentication:** Required (Bearer token) + + **Request Body:** + - `theme` (string): Theme name (tokyo-night, dracula, nord, solarized-dark, monokai, one-dark-pro, material-dark) + + **Response:** + - `message` (string): Success message + + **Status Codes:** + - 200: Success + - 400: Invalid theme + - 401: Unauthorized +} \ No newline at end of file