Move the external API into its own router

Auth logic isn't shared between the clients anyway, so co-locating them is confusing since you can't use the same clients to call both. This also makes the codegen clients less verbose.
This commit is contained in:
Kyle Corbitt
2023-08-14 16:56:50 -07:00
parent 8552baf632
commit c4cef35717
25 changed files with 291 additions and 235 deletions

View File

@@ -3,17 +3,17 @@
"info": {
"title": "OpenPipe API",
"description": "The public API for reporting API calls to OpenPipe",
"version": "0.1.0"
"version": "0.1.1"
},
"servers": [
{
"url": "https://app.openpipe.ai/api"
"url": "https://app.openpipe.ai/api/v1"
}
],
"paths": {
"/v1/check-cache": {
"/check-cache": {
"post": {
"operationId": "externalApi-checkCache",
"operationId": "checkCache",
"description": "Check if a prompt is cached",
"security": [
{
@@ -74,9 +74,9 @@
}
}
},
"/v1/report": {
"/report": {
"post": {
"operationId": "externalApi-report",
"operationId": "report",
"description": "Report an API call",
"security": [
{