Skip to content

Commit deb2017

Browse files
jakobwjenkins-bot
authored andcommitted
Search: Rename suggest operation IDs
"simple(Item|Property)Search" work as operation IDs, because "search" can be used as a noun, whereas "simple(Item|Property)Suggest" reads a bit funny because "suggest" isn't commonly used as a noun. Using method naming conventions and starting with "suggest" as a verb feels more natural for these two. Change-Id: Ib92ff876d35c4f44094612bc8deb0a32502d947c
1 parent 79a05c7 commit deb2017

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

repo/domains/search/specs/index.fragment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const openapi = {
5757
},
5858
"/v0/suggest/items": {
5959
"get": {
60-
"operationId": "simpleItemSuggest",
60+
"operationId": "suggestItems",
6161
"tags": [ "item search" ],
6262
"summary": "Simple Item search by prefix, for labels and aliases",
6363
"parameters": [
@@ -77,7 +77,7 @@ const openapi = {
7777
},
7878
"/v0/suggest/properties": {
7979
"get": {
80-
"operationId": "simplePropertySuggest",
80+
"operationId": "suggestProperties",
8181
"tags": [ "property search" ],
8282
"summary": "[WIP] Simple Property search by prefix, for labels and aliases",
8383
"description": "This endpoint is currently in development and is not recommended for production use.",

repo/rest-api/src/openapi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33440,7 +33440,7 @@
3344033440
},
3344133441
"/v0/suggest/items": {
3344233442
"get": {
33443-
"operationId": "simpleItemSuggest",
33443+
"operationId": "suggestItems",
3344433444
"tags": [
3344533445
"item search"
3344633446
],
@@ -33673,7 +33673,7 @@
3367333673
},
3367433674
"/v0/suggest/properties": {
3367533675
"get": {
33676-
"operationId": "simplePropertySuggest",
33676+
"operationId": "suggestProperties",
3367733677
"tags": [
3367833678
"property search"
3367933679
],

0 commit comments

Comments
 (0)