From 331aa4f004011a0a895be99a1496b58142be2522 Mon Sep 17 00:00:00 2001 From: Jedr Blaszyk Date: Tue, 9 Apr 2024 12:55:52 +0200 Subject: [PATCH] Fix 404 links in "add new api "docs Changing `__global` to `_global` in links --- docs/add-new-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/add-new-api.md b/docs/add-new-api.md index a4cb93df49..d389ea7353 100644 --- a/docs/add-new-api.md +++ b/docs/add-new-api.md @@ -20,7 +20,7 @@ Once you have added a new endpoint definition, the next step is to add its type First of all, you should find the most approariate place inside [`/specification`](../specification) where to put the new definition. The content of [`/specification`](../specification) tryied to mimic the Elasticsearch online documentation, so you can use it as inspiration. -For example, the index document defintion can be found in [`/specification/__global/index`](../specification/__global/index). +For example, the index document defintion can be found in [`/specification/_global/index`](../specification/_global/index). Once you have found the best place for the new definition, you should create a new file for it. The filename should be the same of the type definition you are writing, for example: @@ -98,7 +98,7 @@ interface Request extends RequestBase { } ``` And the generic will be used somewhere inside the definition. -There are cases where the generic might be the entire body, see [`IndexRequest`](../specification/__global/index/IndexRequest.ts). +There are cases where the generic might be the entire body, see [`IndexRequest`](../specification/_global/index/IndexRequest.ts). ### Add the endpoint response definition