Skip to content
Snippets Groups Projects
Commit ac5c166a authored by Patricio Kumagae's avatar Patricio Kumagae
Browse files

Cambios en el nombre del ots

parent 30fba8fa
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,7 @@ class Verify(APIView): ...@@ -80,7 +80,7 @@ class Verify(APIView):
name='json', name='json',
required=True, required=True,
location='body', location='body',
schema=coreschema.String(description='Parámetros:<br><ul><li>file_hash: El hash del archivo encodeado en sha256</li><li>ots: OTS (Temporal o definitivo) recibido como prueba al momento de realizar el stamp o el verify</li></ul><br>Ejemplo:<br> <pre>{"file_hash": "1957db7fe23e4be1740ddeb941ddda7ae0a6b782e536a9e00b5aa82db1e84547","ots": "MHgtZWViNzJhMzYxZmU3NWMyNDA4Y2VmYjU1NDZkNTRkMDYzNWJmOTA5MmNkNmFkNTYxMjQ4YzFlZjNjZTJkMzQ4NDAxLTB4OTAyMDdiZTI5OTExMGJmZGFhYTliZDI1Zjg5ZTdiYTNhMmFmM2U0YTIzNmYzYTEzMWVmZWRjYjE4Y2E2YTE2Zg=="}</pre>'), schema=coreschema.String(description='Parámetros:<br><ul><li>file_hash: El hash del archivo encodeado en sha256</li><li>rd: Recibo digital (Temporal o definitivo) recibido como prueba al momento de realizar el stamp o el verify</li></ul><br>Ejemplo:<br> <pre>{"file_hash": "1957db7fe23e4be1740ddeb941ddda7ae0a6b782e536a9e00b5aa82db1e84547","rd": "MHgtZWViNzJhMzYxZmU3NWMyNDA4Y2VmYjU1NDZkNTRkMDYzNWJmOTA5MmNkNmFkNTYxMjQ4YzFlZjNjZTJkMzQ4NDAxLTB4OTAyMDdiZTI5OTExMGJmZGFhYTliZDI1Zjg5ZTdiYTNhMmFmM2U0YTIzNmYzYTEzMWVmZWRjYjE4Y2E2YTE2Zg=="}</pre>'),
), ),
]) ])
...@@ -90,11 +90,11 @@ class Verify(APIView): ...@@ -90,11 +90,11 @@ class Verify(APIView):
if not request.data.get('file_hash'): if not request.data.get('file_hash'):
raise ValidationError('file_hash') raise ValidationError('file_hash')
if not request.data.get('ots'): if not request.data.get('rd'):
raise ValidationError('ots') raise ValidationError('rd')
file_hash = request.data.get('file_hash') file_hash = request.data.get('file_hash')
base64_ots = request.data.get('ots') base64_ots = request.data.get('rd')
ots = base64.b64decode(base64_ots).decode('utf-8') ots = base64.b64decode(base64_ots).decode('utf-8')
......
No preview for this file type
...@@ -8,7 +8,7 @@ msgid "" ...@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-03 12:22-0300\n" "POT-Creation-Date: 2018-09-11 17:30-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -17,63 +17,63 @@ msgstr "" ...@@ -17,63 +17,63 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: TsaApi/settings.py:120 #: TsaApi/settings.py:121
msgid "Spanish" msgid "Spanish"
msgstr "" msgstr ""
#: app/views.py:60 app/views.py:63 app/views.py:65 app/views.py:68 #: app/views.py:47 app/views.py:50 app/views.py:52 app/views.py:55
#: app/views.py:139 app/views.py:145 app/views.py:162 app/views.py:167 #: app/views.py:120 app/views.py:126 app/views.py:143 app/views.py:148
#: app/views.py:171 app/views.py:174 app/views.py:176 app/views.py:179 #: app/views.py:152 app/views.py:155 app/views.py:157 app/views.py:160
msgid "status" msgid "status"
msgstr "" msgstr ""
#: app/views.py:60 app/views.py:139 app/views.py:162 #: app/views.py:47 app/views.py:120 app/views.py:143
msgid "success" msgid "success"
msgstr "" msgstr ""
#: app/views.py:60 #: app/views.py:47
msgid "temporary_ots" msgid "temporary_ots"
msgstr "" msgstr ""
#: app/views.py:63 app/views.py:65 app/views.py:68 app/views.py:145 #: app/views.py:50 app/views.py:52 app/views.py:55 app/views.py:126
#: app/views.py:171 app/views.py:174 app/views.py:176 app/views.py:179 #: app/views.py:152 app/views.py:155 app/views.py:157 app/views.py:160
msgid "failure" msgid "failure"
msgstr "" msgstr ""
#: app/views.py:63 app/views.py:65 app/views.py:68 app/views.py:141 #: app/views.py:50 app/views.py:52 app/views.py:55 app/views.py:122
#: app/views.py:145 app/views.py:162 app/views.py:167 app/views.py:171 #: app/views.py:126 app/views.py:143 app/views.py:148 app/views.py:152
#: app/views.py:174 app/views.py:176 app/views.py:179 #: app/views.py:155 app/views.py:157 app/views.py:160
msgid "messages" msgid "messages"
msgstr "" msgstr ""
#: app/views.py:63 app/views.py:174 #: app/views.py:50 app/views.py:155
msgid "parameter_missing" msgid "parameter_missing"
msgstr "" msgstr ""
#: app/views.py:65 app/views.py:176 #: app/views.py:52 app/views.py:157
msgid "could_not_connect" msgid "could_not_connect"
msgstr "" msgstr ""
#: app/views.py:68 app/views.py:179 #: app/views.py:55 app/views.py:160
msgid "operation_failed" msgid "operation_failed"
msgstr "" msgstr ""
#: app/views.py:140 app/views.py:162 #: app/views.py:121 app/views.py:143
msgid "permanent_ots" msgid "permanent_ots"
msgstr "" msgstr ""
#: app/views.py:141 app/views.py:162 #: app/views.py:122 app/views.py:143
msgid "file_uploaded" msgid "file_uploaded"
msgstr "" msgstr ""
#: app/views.py:145 app/views.py:171 #: app/views.py:126 app/views.py:152
msgid "file_not_found" msgid "file_not_found"
msgstr "" msgstr ""
#: app/views.py:167 #: app/views.py:148
msgid "pending" msgid "pending"
msgstr "" msgstr ""
#: app/views.py:167 #: app/views.py:148
msgid "transaction_pending" msgid "transaction_pending"
msgstr "" msgstr ""
No preview for this file type
...@@ -8,7 +8,7 @@ msgid "" ...@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-03 12:22-0300\n" "POT-Creation-Date: 2018-09-11 17:30-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -18,64 +18,64 @@ msgstr "" ...@@ -18,64 +18,64 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: TsaApi/settings.py:120 #: TsaApi/settings.py:121
msgid "Spanish" msgid "Spanish"
msgstr "" msgstr ""
#: app/views.py:60 app/views.py:63 app/views.py:65 app/views.py:68 #: app/views.py:47 app/views.py:50 app/views.py:52 app/views.py:55
#: app/views.py:139 app/views.py:145 app/views.py:162 app/views.py:167 #: app/views.py:120 app/views.py:126 app/views.py:143 app/views.py:148
#: app/views.py:171 app/views.py:174 app/views.py:176 app/views.py:179 #: app/views.py:152 app/views.py:155 app/views.py:157 app/views.py:160
msgid "status" msgid "status"
msgstr "status" msgstr "status"
#: app/views.py:60 app/views.py:139 app/views.py:162 #: app/views.py:47 app/views.py:120 app/views.py:143
msgid "success" msgid "success"
msgstr "success" msgstr "success"
#: app/views.py:60 #: app/views.py:47
msgid "temporary_ots" msgid "temporary_ots"
msgstr "temporay_ots" msgstr "temporay_rd"
#: app/views.py:63 app/views.py:65 app/views.py:68 app/views.py:145 #: app/views.py:50 app/views.py:52 app/views.py:55 app/views.py:126
#: app/views.py:171 app/views.py:174 app/views.py:176 app/views.py:179 #: app/views.py:152 app/views.py:155 app/views.py:157 app/views.py:160
msgid "failure" msgid "failure"
msgstr "failure" msgstr "failure"
#: app/views.py:63 app/views.py:65 app/views.py:68 app/views.py:141 #: app/views.py:50 app/views.py:52 app/views.py:55 app/views.py:122
#: app/views.py:145 app/views.py:162 app/views.py:167 app/views.py:171 #: app/views.py:126 app/views.py:143 app/views.py:148 app/views.py:152
#: app/views.py:174 app/views.py:176 app/views.py:179 #: app/views.py:155 app/views.py:157 app/views.py:160
msgid "messages" msgid "messages"
msgstr "messages" msgstr "messages"
#: app/views.py:63 app/views.py:174 #: app/views.py:50 app/views.py:155
msgid "parameter_missing" msgid "parameter_missing"
msgstr "Parámetro faltante: %s" msgstr "Parámetro faltante: %s"
#: app/views.py:65 app/views.py:176 #: app/views.py:52 app/views.py:157
msgid "could_not_connect" msgid "could_not_connect"
msgstr "No se pudo conectar a la Blockchain" msgstr "No se pudo conectar a la Blockchain"
#: app/views.py:68 app/views.py:179 #: app/views.py:55 app/views.py:160
msgid "operation_failed" msgid "operation_failed"
msgstr "No se pudo realizar la operación" msgstr "No se pudo realizar la operación"
#: app/views.py:140 app/views.py:162 #: app/views.py:121 app/views.py:143
msgid "permanent_ots" msgid "permanent_ots"
msgstr "permanent_ots" msgstr "permanent_rd"
#: app/views.py:141 app/views.py:162 #: app/views.py:122 app/views.py:143
msgid "file_uploaded" msgid "file_uploaded"
msgstr "El archivo %s fue ingresado en el bloque %s el %s" msgstr "El archivo %s fue ingresado en el bloque %s el %s"
#: app/views.py:145 app/views.py:171 #: app/views.py:126 app/views.py:152
msgid "file_not_found" msgid "file_not_found"
msgstr "No se encontró el archivo" msgstr "No se encontró el archivo"
#: app/views.py:167 #: app/views.py:148
msgid "pending" msgid "pending"
msgstr "pending" msgstr "pending"
#: app/views.py:167 #: app/views.py:148
msgid "transaction_pending" msgid "transaction_pending"
msgstr "La transacción se encuentra pendiente de subida a la Blockchain" msgstr "La transacción se encuentra pendiente de subida a la Blockchain"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment