UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 3.28 kB
{"openapi":"3.0.0","info":{"description":"Language detection.<BR />[Endpoint] https://api.apitore.com/api/22","title":"Language Detection APIs","version":"0.0.1","x-apisguru-categories":["text"],"x-logo":{"url":"https://apitore.com/img/apis/22.jpg"},"x-origin":[{"format":"swagger","url":"https://api.apitore.com/json/22","version":"2.0"}],"x-providerName":"apitore.com","x-serviceName":"languageDetectionApis"},"tags":[{"description":"Lang Detect Controller","name":"lang-detect-controller"}],"paths":{"/langdetect/get":{"get":{"description":"Language Detection.<BR />Response<BR />&nbsp; Github: <a href=\"https://github.com/keigohtr/apitore-response-parent/tree/master/langdetect-response\">langdetect-response</a><BR />&nbsp; Class: com.apitore.banana.response.org.jsoup.LanguageResponseEntity<BR />","operationId":"getUsingGET","parameters":[{"description":"Access Token","in":"query","name":"access_token","required":true,"schema":{"type":"string"}},{"description":"Text [10-20 words over is recommended]","in":"query","name":"text","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanguageResponseEntity"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}},"summary":"Language Detection. This supports 53 languages.","tags":["lang-detect-controller"]}},"/langdetect/short/get":{"get":{"description":"Language Detection.<BR />Response<BR />&nbsp; Github: <a href=\"https://github.com/keigohtr/apitore-response-parent/tree/master/langdetect-response\">langdetect-response</a><BR />&nbsp; Class: com.apitore.banana.response.org.jsoup.LanguageResponseEntity<BR />","operationId":"smGetUsingGET","parameters":[{"description":"Access Token","in":"query","name":"access_token","required":true,"schema":{"type":"string"}},{"description":"Text [Short message like tweet is supported]","in":"query","name":"text","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanguageResponseEntity"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Not Found"}},"summary":"Language Detection for Short Messages. This supports 53 languages.","tags":["lang-detect-controller"]}}},"servers":[{"url":"https://api.apitore.com/api/22"}],"components":{"schemas":{"LanguageEntity":{"properties":{"lang":{"description":"language","type":"string"},"prob":{"description":"probability","format":"double","type":"number"}},"required":["lang","prob"],"type":"object"},"LanguageResponseEntity":{"properties":{"endTime":{"description":"End date","type":"string"},"language":{"description":"Output: prediction","type":"string"},"log":{"description":"Log message","type":"string"},"probabilities":{"description":"Output: probabilities","items":{"$ref":"#/components/schemas/LanguageEntity"},"type":"array"},"processTime":{"description":"Process time [millisecond]","type":"string"},"startTime":{"description":"Start date","type":"string"},"text":{"description":"Input: text","type":"string"}},"required":["endTime","language","log","probabilities","processTime","startTime","text"],"type":"object"}}}}