[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add postman collection for quick testing #190

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all 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
Add postman collection for quick testing
  • Loading branch information
IAmSurajBobade committed Mar 11, 2023
commit 65cd6c27dfee908dbba3a8504154a6c8938bad61
99 changes: 99 additions & 0 deletions docs/postman-collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"info": {
"_postman_id": "3caca424-e93d-411a-aa86-39945736f16f",
"name": "postman-collection",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "4809861"
},
"item": [
{
"name": "/healthz",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/healthz",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"healthz"
]
}
},
"response": []
},
{
"name": "/metrics",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/metrics",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"metrics"
]
}
},
"response": []
},
{
"name": "/v1/translation/do-translate",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"source\":\"auto\",\n \"destination\":\"en\",\n \"original\":\"नमस्ते\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8080/v1/translation/do-translate",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"v1",
"translation",
"do-translate"
]
}
},
"response": []
},
{
"name": "/v1/translation/history",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8080/v1/translation/history",
"protocol": "http",
"host": [
"localhost"
],
"port": "8080",
"path": [
"v1",
"translation",
"history"
]
}
},
"response": []
}
]
}