Content Search
Search strings
Changed onSearch for strings in your project using GraphQL.
Example Query:
query Search($searchStringsFilter: SearchStringsFilter!) {
searchStrings(searchStringsFilter: $searchStringsFilter) {
content {
source {
hashcode
}
translations {
translationForms {
translationText
pluralForm
}
}
}
totalCount
totalWordCount
__typename
}
}
post/strings-view-service-graphql-api/v2/projects/{projectId}/graphql
Request
- Base URLhttps://api.smartling.com
- AuthHTTP bearer
Path parameters
projectIdstring required
Unique identifier of a Smartling project — 9 lowercase alphanumeric characters.
Example:84c012a33
Request body
object required
Response
OK
Example response
{
"data": {
"searchStrings": {
"content": [
{
"source": {
"hashcode": "d41d8cd98f00b204e9800998ecf8427e"
},
"translations": [
{
"translationForms": [
{
"translationText": "El rápido zorro marrón salta sobre el perro perezoso.",
"pluralForm": "ONE"
}
]
}
]
}
],
"totalCount": 198,
"totalWordCount": 644,
"__typename": "StringGroup"
}
}
}Changes
- breaking
added the pattern
^[a-z0-9]{9}$to thepathrequest parameterprojectId - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the
/////response's property type changed fromstringto no type for status - info
for the
pathrequest parameterprojectId, the format was generalized fromuuidto no format - info
added to the
/////response propertyallOflist for the response status
- breaking
- info
endpoint added
- info