openlawlibrary / OLAAF-Transient

Transient authentication implementation
Other
3 stars 0 forks source link

Create authentication upload page #27

Closed renatav closed 4 years ago

renatav commented 4 years ago

The users should be able to upload a previously downloaded html or pdf file. The server should then check if the file is authentic and current or not and return the result of this check.

danixeee commented 4 years ago

@Vlasterx here's a sample json response for the auth page.

[
  {
    "fileName": "2.02.html",
    "url": "us/ca/cities/san-mateo/charter/2.02",
    "authentic": true,
    "current": true,
    "fromDate": "02-03-2020",
    "toDate": null
  },
  {
    "fileName": "2018/8.html",
    "url": "_publication/2020-01/_date/2018-10-31/us/ca/cities/san-mateo/ordinances/2018/8",
    "authentic": true,
    "current": false,
    "fromDate": "2018-10-31",
    "toDate": "02-03-2020"
  },
  {
    "fileName": "11.56.160.html",
    "url": null,
    "authentic": false,
    "current": null,
    "fromDate": null,
    "toDate": null
  },
  {
    "fileName": "2020-6.pdf",
    "url": "us/ca/cities/san-mateo/ordinances/2020/adopted/2020-6.pdf",
    "authentic": true,
    "current": true,
    "fromDate": "02-03-2020",
    "toDate": null
  }
]