feat(gateway): Phase 4 - Save & List Connector Configs#35
Merged
Conversation
Changes:
- Add POST /v1/wiki/connectors (save config)
- Add GET /v1/wiki/connectors/saved (list configs)
- File-based storage in ./data/connectors/
- UUID v7 for config IDs
Implementation:
- Minimal file storage (no external dependencies)
- JSON format for easy inspection
- Async file I/O with tokio::fs
- No encryption (can add later if needed)
Storage:
- Path: ./data/connectors/{id}.json
- Format: SavedConnector struct
- Fields: id, name, type, config, created_at
Complete API (7/7 endpoints):
β
GET /v1/wiki/connectors
β
POST /v1/wiki/connectors/test
β
POST /v1/wiki/connectors/browse
β
POST /v1/wiki/connectors/generate
β
GET /v1/wiki/jobs/{id}
β
POST /v1/wiki/connectors (save)
β
GET /v1/wiki/connectors/saved (list)
100% feature complete!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 4 Implementation - 100% Complete! π
Features
New Endpoints
POST /v1/wiki/connectors- Save configurationGET /v1/wiki/connectors/saved- List saved configsStorage Design
./data/connectors/{id}.jsonRequest/Response Examples
Save Config:
List Configs:
Complete API (7/7 Endpoints) β
GET /v1/wiki/connectors- List connector typesPOST /v1/wiki/connectors/test- Test connectionPOST /v1/wiki/connectors/browse- Browse directoriesPOST /v1/wiki/connectors/generate- Generate wikiGET /v1/wiki/jobs/{id}- Check statusPOST /v1/wiki/connectors- Save configGET /v1/wiki/connectors/saved- List configsImplementation Details
Future Enhancements (Optional)
Progress Summary
Total: 8 connectors + 7 API endpoints + ~2400 lines of code
Closes #34 follow-up