Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions tests/unit_test/test_v1_ghost_guard.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

Phase 8 task #44 (H3) cleaned the provider-aware Hurl suite to use
``/api/v2/providers/*`` so it no longer hits dead v1 provider CRUD routes.
A few other domains (apikeys, audit, marketplace, settings, prompts, chat
ops, export, document upload variants) still legitimately live at
A few other domains (apikeys, audit, marketplace, prompts, chat ops, export,
document upload variants) still legitimately live at
``/api/v1`` until tasks #50–#52 / #47–#49 land. Those paths are listed
in ``TRANSITIONAL_V1_PREFIXES`` below and each follow-up PR is expected
to shrink the set as it migrates the corresponding domain to ``/api/v2``.
Expand Down Expand Up @@ -36,7 +36,7 @@
# Transitional prefixes — these v1 routes are still mounted in main and used
# by e2e Hurl as long as the corresponding G* migration tasks have not landed.
# Each follow-up PR (G4a audit / G4b apikeys / G4c marketplace / G3 prompts /
# G1 export / G2 settings / G4d chat ops) is expected to remove the matching
# G1 export / G4d chat ops) is expected to remove the matching
# entry from this set together with its Hurl rewrite.
#
# Anything outside both sets is an unrecognised v1 reference and must be
Expand All @@ -47,7 +47,6 @@
"/api/v1/audit-logs", # G4a → /api/v2/audit-logs
"/api/v1/marketplace", # G4c → /api/v2/marketplace
"/api/v1/prompts", # G3 → /api/v2/prompts
"/api/v1/settings", # G2 → /api/v2/settings
"/api/v1/collections", # G1 (export) + G5 (document upload variants)
"/api/v1/export-tasks", # G1 → /api/v2/export-tasks
"/api/v1/chats", # G4d → /api/v2/chats
Expand Down
6 changes: 3 additions & 3 deletions web/src/api-v2/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ export interface paths {
patch?: never;
trace?: never;
};
"/api/v1/settings": {
"/api/v2/settings": {
parameters: {
query?: never;
header?: never;
Expand All @@ -881,7 +881,7 @@ export interface paths {
patch?: never;
trace?: never;
};
"/api/v1/settings/parser_health": {
"/api/v2/settings/parser_health": {
parameters: {
query?: never;
header?: never;
Expand All @@ -898,7 +898,7 @@ export interface paths {
patch?: never;
trace?: never;
};
"/api/v1/settings/test_mineru_token": {
"/api/v2/settings/test_mineru_token": {
parameters: {
query?: never;
header?: never;
Expand Down
2 changes: 1 addition & 1 deletion web/src/app/admin/configuration/parser-settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const ParserSettings = ({
setHealthLoading(true);
try {
const response = await fetch(
`${process.env.NEXT_PUBLIC_BASE_PATH || ''}/api/v1/settings/parser_health`,
`${process.env.NEXT_PUBLIC_BASE_PATH || ''}/api/v2/settings/parser_health`,
{
credentials: 'include',
cache: 'no-store',
Expand Down
4 changes: 2 additions & 2 deletions web/src/features/admin/client-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import type {
// kept separate per design-lock msg=5f0a370b decision 2e.

export async function updateSettings(input: Settings): Promise<Settings> {
const { data } = await browserApiClient.PUT('/api/v1/settings', {
const { data } = await browserApiClient.PUT('/api/v2/settings', {
body: input,
});
if (!data) {
Expand All @@ -37,7 +37,7 @@ export async function testMineruToken(
token: string,
): Promise<MineruTokenTestResponse> {
const { data } = await browserApiClient.POST(
'/api/v1/settings/test_mineru_token',
'/api/v2/settings/test_mineru_token',
{
body: { token },
},
Expand Down
2 changes: 1 addition & 1 deletion web/src/features/admin/server-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { Settings, SystemDefaultQuotasResponse } from './types';

export async function getSettings(): Promise<Settings | null> {
const client = await createServerApiClient();
const { data } = await client.GET('/api/v1/settings', {});
const { data } = await client.GET('/api/v2/settings', {});
return data ?? null;
}

Expand Down
Loading