Provides access to the data of the configured match resources (TM and MT systems).
URL: | /editor/plugins_matchresource_tmmt/[ID] |
Available Methods: | GET / POST / PUT / DELETE |
Specialities: | Non filebased match resources can only be added by the "admin" role. Users with the role "pm" can add filebased entries. |
Availability: | Only available for supporters of the crowdfunding until the crowdfunding is fully financed. |
Special URLs
URL | Methods | Parameters | Description |
---|---|---|---|
/editor/plugins_matchresource_tmmt/[ID]/query | GET | segmentId: integer; the id of the segment to be queried | returns a list with query results, format see below |
/editor/plugins_matchresource_tmmt/[ID]/search | GET / POST | query: string; the string to be searched in the underlying service | returns a list with search results, format see below |
/editor/plugins_matchresource_tmmt/[ID]/download | GET | - | Returns the uploaded TM file - if any. |
Search / Query result format
Name | Type | Info |
attributes | string | Additional meta data of the returned match/search result, empty if not available. |
created | date | Meta data, creation time stamp of the returned match/search result |
creator | string | Meta data, creator of the returned match/search result |
lastEdited | date | Meta data, last edited time stamp of the returned match/search result |
lastEditor | string | Meta data, last editor of the returned match/search result |
matchrate | integer | matchrate of a found match, 0 for search results. |
source | string | The found source text. |
state | string | "loaded" wenn all is OK, "servererror" when we got an error in the queried service. |
target | string | The found target text. |
tmmtid | string | The queried tmmtid, just for reference. |
Tmmt Resource Layout
Name | Type | Info |
id | integer | GET only |
entityVersion | integer | GET only, set by server |
name | string | Custom name of the match resource. |
sourceLang | integer | GET / POST, non editable after creation; numeric DB id of the language |
targetLang | integer | GET / POST, non editable after creation; numeric DB id of the language |
color | string | Custom color of the match resource in hexadecimal form, used in the GUI. |
resourceId | string | POST / GET, non editable after creation |
serviceType | string | GET only, set by setting a resourceId |
serviceName | string | GET only, set by setting a resourceId |
fileName | string | POST / GET, can not be changed |
filebased | boolean | GET only, set by setting a resourceId |
searchable | boolean | GET only, set by setting a resourceId |