Skip to content

Shailendra1118/digital-archiver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST Document Archive

A simple document archive with REST interface. Mainly inspired by https://murygin.wordpress.com/2014/10/13/rest-web-service-file-uploads-spring-boot

Build and run

REST API

  • Add a document

    /archive/upload?file={file}&person={person}&date={date} POST

    • file: A file posted in a multipart request
    • person: The name of the uploading person
    • date: The date of the document
  • Find documents

    /archive/documents?person={person}&date={date} GET

    • person: The name of the uploading person
    • date: The date of the document
  • Get a document

    /archive/document/{id} GET

    • id: The UUID of a document