Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The web interface will get its data from a single RESTful web service. This web service is an API against the collection of batches of microfilms. The base URI is http://<server name>/batches. This API only supports the JSON internet media type.

...

request response
batches 

JSON list of {"batch-id": <id>, "events": {"event-id": <event id>, "succes": <boolean result of the event>}}

batches/{id} {"batch-id": <id>, "events": {"event-id": <event id>, "succes": <boolean result of the event>}}
batches/{id}/{event id} 

JSON list of {"event-id": <id>, "batches": {"batch-id": <batch id>, "succes": <boolean result of the event>}}

All three URIs can have  have a details parameter which has the default value of false. When details is true each of the above requests will return a detailed response. The content of this detail is to be decided.

The RESTful web service agregates information from several components of which three is known: The Newspaper Mfpak Integration, the SBOI, and the component for generating dissemination copies. The web service is integrated with these component using a Java interface.

code base

The surveillance interface is split into two Maven modules, one containing the web service and one containing a web site for testing and developing. These two modules will be deployed as a single WAR file. It will be possible and recommended to create a new WAR containing a real web application using the RESTful web service.

Development

https://github.com/statsbiblioteket/newspaper-digitisation-process-monitor

...