Skip to content

Commit fed34e9

Browse files
committed
Update due to coderabbitai review
1 parent e1c3f6c commit fed34e9

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ The view validates the request with `AddOrUpdateRequestSerializer`, dispatches t
212212

213213
Heavy work (git clone, file scanning, Weblate project/component create-or-update) runs asynchronously in a Celery worker via `boost_add_or_update_task` (`src/boost_weblate/endpoint/tasks.py`). The view enqueues the task with `.delay()` and returns HTTP 202 immediately.
214214

215-
```
215+
```text
216216
POST /boost-endpoint/add-or-update/
217217
218218

docs/boost-endpoint-api.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ Minimal health check. Returns a plain-text `ok` string. No authentication requir
7575

7676
**Request**
7777

78-
```
78+
```http
7979
GET /boost-endpoint/plugin-ping/
8080
```
8181

8282
**Response**
8383

84-
```
84+
```http
8585
HTTP/1.1 200 OK
8686
Content-Type: text/plain
8787
@@ -96,14 +96,14 @@ Returns metadata about the installed plugin: package name, version, and the list
9696

9797
**Request**
9898

99-
```
99+
```http
100100
GET /boost-endpoint/info/
101101
Authorization: Token <token>
102102
```
103103

104104
**Response**
105105

106-
```
106+
```http
107107
HTTP/1.1 200 OK
108108
Content-Type: application/json
109109
@@ -128,7 +128,7 @@ Creates or updates Weblate projects and components for one or more Boost library
128128

129129
**Request**
130130

131-
```
131+
```http
132132
POST /boost-endpoint/add-or-update/
133133
Authorization: Token <token>
134134
Content-Type: application/json
@@ -277,7 +277,7 @@ The Celery task (`boost_add_or_update_task`) returns a dictionary keyed by langu
277277

278278
## Async execution model
279279

280-
```
280+
```text
281281
POST /boost-endpoint/add-or-update/
282282
283283
@@ -378,13 +378,13 @@ Component names and slugs are derived from the relative file path within the clo
378378

379379
**Name** — directory parts are joined with ` / `, each part title-cased with underscores and hyphens replaced by spaces, and the file extension (without the leading dot) is appended in parentheses:
380380

381-
```
381+
```text
382382
doc/html/intro.adoc → "Doc / Html / Intro (adoc)"
383383
```
384384

385385
**Slug** — directory and file parts are lowercased with underscores replaced by hyphens, joined with `-`, and the extension is appended:
386386

387-
```
387+
```text
388388
doc/html/intro.adoc → "doc-html-intro-adoc"
389389
```
390390

0 commit comments

Comments
 (0)