aws / aws/graph-explorer

Move Express API routes under /api/ prefix

Open
#1,619 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
481
Forks
108
Avg merge
8d 9h
Merged PRs (30d)
7

Description

## Parent PRD

- Parent #1618

## What to build

Mount all existing Express proxy routes (`/gremlin`, `/sparql`, `/openCypher`, `/summary`, `/pg/statistics/summary`, `/rdf/statistics/summary`, `/logger`, `/status`, `/defaultConnection`) under an `/api/` prefix. Keep the old root-level routes working alongside the new ones for backward compatibility during the transition.

This is the foundational server-side change that all other slices depend on.

**Type: HITL** — requires review before completion.

## Acceptance criteria

- [ ] All API endpoints respond under `/api/` prefix (e.g., `POST /api/gremlin`, `POST /api/sparql`)
- [ ] Old root-level routes still work (e.g., `POST /gremlin` still responds)
- [ ] Tests verify the new `/api/*` paths respond correctly
- [ ] No changes to client code in this slice

## Blocked by

None - can start immediately

## User stories addressed

- User story 14

Contributor guide

Open the contributing guide

Research direction

Locate the Express route registration for /gremlin, /sparql, /openCypher, /summary, the statistics routes, /logger, /status, and /defaultConnection, then find the existing tests for these endpoints. Run those tests first and add coverage for each /api/* path while confirming the original root-level paths still respond. Done means all listed routes work under both prefixes without client changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
express, typescript
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.