chore: убран отдельный IngressRoute для api.sovet.itoservice.ru, API доступен через sovet.itoservice.ru
This commit is contained in:
parent
4166c6f0ef
commit
348b744960
2 changed files with 6 additions and 21 deletions
12
README.md
12
README.md
|
|
@ -59,12 +59,12 @@
|
|||
|
||||
API-ключ можно посмотреть и сбросить на странице **Настройки** в веб-интерфейсе.
|
||||
|
||||
**Базовый URL:** `http://api.sovet.itoservice.ru/api/v1`
|
||||
**Базовый URL:** `http://sovet.itoservice.ru/api/v1`
|
||||
|
||||
### Получить информацию об аккаунте
|
||||
|
||||
```bash
|
||||
curl -H "Authorization: Bearer <API_KEY>" http://api.sovet.itoservice.ru/api/v1/me
|
||||
curl -H "Authorization: Bearer <API_KEY>" http://sovet.itoservice.ru/api/v1/me
|
||||
```
|
||||
|
||||
Ответ:
|
||||
|
|
@ -81,7 +81,7 @@ curl -H "Authorization: Bearer <API_KEY>" http://api.sovet.itoservice.ru/api/v1/
|
|||
### Сбросить API-ключ
|
||||
|
||||
```bash
|
||||
curl -X PATCH -H "Authorization: Bearer <API_KEY>" http://api.sovet.itoservice.ru/api/v1/me/api-key
|
||||
curl -X PATCH -H "Authorization: Bearer <API_KEY>" http://sovet.itoservice.ru/api/v1/me/api-key
|
||||
```
|
||||
|
||||
Ответ:
|
||||
|
|
@ -94,7 +94,7 @@ curl -X PATCH -H "Authorization: Bearer <API_KEY>" http://api.sovet.itoservice.r
|
|||
### Список коллекций
|
||||
|
||||
```bash
|
||||
curl -H "Authorization: Bearer <API_KEY>" http://api.sovet.itoservice.ru/api/v1/collections
|
||||
curl -H "Authorization: Bearer <API_KEY>" http://sovet.itoservice.ru/api/v1/collections
|
||||
```
|
||||
|
||||
Ответ:
|
||||
|
|
@ -113,7 +113,7 @@ curl -H "Authorization: Bearer <API_KEY>" http://api.sovet.itoservice.ru/api/v1/
|
|||
### Загрузить тикеты в коллекцию
|
||||
|
||||
```bash
|
||||
curl -X POST "http://api.sovet.itoservice.ru/api/v1/tickets?collection_id=<ID_КОЛЛЕКЦИИ>" \
|
||||
curl -X POST "http://sovet.itoservice.ru/api/v1/tickets?collection_id=<ID_КОЛЛЕКЦИИ>" \
|
||||
-H "Authorization: Bearer <API_KEY>" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
|
|
@ -144,7 +144,7 @@ curl -X POST "http://api.sovet.itoservice.ru/api/v1/tickets?collection_id=<ID_К
|
|||
### Поиск с AI-ответом
|
||||
|
||||
```bash
|
||||
curl -X POST http://api.sovet.itoservice.ru/api/v1/search \
|
||||
curl -X POST http://sovet.itoservice.ru/api/v1/search \
|
||||
-H "Authorization: Bearer <API_KEY>" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
|
|
|
|||
|
|
@ -13,18 +13,3 @@ spec:
|
|||
- name: frontend
|
||||
port: 80
|
||||
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: backend
|
||||
namespace: support-bot
|
||||
spec:
|
||||
entryPoints:
|
||||
- web
|
||||
routes:
|
||||
- kind: Rule
|
||||
match: Host(`api.sovet.itoservice.ru`) && (PathPrefix(`/api`) || PathPrefix(`/docs`) || PathPrefix(`/openapi.json`) || PathPrefix(`/metrics`))
|
||||
services:
|
||||
- name: backend
|
||||
port: 8000
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue