Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update API for OpenAPI compliance #2866

Merged
merged 5 commits into from
Apr 13, 2024
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
115 changes: 0 additions & 115 deletions src/phoenix/server/api/routers/evaluation_handler.py

This file was deleted.

70 changes: 0 additions & 70 deletions src/phoenix/server/api/routers/span_handler.py

This file was deleted.

68 changes: 0 additions & 68 deletions src/phoenix/server/api/routers/trace_handler.py

This file was deleted.

11 changes: 11 additions & 0 deletions src/phoenix/server/api/routers/v1/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from starlette.routing import Route

from . import evaluations, spans, traces

V1_ROUTES = [
Route("/v1/evaluations", evaluations.post_evaluations, methods=["POST"]),
Route("/v1/evaluations", evaluations.get_evaluations, methods=["GET"]),
Route("/v1/traces", traces.post_traces, methods=["POST"]),
Route("/v1/spans", spans.query_spans_handler, methods=["POST"]),
Route("/v1/spans", spans.get_spans_handler, methods=["GET"]),
]
Loading
Loading