Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@azure-tools/typespec-autorest": "0.29.0",
"@azure-tools/typespec-azure-core": "0.29.0",
"@azure-tools/typespec-azure-resource-manager": "0.29.0",
"@azure-tools/typespec-client-generator-core": "0.29.0",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@raych1 you also need to update the lock file with this change.

"@azure-tools/typespec-providerhub": "0.29.0",
"@azure-tools/typespec-apiview": "0.4.4",
"@typespec/compiler": "0.43.0"
Expand Down
8 changes: 8 additions & 0 deletions specification/translation/Azure.AI.TextTranslation/routes.tsp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "@typespec/rest";
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-client-generator-core";
import "./models-languages.tsp";
import "./models-translate.tsp";
import "./models-transliterate.tsp";
Expand All @@ -9,6 +10,7 @@ import "./models-dictionary.tsp";
using Azure.Core;
using TypeSpec.Rest;
using TypeSpec.Http;
using Azure.ClientGenerator.Core;

namespace TextTranslation;

Expand Down Expand Up @@ -39,6 +41,7 @@ op CustomGetOperation<TParams, TResponse, Traits = {}, TError = ErrorResponse>(
@route("languages")
@summary("Gets the set of languages currently supported by other operations of the Translator.")
@doc("Gets the set of languages currently supported by other operations of the Translator.")
@protocolAPI(false)
op GetLanguages is CustomGetOperation<
GetLanguageParameters,
GetLanguagesResult,
Expand All @@ -51,6 +54,7 @@ op GetLanguages is CustomGetOperation<
@route("translate")
@summary("Translate Text")
@doc("Translate Text")
@protocolAPI(false)
op Translate is CustomOperation<
InputTextItem[],
TranslateParameters,
Expand All @@ -64,6 +68,7 @@ op Translate is CustomOperation<
@route("transliterate")
@summary("Transliterate Text")
@doc("Transliterate Text")
@protocolAPI(false)
op Transliterate is CustomOperation<
InputTextItem[],
TransliterateParameters,
Expand All @@ -77,6 +82,7 @@ op Transliterate is CustomOperation<
@route("breaksentence")
@summary("Find Sentence Boundaries")
@doc("Find Sentence Boundaries")
@protocolAPI(false)
op FindSentenceBoundaries is CustomOperation<
InputTextItem[],
BreakSentenceParameters,
Expand All @@ -90,6 +96,7 @@ op FindSentenceBoundaries is CustomOperation<
@route("dictionary/lookup")
@summary("Lookup Dictionary Entries")
@doc("Lookup Dictionary Entries")
@protocolAPI(false)
op LookupDictionaryEntries is CustomOperation<
InputTextItem[],
DictionaryLookupParameters,
Expand All @@ -103,6 +110,7 @@ op LookupDictionaryEntries is CustomOperation<
@route("dictionary/examples")
@summary("Lookup Dictionary Examples")
@doc("Lookup Dictionary Examples")
@protocolAPI(false)
op LookupDictionaryExamples is CustomOperation<
DictionaryExampleTextItem[],
DictionaryExamplesParameters,
Expand Down