Documentation
Fetch information about a project item.
Get information about the project item you've sended
or check for its translations.
The data will come back to you just like you've provided them.
Examples
Fetching a project item again (after its translation) has the same structure as you send it in:
GET /api/v1/project/55/item/5
{
"__meta": {
"some": "thing",
"you" : "need"
},
"description": "... some translation ...",
"complex" : ["the","keys","stay"],
"but" : "all values will be translated."
}
As you can see the original data will be provided to.
Maybe you like to have them for comparison,
if the original text has changed.
Receive original text
To receive the original text you can add some value for the X-With-Origin header:
GET /api/v1/project/55/item/5
X-With-Origin: Yes
{
"__meta": {
"some": "thing",
},
"__origin": {
"description": "Some arbitrary structure.",
"complex" : ["as","you","like"],
"but" : "json at last."
},
"description": "... some translation ...",
"complex" : ["the","keys","stay"],
"but" : "all values will be translated."
}
Now the original (source) text will be present in the request too:
Requirements
| Name |
Requirement |
Type |
Description |
| project |
\d+ |
integer |
Project ID |
| item |
\d+ |
integer |
Project Item ID |
| withOrigin |
|
bool |
Set to '1' to receive the original text too. |
Status Codes
| Status Code |
Description |
| 200 |
|
| 402 |
- Further information will only be delivered when all invoices are paid.
|
| 403 |
- You are not allowed to lookup this project.
|
| 410 |
- This entity is no longer available.
|
| 404 |
|