forked from mozilla/pontoon
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to search terminology via API (mozilla#3532)
Adds a GraphQL API call support for simple case-insensitive search of terms and their translations for a given locale. Example: ```graphql query { termSearch(search: "open", locale: "sl") { text partOfSpeech definition usage translationText } } ``` Response: ```json { "data": { "termSearch": [ { "text": "open source", "partOfSpeech": "ADJECTIVE", "definition": "Refers to any program whose source code is made available for use or modification.", "usage": "These terms are not intended to limit any rights granted under open source licenses", "translationText": "odprtokoden" } ] } } ``` Also enables GraphiQL everywhere.
- Loading branch information
Showing
7 changed files
with
238 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.