-
Notifications
You must be signed in to change notification settings - Fork 1
/
manifest.yaml
54 lines (48 loc) · 2.37 KB
/
manifest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
basePath: /
host: quiet-sands-48899.herokuapp.com
info:
contact: {email: [email protected], name: Jason Walsh, url: 'https://21.co/jasonwalsh/'}
description: Dynamically translate text between thousands of language pairs
license: {name: MIT, url: 'https://opensource.org/licenses/MIT'}
termsOfService: https://opensource.org/licenses/MIT
title: 21-translator
version: 1.0.0
x-21-category: utilities
x-21-keywords: [flask, google, translate]
x-21-quick-buy: 21 buy "https://quiet-sands-48899.herokuapp.com/?q=hello world&target=es"
x-21-total-price: {max: 100, min: 100}
x-21-usage: ''
paths:
/:
get:
parameters:
- {description: 'The input text to translate. Repeat this parameter to perform
translation operations on multiple text inputs.
', in: query, name: q, required: true, type: string}
- {description: 'The language to use for translation of the input text, set
to one of the language codes listed in [Language Support](https://cloud.google.com/translate/docs/languages).
', in: query, name: target, required: true, type: string}
- {description: 'The format of the source text, in either HTML (default) or
plain-text. A value of html indicates HTML and a value of text indicates
plain-text.
', in: query, name: format, type: string}
- {description: 'The language of the source text, set to one of the language
codes listed in [Language Support](https://cloud.google.com/translate/docs/languages).
If the source language is not specified, the API will attempt to detect
the source language automatically and return it within the response.
', in: query, name: source, type: string}
- {description: 'The translation model. Can be either base to use the Phrase-Based
Machine Translation (PBMT) model, or nmt to use the Neural Machine Translation
(NMT) model. If omitted, then nmt is used.
If the model is nmt, and the requested language translation pair is not
supported for the NMT model, then the request is translated using the base
model.
', in: query, name: model, type: string}
produces: [text/plain]
responses:
200:
description: A translated message
schema: {type: text}
summary: Purchase a translation
schemes: [https]
swagger: '2.0'