The API module should allow changing the list of representations of a form, and/or changing its grammatical features.
The API module is intended for the Lexeme page UI only.
API specification:
- input:
- formId
- data: JSON array, containing representations and grammatical features after the edit, e.g.
{
"representations": {
"en-gb": "colours",
"en-us": "colors",
},
"grammaticalFeatures: ["Q666"]
}- action-specific fields in the response:
- form: JSON representation of the saved form
- lastrevid: revision ID
- edit summary format: TBC