aws / aws/graph-explorer

Serve /api/config endpoint with managed connections

Aperta
#1,663 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement fundamental infrastructure
Lingua principale
TypeScript
Stelle
481
Fork
108
Merge medio
8g 9h
PR unite (30g)
7

Descrizione

## Parent PRD

#1660

## What to build

Add a `GET /api/config` endpoint that returns the client-relevant subset of the config file (everything except the `server` block). This replaces the current `/defaultConnection` endpoint and `defaultConnection.json` file generation.

The endpoint returns connections (keyed by stable ID with name, url, queryEngine, authentication, fetchTimeout, nodeExpansionLimit), feedbackUrl, and any other client-relevant fields. The `server` block is filtered out since it contains server-only settings.

## Acceptance criteria

- [ ] `GET /api/config` returns client-relevant config as JSON
- [ ] `server` block is excluded from the response
- [ ] Connections include their stable key/ID in the response
- [ ] Returns empty connections object when no config file is present
- [ ] Old `/defaultConnection` endpoint removed
- [ ] Integration tests for the endpoint with various config states

## Blocked by

- Blocked by #1661

## User stories addressed

- User story 1
- User story 7

## Related Issues

- Part of #1660

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando l’endpoint /defaultConnection esistente e la generazione di defaultConnection.json, quindi esamina come sono rappresentati il file di configurazione e le connessioni gestite. Il lavoro è completato quando GET /api/config restituisce JSON rilevante per il client con ID di connessione stabili, esclude il server, gestisce una configurazione mancante con connessioni vuote, rimuove il vecchio endpoint e include una copertura di integrazione per gli stati di configurazione indicati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
api, backend
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Specificata chiaramente
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.