Skip to content

Commit d2b0b20

Browse files
committed
chore: bytebase/api-example to bytebase/example-api
1 parent 90f6813 commit d2b0b20

10 files changed

+18
-18
lines changed

content/blog/bytebase-vs-cloudbeaver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ On the other hand, the more common way to change the schema is to use **Schema E
152152

153153
- **CloudBeaver**: Support [GraphQL](https://github.com/dbeaver/cloudbeaver/wiki/Server-API-explorer), while the doc is pretty light.
154154

155-
- **Bytebase**: Support gRPC and HTTP/REST. Bytebase provides extensive [docs](/docs/api/overview/), [code samples](https://github.com/bytebase/api-example), and [tutorials](/tutorial/).
155+
- **Bytebase**: Support gRPC and HTTP/REST. Bytebase provides extensive [docs](/docs/api/overview/), [code samples](https://github.com/bytebase/example-api), and [tutorials](/tutorial/).
156156

157157
### GitOps
158158

content/docs/api/sql-review.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Before you start, you should configure the [SQL Review Policy](/docs/sql-review/
1919
| Endpoint | [POST /v1/projects/-/releases:check](https://api.bytebase.com/#tag/releaseservice/POST/v1/projects/{project}/releases:check) |
2020
| Request | https://api.bytebase.com/#model/checkreleaserequest |
2121
| Response | https://api.bytebase.com/#model/checkreleaseresponse |
22-
| Example | https://github.com/bytebase/api-example/tree/main/sql-review#batch-api-recommended |
22+
| Example | https://github.com/bytebase/example-api/tree/main/sql-review#batch-api-recommended |
2323

2424
Batch API allows you to validate multiple statements across multiple databases in a single API call.
2525

@@ -34,6 +34,6 @@ earlier files, the Batch API ensures each subsequent file is validated accuratel
3434
| Endpoint | [POST /v1/sql/check](https://api.bytebase.com/#tag/sqlservice/POST/v1/sql/check) |
3535
| Request | https://api.bytebase.com/#model/checkrequest |
3636
| Response | https://api.bytebase.com/#model/checkresponse |
37-
| Example | https://github.com/bytebase/api-example/tree/main/sql-review#simple-api |
37+
| Example | https://github.com/bytebase/example-api/tree/main/sql-review#simple-api |
3838

3939
Simple API allows you to validate a single statement against a single database.

content/docs/tutorials/api-audit-log.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This tutorial will focus on fetch and filter audit log in Bytebase, it's OK if y
2222

2323
<HintBlock type="info">
2424

25-
This tutorial code repository is at https://github.com/bytebase/api-example/tree/main/audit-log
25+
This tutorial code repository is at https://github.com/bytebase/example-api/tree/main/audit-log
2626

2727
</HintBlock>
2828

@@ -42,7 +42,7 @@ This tutorial code repository is at https://github.com/bytebase/api-example/tree
4242
## Run Demo
4343

4444
1. Go to [Bytebase API Example
45-
repo](https://github.com/bytebase/api-example) and clone it.
45+
repo](https://github.com/bytebase/example-api) and clone it.
4646

4747
1. Copy `env-template.local` to `.env.local`.Update the variables.
4848

@@ -65,7 +65,7 @@ This tutorial code repository is at https://github.com/bytebase/api-example/tree
6565

6666
## Fetch and Filter Audit Log
6767

68-
Let's dig into the [code](https://github.com/bytebase/api-example/tree/main/audit-log/src):
68+
Let's dig into the [code](https://github.com/bytebase/example-api/tree/main/audit-log/src):
6969

7070
1. In `page.tsx`, we fetch all projects by calling the [/v1/projects](https://api.bytebase.com/#tag/projectservice/GET/v1/projects) API before any project selection.
7171

content/docs/tutorials/api-issue.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ By following the step-by-step instructions provided, you will have the opportuni
2323

2424
<HintBlock type="info">
2525

26-
This tutorial code repository is at https://github.com/bytebase/api-example/issue-creation
26+
This tutorial code repository is at https://github.com/bytebase/example-api/issue-creation
2727

2828
</HintBlock>
2929

@@ -68,7 +68,7 @@ Below is an example app demonstrating the following APIs:
6868
---
6969

7070
1. Go to [Bytebase API Example
71-
repo](https://github.com/bytebase/api-example) and clone it.
71+
repo](https://github.com/bytebase/example-api) and clone it.
7272

7373
1. Copy `env-template.local` to `.env.local`.Update the variables.
7474

@@ -102,7 +102,7 @@ Below is an example app demonstrating the following APIs:
102102
1. Go back to the sample application, and click **Refresh status**. You'll see the status has changed from [OPEN] to [DONE].
103103
![sample-done](/content/docs/tutorials/api-issue/sample-done.webp)
104104

105-
1. For additional information about the example application, refer to the README in its corresponding [GitHub repository](https://github.com/bytebase/api-example/).
105+
1. For additional information about the example application, refer to the README in its corresponding [GitHub repository](https://github.com/bytebase/example-api/).
106106

107107
## Summary
108108

content/docs/tutorials/api-sql-review-policy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: 'Learn how to use the Bytebase API to configure SQL review rules in
1111

1212
<IncludeBlock url="/docs/share/tutorials/api-preface"></IncludeBlock>
1313

14-
This tutorial will guide you through configuring SQL review rules using the Bytebase API. This approach allows you to manage SQL review rules as code within your repository, enabling DBAs or platform engineering teams to apply them to Bytebase as needed. The tutorial repository is at https://github.com/bytebase/api-example/tree/main/sql-review.
14+
This tutorial will guide you through configuring SQL review rules using the Bytebase API. This approach allows you to manage SQL review rules as code within your repository, enabling DBAs or platform engineering teams to apply them to Bytebase as needed. The tutorial repository is at https://github.com/bytebase/example-api/tree/main/sql-review.
1515

1616
This is the 4th part of tutorial series of SQL Review:
1717

@@ -36,7 +36,7 @@ This is the 4th part of tutorial series of SQL Review:
3636

3737
## Obtain the Access Token
3838

39-
1. Go to [Bytebase API Example repo](https://github.com/bytebase/api-example) and clone it.
39+
1. Go to [Bytebase API Example repo](https://github.com/bytebase/example-api) and clone it.
4040

4141
1. Navigate to the `sql-review` subfolder and follow the instructions in the `README.md` file of the example code repository to execute the scripts.
4242
1. Replace `bytebase_url`, `bytebase_account`, and `bytebase_password` in the commands below with your own values, then run them to obtain a `bytebase_token` in your terminal.

content/docs/tutorials/api-user-database-permission.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ By following this guide, you'll learn how to:
2323

2424
<HintBlock type="info">
2525

26-
This tutorial code repository is at https://github.com/bytebase/api-example/tree/main/permission-check
26+
This tutorial code repository is at https://github.com/bytebase/example-api/tree/main/permission-check
2727

2828
</HintBlock>
2929

@@ -43,7 +43,7 @@ This tutorial code repository is at https://github.com/bytebase/api-example/tree
4343
## Run Demo
4444

4545
1. Go to [Bytebase API Example
46-
repo](https://github.com/bytebase/api-example) and clone it.
46+
repo](https://github.com/bytebase/example-api) and clone it.
4747

4848
1. Copy `env-template.local` to `.env.local`.Update the variables.
4949

content/docs/tutorials/data-classification.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ By the end of this tutorial, you will have accomplished the following:
2020
## Prerequisites
2121

2222
- Docker installed
23-
- Download the [api-example repository](https://github.com/bytebase/api-example), you'll only need `data-classification` folder for this tutorial
23+
- Download the [api-example repository](https://github.com/bytebase/example-api), you'll only need `data-classification` folder for this tutorial
2424

2525
## Overview
2626

@@ -67,7 +67,7 @@ There are two ways to configure the data masking based on the classification lev
6767

6868
#### API
6969

70-
1. Find the [data masking configuration file](https://github.com/bytebase/api-example/blob/main/data-security/masking/global-masking-rule.json) within the `data-security` repository.
70+
1. Find the [data masking configuration file](https://github.com/bytebase/example-api/blob/main/data-security/masking/global-masking-rule.json) within the `data-security` repository.
7171
1. Generate the token for the service account user:
7272

7373
```bash

content/docs/tutorials/database-change-management-with-jira-automated.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Here is what you will achieve by the end of this tutorial:
2424
- A Jira workspace
2525
- A Bytebase instance
2626
- [Manual Database Change with Jira](/docs/tutorials/database-change-management-with-jira-manual) completed
27-
- Download the [api-example repository](https://github.com/bytebase/api-example), you'll only need `jira` folder for this tutorial
27+
- Download the [api-example repository](https://github.com/bytebase/example-api), you'll only need `jira` folder for this tutorial
2828

2929
## Workflow Overview
3030

content/docs/tutorials/embed-sql-editor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ By the end of this tutorial, you will have achieved the following:
2525

2626
- A Google Cloud account
2727
- Docker installed
28-
- Download the [api-example repository](https://github.com/bytebase/api-example), you'll only need `sql-editor` folder for this tutorial
28+
- Download the [api-example repository](https://github.com/bytebase/example-api), you'll only need `sql-editor` folder for this tutorial
2929

3030
## Overview
3131

content/docs/tutorials/sql-review-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ If you want to test the SQL Review API locally, you may need to configure ngrok.
3131

3232
## API Examples
3333

34-
You may call [Bytebase API](/docs/api/sql-review/) in your internal portal or GitHub Actions to trigger SQL Review. Check out https://github.com/bytebase/api-example/tree/main/issue-creation
34+
You may call [Bytebase API](/docs/api/sql-review/) in your internal portal or GitHub Actions to trigger SQL Review. Check out https://github.com/bytebase/example-api/tree/main/issue-creation
3535

3636
![bb-api](/content/docs/tutorials/sql-review-api/bb-api.webp)
3737

0 commit comments

Comments
 (0)