Skip to content

Commit

Permalink
Renamed synonyms API namespaces (#2234)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest authored Aug 11, 2023
1 parent d91da1a commit 82a3e5f
Show file tree
Hide file tree
Showing 24 changed files with 480 additions and 485 deletions.
764 changes: 382 additions & 382 deletions output/schema/schema.json

Large diffs are not rendered by default.

19 changes: 7 additions & 12 deletions output/schema/validation-errors.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

88 changes: 44 additions & 44 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"synonyms.delete": {
"synonyms.delete_synonym": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-synonyms-set.html",
"description": "Deletes a synonym set"
Expand All @@ -12,12 +12,12 @@
"url": {
"paths": [
{
"path": "/_synonyms/{synonyms_set}",
"path": "/_synonyms/{id}",
"methods": ["DELETE"],
"parts": {
"synonyms_set": {
"id": {
"type": "string",
"description": "The name of the synonyms set to be deleted"
"description": "The id of the synonyms set to be deleted"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"synonym_rule.delete": {
"synonyms.delete_synonym_rule": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-synonym-rule.html",
"description": "Deletes a synonym rule in a synonym set"
Expand All @@ -13,14 +13,14 @@
"url": {
"paths": [
{
"path": "/_synonyms/{synonyms_set}/{synonym_rule}",
"path": "/_synonyms/{set_id}/{rule_id}",
"methods": ["DELETE"],
"parts": {
"synonyms_set": {
"set_id": {
"type": "string",
"description": "The id of the synonym set to be updated"
},
"synonym_rule": {
"rule_id": {
"type": "string",
"description": "The id of the synonym rule to be deleted"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"synonyms.get": {
"synonyms.get_synonym": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-synonyms-set.html",
"description": "Retrieves a synonym set"
Expand All @@ -12,10 +12,10 @@
"url": {
"paths": [
{
"path": "/_synonyms/{synonyms_set}",
"path": "/_synonyms/{id}",
"methods": ["GET"],
"parts": {
"synonyms_set": {
"id": {
"type": "string",
"description": "The name of the synonyms set to be retrieved"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"synonym_rule.get": {
"synonyms.get_synonym_rule": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-synonym-rule.html",
"description": "Retrieves a synonym rule from a synonym set"
Expand All @@ -13,14 +13,14 @@
"url": {
"paths": [
{
"path": "/_synonyms/{synonyms_set}/{synonym_rule}",
"path": "/_synonyms/{set_id}/{rule_id}",
"methods": ["GET"],
"parts": {
"synonyms_set": {
"set_id": {
"type": "string",
"description": "The id of the synonym set to retrieve the synonym rule from"
},
"synonym_rule": {
"rule_id": {
"type": "string",
"description": "The id of the synonym rule to retrieve"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"synonyms_sets.get": {
"synonyms.get_synonyms_sets": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/list-synonyms-sets.html",
"description": "Retrieves a summary of all defined synonym sets"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"synonyms.put": {
"synonyms.put_synonym": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-synonyms-set.html",
"description": "Creates or updates a synonyms set"
Expand All @@ -13,12 +13,12 @@
"url": {
"paths": [
{
"path": "/_synonyms/{synonyms_set}",
"path": "/_synonyms/{id}",
"methods": ["PUT"],
"parts": {
"synonyms_set": {
"id": {
"type": "string",
"description": "The name of the synonyms set to be created or updated"
"description": "The id of the synonyms set to be created or updated"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"synonym_rule.put": {
"synonyms.put_synonym_rule": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-synonym-rule.html",
"description": "Creates or updates a synonym rule in a synonym set"
Expand All @@ -13,14 +13,14 @@
"url": {
"paths": [
{
"path": "/_synonyms/{synonyms_set}/{synonym_rule}",
"path": "/_synonyms/{set_id}/{rule_id}",
"methods": ["PUT"],
"parts": {
"synonyms_set": {
"set_id": {
"type": "string",
"description": "The id of the synonym set to be updated with the synonym rule"
},
"synonym_rule": {
"rule_id": {
"type": "string",
"description": "The id of the synonym rule to be updated or created"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ import { Name } from '@_types/common'

/**
* Deletes a synonym set
* @rest_spec_name synonyms.delete
* @rest_spec_name synonyms.delete_synonym
* @availability stack since=8.10.0 stability=experimental
* @availability serverless stability=experimental visibility=public
*/
interface Request extends RequestBase {
path_parts: {
/**
* The name of the synonyms set to be deleted
* The id of the synonyms set to be deleted
*/
synonyms_set: Name
id: Name
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { Name } from '@_types/common'

/**
* Deletes a synonym rule in a synonym set
* @rest_spec_name synonym_rule.delete
* @rest_spec_name synonyms.delete_synonym_rule
* @availability stack since=8.10.0 stability=experimental
* @availability serverless stability=experimental visibility=public
*/
Expand All @@ -30,11 +30,11 @@ interface Request extends RequestBase {
/**
* The id of the synonym set to be updated
*/
synonyms_set: Name
set_id: Name

/**
* The id of the synonym rule to be deleted
*/
synonym_rule: Name
rule_id: Name
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { SynonymsUpdateResult } from '../../synonyms/_types/SynonymsUpdateResult'
import { SynonymsUpdateResult } from '../_types/SynonymsUpdateResult'

export class Response {
body: SynonymsUpdateResult
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ import { integer } from '@_types/Numeric'

/**
* Retrieves a synonym set
* @rest_spec_name synonyms.get
* @rest_spec_name synonyms.get_synonym
* @availability stack since=8.10.0 stability=experimental
* @availability serverless stability=experimental visibility=public
*/
interface Request extends RequestBase {
path_parts: {
/**
* "The name of the synonyms set to be retrieved
* "The id of the synonyms set to be retrieved
*/
synonyms_set: Name
id: Name
}
query_parameters: {
/**
Expand Down
Loading

0 comments on commit 82a3e5f

Please sign in to comment.