add translate api
This commit is contained in:
parent
282462103b
commit
583856d0cb
25
memori-dashboard/Translate (GET).bru
Normal file
25
memori-dashboard/Translate (GET).bru
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
meta {
|
||||
name: Translate (GET)
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{host}}/api/translate?text=Ciao&source_lang=IT&target_lang=EN
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
text: Ciao
|
||||
source_lang: IT
|
||||
target_lang: EN
|
||||
}
|
||||
|
||||
docs {
|
||||
# Translate
|
||||
|
||||
Uses [DeepL](https://deepl.com).
|
||||
|
||||
Ref: [docs](https://docs.google.com/document/d/1R2zDCgPssAW9ukxa6Iz6b49Ju9k-3naAjdQzbtAP1to)
|
||||
}
|
||||
27
memori-dashboard/Translate (POST).bru
Normal file
27
memori-dashboard/Translate (POST).bru
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
meta {
|
||||
name: Translate (POST)
|
||||
type: http
|
||||
seq: 6
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{host}}/api/translate
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"text": "Ciao",
|
||||
"source_lang": "IT",
|
||||
"target_lang": "EN"
|
||||
}
|
||||
}
|
||||
|
||||
docs {
|
||||
# Translate
|
||||
|
||||
Uses [DeepL](https://deepl.com).
|
||||
|
||||
Ref: [docs](https://docs.google.com/document/d/1R2zDCgPssAW9ukxa6Iz6b49Ju9k-3naAjdQzbtAP1to)
|
||||
}
|
||||
Loading…
Reference in a new issue