From 4433add28888acffd6af8d70cbea3e5d4661e415 Mon Sep 17 00:00:00 2001 From: susanodd Date: Thu, 30 May 2024 15:15:04 +0200 Subject: [PATCH] #1238: Sample html code with ajax morpheme update. --- ..._gloss_update_morphology_api_token_en.html | 139 ++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 signbank/dictionary/templates/dictionary/virtual_machine_gloss_update_morphology_api_token_en.html diff --git a/signbank/dictionary/templates/dictionary/virtual_machine_gloss_update_morphology_api_token_en.html b/signbank/dictionary/templates/dictionary/virtual_machine_gloss_update_morphology_api_token_en.html new file mode 100644 index 00000000..dbea30fc --- /dev/null +++ b/signbank/dictionary/templates/dictionary/virtual_machine_gloss_update_morphology_api_token_en.html @@ -0,0 +1,139 @@ + + + + +Test API Update Gloss + + + + + + + +
+
+

Test API Update Gloss Morphology

+

This template is for testing the gloss update API from a local file on your own computer.

+

+ + file:///home/user/folder/virtual_machine_gloss_update_morphology_api_token_en.html + +

+

It is intended for checking the multilingual translations of field choices and values.

+

The javascript AJAX call does not use the csrf token; your Signbank API Token goes in the headers:

+

+ + headers: { 'Authorization': 'Bearer XXXXXXXXXXXXXXXX', + 'Content-Type': 'application/json', + 'Accept-Language': 'en' } + +

+
+
+

Gloss Fields

+ + + + + + + + + + + + + + + + + +
+ Sequential Morphology + + +
+ Simultaneous Morphology + + +
+ Blend Morphology + + +
+ + + +

+
+
+
+

Updated Gloss

+

+

+

+
+
+ + +