Skip to content

Commit

Permalink
Swagger API update: download job translation, Job TMX download
Browse files Browse the repository at this point in the history
  • Loading branch information
riccio82 committed Apr 27, 2018
1 parent 326de74 commit 33d8bdc
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
1 change: 1 addition & 0 deletions .htaccess
Expand Up @@ -62,6 +62,7 @@ RewriteRule ^utils/pee$ router.php [L]

RewriteRule ^TMX/([^/]*)/([^/]*)[/]?$ index.php?action=exportTMX&jid=$1&jpass=$2 [L]
RewriteRule ^SDLXLIFF/([^/]*)/([^/]*)/([^/]*)[/]?$ index.php?action=downloadFile&id_job=$1&password=$2&filename=$3&forceXliff=1 [L]
RewriteRule ^translation/([^/]*)/([^/]*)[/]?$ index.php?action=downloadFile&id_job=$1&password=$2 [L]

RedirectMatch 404 /\.git
</IfModule>
Expand Down
66 changes: 66 additions & 0 deletions public/api/swagger-source.js
Expand Up @@ -392,6 +392,39 @@ var spec = {
}
}
},
"/translation/{id_job}/{password}": {
"get": {
"tags": [
"Job"
],
"summary": "Download Translation",
"description": "Download the Job translation",
"parameters": [
{
"name": "id_job",
"in": "path",
"description": "The id of the job",
"required": true,
"type": "string"
},
{
"name": "password",
"in": "path",
"description": "The password of the job",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Job translation"
},
"default": {
"description": "Unexpected error"
}
}
}
},
"/api/v1/jobs/{id_job}/{password}/stats": {
"get": {
"tags": [
Expand Down Expand Up @@ -2023,6 +2056,39 @@ var spec = {
}
}
},
"/TMX/id_job/password": {
"post": {
"tags": [
"Job"
],
"summary": "Download Job TMX",
"description": "Download the Job TMX ",
"parameters": [
{
"name": "id_job",
"in": "path",
"description": "The id of the job",
"required": true,
"type": "string"
},
{
"name": "password",
"in": "path",
"description": "The password of the job (Translate password)",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Job TMX",
},
"default": {
"description": "Unexpected error"
}
}
}
},
"/api/v2/glossaries/import/": {
"post": {
"tags": [
Expand Down

0 comments on commit 33d8bdc

Please sign in to comment.