{"info":{"_postman_id":"c7b538a2-939b-4071-859b-0646b861d998","name":"Translator I18N API","description":"<html><head></head><body><h1 id=\"welcome-on-gosias-documentation-for-translator-i18n-api\">Welcome on Gosia´s documentation for Translator I18N API.</h1>\n<h2 id=\"introduction\">Introduction:</h2>\n<p>This is Translator I18N for translation of phrases or words. API includes translation of 25 phrases / words.</p>\n<h2 id=\"overview\">Overview:</h2>\n<p>I´m a java developer student, so this API isn´t perfekt yet, but works. :)</p>\n<h2 id=\"authentication\">Authentication:</h2>\n<p>The API is used to translate phrases / words into different languages. Currently there are translations from English to Swedish and from English to Polish. </p>\n<h2 id=\"error-codes\">Error Codes:</h2>\n<p>You can get error message: \"Can't find this phrase / word\", if you want to translate phrase / word, which is not included on the list.</p>\n<h2 id=\"rate-limit\">Rate limit:</h2>\n<p>There is no limit to the number of requests an user can send (for today).</p>\n<h2 id=\"collection-for-this-api-contains-requests\">Collection for this API contains requests:</h2>\n<ul>\n<li>Get and translate phrase (from English to Swedish or from English to Polish)</li>\n<li>Get and add phrase and translation to API (with help of HashMap)</li>\n<li>Get and add phrase to API (with help of ArrayList)</li>\n<li>Get and add phrase to API (with help of PathVariable)</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Welcome on Gosia´s documentation for Translator I18N API.","slug":"welcome-on-gosias-documentation-for-translator-i18n-api"}],"owner":"10422612","collectionId":"c7b538a2-939b-4071-859b-0646b861d998","publishedId":"SzKYNGkg","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-02-26T19:25:32.000Z"},"item":[{"name":"Translate","id":"d17c4ad0-54ef-455b-a874-d4d5285853a7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"pl","type":"text"}],"url":"http://localhost:8080/translator-I18N/translate","description":"<p><strong>API endpoint to get a phrase to translate:</strong></p>\n<p><em>Params:</em></p>\n<ul>\n<li>KEY: phrase</li>\n<li>VALUE: you choose word / phrase you want to translate (from the list)</li>\n</ul>\n<p><em>Headers:</em></p>\n<ul>\n<li>KEY: Content-Type, VALUE: application/json</li>\n<li>KEY: Accept-Language, VALUE: se, pl or default (us)</li>\n</ul>\n<p>Words in phrase must be separated by a period / full stop (\".\"), like in this example: \"words.in.phrase\".</p>\n<p>Returns translation of the word / phrase from English to Swedish (se) or from English to Polish (pl).</p>\n<blockquote>\n<p><em>A succesfull API request will return HTTP 200 status.</em></p>\n</blockquote>\n<p><strong>Phrase list:</strong></p>\n<ul>\n<li>I.am.Java.developer </li>\n<li>hello.world</li>\n<li>welcome</li>\n<li>mom</li>\n<li>dad</li>\n<li>son</li>\n<li>daughter</li>\n<li>I.have.a.sister</li>\n<li>I.have.a.brother</li>\n<li>you.are.beautiful</li>\n<li>I.love.you</li>\n<li>the.sun.shines</li>\n<li>spring.is.coming</li>\n<li>good.morning</li>\n<li>good.night</li>\n<li>good.luck</li>\n<li>I.see.you</li>\n<li>music</li>\n<li>movie</li>\n<li>photography</li>\n<li>travel</li>\n<li>book</li>\n<li>pen</li>\n<li>I.want.to.be.free</li>\n<li>today.is.my.birthday</li>\n</ul>\n","urlObject":{"protocol":"http","port":"8080","path":["translator-I18N","translate"],"host":["localhost"],"query":[{"disabled":true,"description":{"content":"<p>choose one phrase at the time to translate it</p>\n","type":"text/plain"},"key":"phrase","value":"I.am.Java.developer"},{"disabled":true,"description":{"content":"<p>choose one phrase at the time to translate it</p>\n","type":"text/plain"},"key":"phrase","value":"today.is.my.birthday"},{"disabled":true,"description":{"content":"<p>choose one phrase at the time to translate it</p>\n","type":"text/plain"},"key":"phrase","value":"spring.is.coming"}],"variable":[]}},"response":[{"id":"09889812-07ec-4ce3-84e4-579c708d04ad","name":"Translate - example 1 (PL)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"pl","type":"text"}],"url":{"raw":"http://localhost:8080/translator-I18N/translate?phrase=I.am.Java.developer","protocol":"http","host":["localhost"],"port":"8080","path":["translator-I18N","translate"],"query":[{"key":"phrase","value":"I.am.Java.developer"},{"key":"","value":"","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"24"},{"key":"Date","value":"Wed, 26 Feb 2020 12:08:40 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"jestem programistą Java"},{"id":"5e5813dc-55a1-4c81-8801-8fe1b91305c0","name":"Translate - example 3 (error)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"pl","type":"text"}],"url":{"raw":"http://localhost:8080/translator-I18N/translate?phrase=I.am.Java.developer.lol","protocol":"http","host":["localhost"],"port":"8080","path":["translator-I18N","translate"],"query":[{"key":"phrase","value":"I.am.Java.developer.lol","description":"choose one phrase at the time to translate it"},{"key":"phrase","value":"today.is.my.birthday","description":"choose one phrase at the time to translate it","type":"text","disabled":true},{"key":"phrase","value":"spring.is.coming","description":"choose one phrase at the time to translate it","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"29"},{"key":"Date","value":"Wed, 26 Feb 2020 20:21:05 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"Can't find this phrase / word"},{"id":"b6a36838-4af8-4af1-88dc-d5efc8c6dc94","name":"Translate - example 2 (SE)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"se","type":"text"}],"url":{"raw":"http://localhost:8080/translator-I18N/translate?phrase=I.am.Java.developer","protocol":"http","host":["localhost"],"port":"8080","path":["translator-I18N","translate"],"query":[{"key":"phrase","value":"I.am.Java.developer"},{"key":"","value":"","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"22"},{"key":"Date","value":"Wed, 26 Feb 2020 12:10:27 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"jag är Javautvecklare"}],"_postman_id":"d17c4ad0-54ef-455b-a874-d4d5285853a7"},{"name":"Add phrase and translation (HM)","id":"a87db542-234d-40f1-8655-44c05d5a8277","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/translator-I18N/addPhrase","description":"<p><strong>API endpoint to get and add phrase and translation to API:</strong></p>\n<p><em>Params:</em></p>\n<ul>\n<li>KEY: phrase, VALUE: enter word / phrase you want to translate </li>\n<li>KEY: translation, VALUE: enter translation to your word / phrase</li>\n</ul>\n<p>Words in phrase must be separated by a period / full stop (\".\"), like in this example: \"words.in.phrase\".</p>\n<p>Returns word / phrase and translation. You can add as many phrases and translations as you want. </p>\n<blockquote>\n<p><em>A succesfull API request will return HTTP 200 status.</em></p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8080","path":["translator-I18N","addPhrase"],"host":["localhost"],"query":[{"disabled":true,"description":{"content":"<p>enter the phrase to translate</p>\n","type":"text/plain"},"key":"phrase","value":"I.love.your.smile"},{"disabled":true,"description":{"content":"<p>enter the phrase translation</p>\n","type":"text/plain"},"key":"translation","value":"kocham Twój uśmiech"}],"variable":[]}},"response":[{"id":"4029bf13-80f6-4986-932e-3d6b0d4c2b87","name":"Add phrase and translation - example 1","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Accept-Language","value":"pl","type":"text"}],"url":{"raw":"http://localhost:8080/translator-I18N/addPhrase?phrase=I.love.your.smile&translation=kocham Twój uśmiech","protocol":"http","host":["localhost"],"port":"8080","path":["translator-I18N","addPhrase"],"query":[{"key":"phrase","value":"I.love.your.smile"},{"key":"translation","value":"kocham Twój uśmiech"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 26 Feb 2020 17:00:43 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"Tomorrow.never.dies\": \"Jutro nie umiera nigdy\",\n    \"It's.raining\": \"pada deszcz\",\n    \"I.love.your.smile\": \"kocham Twój uśmiech\",\n    \"I.like.chocolate\": \"lubię czekoladę\"\n}"}],"_postman_id":"a87db542-234d-40f1-8655-44c05d5a8277"},{"name":"Add phrase (AL)","id":"f7eb9682-5c00-4cbb-9562-149704284456","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/translator-I18N/addPhrase2","description":"<p><strong>API endpoint to get and add word / phrase to API:</strong></p>\n<p><em>Params:</em></p>\n<ul>\n<li>KEY: phrase, VALUE: enter word / phrase you want to translate</li>\n</ul>\n<p>Words in phrase must be separated by a period / full stop (\".\"), like in this example: \"words.in.phrase\".</p>\n<p>Returns word / phrase. You can add as many words / phrases as you want. </p>\n<blockquote>\n<p><em>A succesfull API request will return HTTP 200 status.</em></p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8080","path":["","translator-I18N","addPhrase2"],"host":["localhost"],"query":[{"disabled":true,"description":{"content":"<p>enter the phrase to translate</p>\n","type":"text/plain"},"key":"phrase","value":"I.am.happy"}],"variable":[]}},"response":[{"id":"6819f135-b668-483a-b34f-cfea38932524","name":"Add phrase - example 1","originalRequest":{"method":"GET","header":[{"key":"","value":"","type":"text","disabled":true},{"key":"","value":"","type":"text","disabled":true}],"url":{"raw":"http://localhost:8080/translator-I18N/addPhrase2?phrase=just.kidding","protocol":"http","host":["localhost"],"port":"8080","path":["","translator-I18N","addPhrase2"],"query":[{"key":"phrase","value":"just.kidding"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 26 Feb 2020 17:50:01 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"[\n    \"I'm.going.to.Italy\",\n    \"early.morning\",\n    \"just.kidding\"\n]"}],"_postman_id":"f7eb9682-5c00-4cbb-9562-149704284456"},{"name":"Add phrase (PV)","id":"5535c7ab-e8e5-4635-93ef-26ff7349a4da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/translator-I18N/addPhrase3/{word.to.translate}","description":"<p><strong>API endpoint to get and add word / phrase to API:</strong></p>\n<p>Enter word / phrase in brackets in the address path. </p>\n<p>Words in phrase must be separated by a period / full stop (\".\"), like in this example: \"words.in.phrase\".</p>\n<p>Returns word / phrase.</p>\n<blockquote>\n<p><em>A succesfull API request will return HTTP 200 status.</em></p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"8080","path":["translator-I18N","addPhrase3","{word.to.translate}"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4df5caea-4bb5-4349-942c-e6550b84e84d","name":"Add phrase (PV) - example 1","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/translator-I18N/addPhrase3/{word.to.translate}"},"status":"OK","code":200,"_postman_previewlanguage":"plain","header":[{"key":"Content-Disposition","value":"inline;filename=f.txt"},{"key":"Content-Type","value":"text/plain;charset=UTF-8"},{"key":"Content-Length","value":"19"},{"key":"Date","value":"Thu, 27 Feb 2020 10:18:32 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{word.to.translate}"}],"_postman_id":"5535c7ab-e8e5-4635-93ef-26ff7349a4da"}]}