docs: replace example tokens with placeholders in README.md
This commit is contained in:
@@ -74,7 +74,7 @@ curl -X POST -H "Authorization: Bearer <your-token>" \
|
|||||||
|
|
||||||
**Пример:**
|
**Пример:**
|
||||||
```bash
|
```bash
|
||||||
curl -X POST -H "Authorization: Bearer token_create_note" \
|
curl -X POST -H "Authorization: Bearer <your-token>" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"title": "Моя заметка", "content": "Текст заметки"}' \
|
-d '{"title": "Моя заметка", "content": "Текст заметки"}' \
|
||||||
http://localhost:8000/notes
|
http://localhost:8000/notes
|
||||||
@@ -86,7 +86,7 @@ curl -X POST -H "Authorization: Bearer token_create_note" \
|
|||||||
|
|
||||||
**Пример:**
|
**Пример:**
|
||||||
```bash
|
```bash
|
||||||
curl -H "Authorization: Bearer token_read_note" \
|
curl -H "Authorization: Bearer <your-token>" \
|
||||||
http://localhost:8000/notes/1
|
http://localhost:8000/notes/1
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ curl -H "Authorization: Bearer token_read_note" \
|
|||||||
|
|
||||||
**Пример:**
|
**Пример:**
|
||||||
```bash
|
```bash
|
||||||
curl -H "Authorization: Bearer token_export_note" \
|
curl -H "Authorization: Bearer <your-token>" \
|
||||||
"http://localhost:8000/notes/export?path=/tmp/notes/note_1.txt"
|
"http://localhost:8000/notes/export?path=/tmp/notes/note_1.txt"
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@ curl -H "Authorization: Bearer token_export_note" \
|
|||||||
|
|
||||||
**Пример:**
|
**Пример:**
|
||||||
```bash
|
```bash
|
||||||
curl -X POST -H "Authorization: Bearer token_share_note" \
|
curl -X POST -H "Authorization: Bearer <your-token>" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"email": "friend@example.com", "webhook_url": "https://example.com/webhook"}' \
|
-d '{"email": "friend@example.com", "webhook_url": "https://example.com/webhook"}' \
|
||||||
http://localhost:8000/notes/1/share
|
http://localhost:8000/notes/1/share
|
||||||
@@ -126,7 +126,7 @@ curl -X POST -H "Authorization: Bearer token_share_note" \
|
|||||||
|
|
||||||
3. Создайте заметку:
|
3. Создайте заметку:
|
||||||
```bash
|
```bash
|
||||||
curl -X POST -H "Authorization: Bearer token_quickstart_create" \
|
curl -X POST -H "Authorization: Bearer <your-token>" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"title": "Первая заметка", "content": "Текст первой заметки"}' \
|
-d '{"title": "Первая заметка", "content": "Текст первой заметки"}' \
|
||||||
http://localhost:8000/notes
|
http://localhost:8000/notes
|
||||||
@@ -134,19 +134,19 @@ curl -X POST -H "Authorization: Bearer token_share_note" \
|
|||||||
|
|
||||||
4. Получите заметку по ID:
|
4. Получите заметку по ID:
|
||||||
```bash
|
```bash
|
||||||
curl -H "Authorization: Bearer token_quickstart_read" \
|
curl -H "Authorization: Bearer <your-token>" \
|
||||||
http://localhost:8000/notes/1
|
http://localhost:8000/notes/1
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Экспортируйте заметку в файл:
|
5. Экспортируйте заметку в файл:
|
||||||
```bash
|
```bash
|
||||||
curl -H "Authorization: Bearer token_quickstart_export" \
|
curl -H "Authorization: Bearer <your-token>" \
|
||||||
"http://localhost:8000/notes/export?path=/tmp/my_note.txt"
|
"http://localhost:8000/notes/export?path=/tmp/my_note.txt"
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Расшарьте заметку:
|
6. Расшарьте заметку:
|
||||||
```bash
|
```bash
|
||||||
curl -X POST -H "Authorization: Bearer token_quickstart_share" \
|
curl -X POST -H "Authorization: Bearer <your-token>" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"email": "friend@example.com", "webhook_url": "https://webhook.site/your-uuid"}' \
|
-d '{"email": "friend@example.com", "webhook_url": "https://webhook.site/your-uuid"}' \
|
||||||
http://localhost:8000/notes/1/share
|
http://localhost:8000/notes/1/share
|
||||||
|
|||||||
Reference in New Issue
Block a user