| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 17a49a9 commit 16a5ca0
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||
| 10 | 10 | ### Changed | |
| 11 | 11 | - Require explicit invocation of ask_codebase tool in MCP [#995](https://github.com/sourcebot-dev/sourcebot/pull/995) | |
| 12 | 12 | - Gate MCP API behind authentication when Ask GitHub is enabled. [#994](https://github.com/sourcebot-dev/sourcebot/pull/994) | |
| 13 | + - Added generated OpenAPI documentation for the public search, repo, and file browsing API surface. [#101](https://github.com/sourcebot-dev/sourcebot/issues/101) | ||
| 13 | 14 | ||
| 14 | 15 | ## [4.15.4] - 2026-03-11 | |
| 15 | 16 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,15 +2,9 @@ | |||
| 2 | 2 | "openapi": "3.0.3", | |
| 3 | 3 | "info": { | |
| 4 | 4 | "title": "Sourcebot Public API", | |
| 5 | - "version": "v4.15.2", | ||
| 5 | + "version": "v4.15.4", | ||
| 6 | 6 | "description": "OpenAPI description for the public Sourcebot REST endpoints used for search, repository listing, and file browsing." | |
| 7 | 7 | }, | |
| 8 | - "servers": [ | ||
| 9 | - { | ||
| 10 | - "url": "http://localhost:3000", | ||
| 11 | - "description": "Local development web app" | ||
| 12 | - } | ||
| 13 | - ], | ||
| 14 | 8 | "tags": [ | |
| 15 | 9 | { | |
| 16 | 10 | "name": "Search", | |
@@ -443,7 +437,7 @@ | |||
| 443 | 437 | }, | |
| 444 | 438 | "PublicStreamSearchSse": { | |
| 445 | 439 | "type": "string", | |
| 446 | - "description": "Server-sent event stream. Each data frame contains one JSON object matching PublicStreamedSearchEvent.", | ||
| 440 | + "description": "Server-sent event stream. Each data frame contains one JSON object representing either a chunk update, a final summary, or an error.", | ||
| 447 | 441 | "example": "data: {\"type\":\"chunk\",\"stats\":{\"actualMatchCount\":1}}\n\n" | |
| 448 | 442 | }, | |
| 449 | 443 | "PublicRepository": { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,11 +3,11 @@ title: API Reference | |||
| 3 | 3 | sidebarTitle: API Reference | |
| 4 | 4 | --- | |
| 5 | 5 | ||
| 6 | - Sourcebot exposes a public REST API for code search, repository listing, and file browsing. | ||
| 6 | + You can fetch the OpenAPI document for your Sourcebot instance from `/api/openapi.json`. | ||
| 7 | 7 | ||
| 8 | - The endpoint reference in this section is generated from the web app's Zod schemas and OpenAPI registry, then rendered by Mintlify from [`api-reference/sourcebot-public.openapi.json`](/api-reference/sourcebot-public.openapi.json). | ||
| 8 | + This API reference is generated from the web app's Zod schemas and OpenAPI registry. Mintlify renders it from the checked-in spec at [`/api-reference/sourcebot-public.openapi.json`](/api-reference/sourcebot-public.openapi.json). | ||
| 9 | 9 | ||
| 10 | - The first documented surface includes: | ||
| 10 | + The first documented endpoints include: | ||
| 11 | 11 | ||
| 12 | 12 | - `/api/search` | |
| 13 | 13 | - `/api/stream_search` | |
@@ -17,7 +17,7 @@ The first documented surface includes: | |||
| 17 | 17 | - `/api/tree` | |
| 18 | 18 | - `/api/files` | |
| 19 | 19 | ||
| 20 | - To refresh the spec after changing those contracts: | ||
| 20 | + To refresh the spec after you change those contracts: | ||
| 21 | 21 | ||
| 22 | 22 | ```bash | |
| 23 | 23 | yarn openapi:generate | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -229,12 +229,6 @@ export function createPublicOpenApiDocument(version: string) { | |||
| 229 | 229 | version, | |
| 230 | 230 | description: 'OpenAPI description for the public Sourcebot REST endpoints used for search, repository listing, and file browsing.', | |
| 231 | 231 | }, | |
| 232 | - servers: [ | ||
| 233 | - { | ||
| 234 | - url: 'http://localhost:3000', | ||
| 235 | - description: 'Local development web app', | ||
| 236 | - }, | ||
| 237 | - ], | ||
| 238 | 232 | tags: [searchTag, reposTag, filesTag, miscTag], | |
| 239 | 233 | }); | |
| 240 | 234 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -71,6 +71,6 @@ export const publicListReposQuerySchema = z.object({ | |||
| 71 | 71 | export const publicListReposResponseSchema = z.array(publicRepositorySchema).openapi('PublicListReposResponse'); | |
| 72 | 72 | ||
| 73 | 73 | export const publicStreamSearchSseSchema = z.string().openapi('PublicStreamSearchSse', { | |
| 74 | - description: 'Server-sent event stream. Each data frame contains one JSON object matching PublicStreamedSearchEvent.', | ||
| 74 | + description: 'Server-sent event stream. Each data frame contains one JSON object representing either a chunk update, a final summary, or an error.', | ||
| 75 | 75 | example: 'data: {"type":"chunk","stats":{"actualMatchCount":1}}\n\n', | |
| 76 | 76 | }); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8699,7 +8699,6 @@ __metadata: | |||
| 8699 | 8699 | version: 0.0.0-use.local | |
| 8700 | 8700 | resolution: "@sourcebot/backend@workspace:packages/backend" | |
| 8701 | 8701 | dependencies: | |
| 8702 | - "@asteasolutions/zod-to-openapi": "npm:7.3.4" | ||
| 8703 | 8702 | "@coderabbitai/bitbucket": "npm:^1.1.3" | |
| 8704 | 8703 | "@gitbeaker/rest": "npm:^40.5.1" | |
| 8705 | 8704 | "@octokit/app": "npm:^16.1.1" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments