chore: Update external API port from 8000 to 8191 in docker-compose configuration and API documentation.

This commit is contained in:
2026-01-28 03:44:46 +08:00
parent c32cff0388
commit 9cb938be9a
2 changed files with 6 additions and 6 deletions

View File

@@ -29,7 +29,7 @@ These are the endpoints you call from your Articulate Storyline JavaScript trigg
### 1. Gemini Chat ### 1. Gemini Chat
Processes requests using the Google Gemini 2.0 Flash model. Processes requests using the Google Gemini 2.0 Flash model.
- **URL**: `http://localhost:8000/api/v1/gemini/chat` - **URL**: `http://localhost:8191/api/v1/gemini/chat`
- **Method**: `POST` - **Method**: `POST`
- **Headers**: `X-API-Key: <your_key>` - **Headers**: `X-API-Key: <your_key>`
@@ -43,7 +43,7 @@ Processes requests using the Google Gemini 2.0 Flash model.
### 2. OpenAI Chat ### 2. OpenAI Chat
Processes requests using GPT-3.5-Turbo (or configured OpenAI model). Processes requests using GPT-3.5-Turbo (or configured OpenAI model).
- **URL**: `http://localhost:8000/api/v1/openai/chat` - **URL**: `http://localhost:8191/api/v1/openai/chat`
- **Method**: `POST` - **Method**: `POST`
- **Headers**: `X-API-Key: <your_key>` - **Headers**: `X-API-Key: <your_key>`
@@ -57,7 +57,7 @@ Processes requests using GPT-3.5-Turbo (or configured OpenAI model).
### 3. Health Check ### 3. Health Check
Verify if the gateway is online. Verify if the gateway is online.
- **URL**: `http://localhost:8000/api/v1/storyline/health` - **URL**: `http://localhost:8191/api/v1/storyline/health`
- **Method**: `GET` - **Method**: `GET`
- **Headers**: No Auth required. - **Headers**: No Auth required.
@@ -68,12 +68,12 @@ Verify if the gateway is online.
These endpoints power the Admin Dashboard. They require a Bearer token or Master Key depending on implementation. These endpoints power the Admin Dashboard. They require a Bearer token or Master Key depending on implementation.
### 1. Login ### 1. Login
- **URL**: `http://localhost:8000/auth/login` - **URL**: `http://localhost:8191/auth/login`
- **Method**: `POST` - **Method**: `POST`
- **Body**: `multipart/form-data` with `username` and `password`. - **Body**: `multipart/form-data` with `username` and `password`.
### 2. Create New Module ### 2. Create New Module
- **URL**: `http://localhost:8000/internal/admin/modules` - **URL**: `http://localhost:8191/internal/admin/modules`
- **Method**: `POST` - **Method**: `POST`
- **Headers**: `Authorization: Bearer <token>` - **Headers**: `Authorization: Bearer <token>`

View File

@@ -3,7 +3,7 @@ services:
build: . build: .
container_name: storyline-ai-gateway container_name: storyline-ai-gateway
ports: ports:
- "8000:8000" - "8191:8000"
env_file: env_file:
- .env - .env
restart: always restart: always