diff --git a/docs/concepts/client/third-party-clients.md b/docs/concepts/client/third-party-clients.md index c19e115f633db..dc229b7a96031 100644 --- a/docs/concepts/client/third-party-clients.md +++ b/docs/concepts/client/third-party-clients.md @@ -98,8 +98,8 @@ The response you receive includes `data` (an array of [Documents](https://docarr :class: seealso For a more detailed descripton of the REST API of a generic Flow, including the complete request body schema and request samples, please check: -1. [OpenAPI Schema](https://api.jina.ai/rest/latest.json) -2. [Redoc UI](https://api.jina.ai/rest/) +1. [OpenAPI Schema](https://schemas.jina.ai/rest/latest.json) +2. [Redoc UI](https://schemas.jina.ai/rest/) For a specific deployed Flow, you can get the same overview by accessing the `/redoc` endpoint. ``` @@ -240,7 +240,7 @@ Here you can see all the endpoints that are exposed by the Flow, such as `/searc To send a request, click on the endpoint you want to target, then `Try it out`. Now you can enter your HTTP request, and send it by clicking `Execute`. -You can again use the [REST HTTP request schema](https://api.jina.ai/rest/), but do not need to specify `execEndpoint`. +You can again use the [REST HTTP request schema](https://schemas.jina.ai/rest/), but do not need to specify `execEndpoint`. Below, in `Responses`, you can see the reply, together with a visual representation of the returned Documents. @@ -322,4 +322,4 @@ The Flow defaults to `json` if you don't specify a sub-protocol while establishi - {ref}`Access a Flow with the Client ` - {ref}`Configure a Flow ` -- [Flow REST API reference](https://api.jina.ai/rest/) +- [Flow REST API reference](https://schemas.jina.ai/rest/) diff --git a/docs/concepts/orchestration/yaml-spec.md b/docs/concepts/orchestration/yaml-spec.md index 7d29d31778bac..813ef53374b05 100644 --- a/docs/concepts/orchestration/yaml-spec.md +++ b/docs/concepts/orchestration/yaml-spec.md @@ -10,7 +10,7 @@ We provide a [JSON Schema](https://json-schema.org/) for your IDE to enable code ### PyCharm users 1. Click menu `Preferences` -> `JSON Schema mappings`; -2. Add a new schema, in the `Schema File or URL` write `https://api.jina.ai/schemas/latest.json`; select `JSON Schema Version 7`; +2. Add a new schema, in the `Schema File or URL` write `https://schemas.jina.ai/schemas/latest.json`; select `JSON Schema Version 7`; 3. Add a file path pattern and link it to `*.jaml` or `*.jina.yml` or any suffix you commonly used for Jina Flow's YAML. ### VSCode users @@ -20,7 +20,7 @@ We provide a [JSON Schema](https://json-schema.org/) for your IDE to enable code ```json "yaml.schemas": { - "https://api.jina.ai/schemas/latest.json": ["/*.jina.yml", "/*.jaml"], + "https://schemas.jina.ai/schemas/latest.json": ["/*.jina.yml", "/*.jaml"], } ``` diff --git a/jina/schemas/__init__.py b/jina/schemas/__init__.py index 5d2aade9a260c..43adbdb2b887d 100644 --- a/jina/schemas/__init__.py +++ b/jina/schemas/__init__.py @@ -22,7 +22,7 @@ def get_full_schema() -> dict: definitions.update(s) return { - '$id': f'https://api.jina.ai/schemas/{__version__}.json', + '$id': f'https://schemas.jina.ai/schemas/{__version__}.json', '$schema': 'http://json-schema.org/draft-07/schema#', 'description': 'The YAML schema of Jina objects (Flow, Executor).', 'type': 'object', diff --git a/scripts/get-openapi-schemas.py b/scripts/get-openapi-schemas.py index b0bf4fa01be3a..05613d91c5bb6 100644 --- a/scripts/get-openapi-schemas.py +++ b/scripts/get-openapi-schemas.py @@ -5,7 +5,7 @@ from jina.serve.runtimes.gateway.http_fastapi_app import get_fastapi_app from jina.serve.runtimes.gateway.streamer import GatewayStreamer -JINA_LOGO_URL = 'https://api.jina.ai/logo/logo-product/jina-core/horizontal-layout/colored/Product%20logo_Core_vertical_colorful%402x-margin.png' +JINA_LOGO_URL = 'https://schemas.jina.ai/logo/logo-product/jina-core/horizontal-layout/colored/Product%20logo_Core_vertical_colorful%402x-margin.png' GATEWAY_SCHEMA_FILENAME = 'gateway.json'