Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 21, 2025

Adds /languages-management/languages endpoint with GET to list all languages and PATCH to toggle visibility.

Changes

Schema

  • Added isDisabled field to LanguageConfig response

Service Layer

  • ToggleLanguageVisibility(languageID) - Fetches language, inverts disabled state, persists change

Routes

  • GET /languages-management/languages - Returns all languages with visibility state
  • PATCH /languages-management/languages/{id} - Toggles language enabled/disabled

Integration

  • Added LanguagesManagementRoute to DI container
  • Registered under /languages-management/ with JWT auth

Example Usage

# List all languages
GET /api/v1/languages-management/languages
→ [{"id": 1, "language": "C", "version": "11", "fileExtension": ".c", "isDisabled": false}, ...]

# Toggle language visibility
PATCH /api/v1/languages-management/languages/1
→ {"ok": true, "data": {"message": "Language visibility toggled successfully"}}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • invalid-host
    • Triggering command: /tmp/go-build4016370940/b824/queue.test /tmp/go-build4016370940/b824/queue.test -test.testlogfile=/tmp/go-build4016370940/b824/testlog.txt -test.paniconexit0 -test.timeout=10m0s -test.v=true XMbmLfYjK -buildtags /opt/hostedtoolc-nilfunc om/mattn/go-sqli/opt/hostedtoolcache/go/1.24.2/x64/pkg/tool/linux_amd64/vet -ifaceassert -nilfunc ortcfg -I d/internal/confi-errorsas go_.o ache/go/1.24.2/x-nilfunc om/mattn/go-sqli/opt/hostedtoolcache/go/1.24.2/x64/pkg/tool/linux_amd64/vet --64 -o ache/go/1.24.2/x-buildtags (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Langugea management route</issue_title>
<issue_description>Add route: /languages-management/languages

It should include:
GET - to list all langues
PATCH - toggle visibility of languages.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits December 21, 2025 12:44
Co-authored-by: HermanPlay <78978614+HermanPlay@users.noreply.github.com>
Co-authored-by: HermanPlay <78978614+HermanPlay@users.noreply.github.com>
Co-authored-by: HermanPlay <78978614+HermanPlay@users.noreply.github.com>
Copilot AI changed the title [WIP] Add route for languages management with GET and PATCH Add language management routes for GET and PATCH operations Dec 21, 2025
Copilot AI requested a review from HermanPlay December 21, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Langugea management route

2 participants