Feature summary (what you would like to be able to do and where):
Provide yet another additional endpoint that uses domain definitions (i.e., templates and patterns, and tests?) posted by the user instead of those in our storage in Meta.
This endpoint may return a webpage split in two:
- the left part could have two text areas, one for the templates and one for the patterns.
- the right part would show the translation output, just like the main endpoint, or the more-detailed information one described in T301748
The first time the user sends a request to this endpoint, it would return a translation using the domain definitions saved to our storage. This time, the template and pattern text areas would show these definitions. Next, the user would be able to change the definitions in these text areas and push a "translate" button that would post these updated definitions to the endpoint to get an updated translation using these new definitions.
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
As described in T301748, until the Web2Cit-Editor is available, some users may be willing to start testing the system by manually defining templates and patterns, and asking the Web2Cit-Server to pick them up to translate some URLs.
However, writing these definitions may involve some trial and error, which would mean actual changes to the pages in our storage in Meta. This would not only be slow, but more importantly it may break translation for everyone until the trial and error has settled.
Benefits (why should this be implemented?):
With the solution described here, the users would have (until Web2Cit-Editor is available) a place to play around with the definitions, and finally paste them to the storage when they have found something that works as expected.