-
1 instance (no load balancing)
-
In memory storage for fast access
-
No persistence (let say the purpose of the webservice is cache)
-
document change dates are set at the upload
-
Interfaces && Classes names => UpperCamelCase
-
everyOtherName => lowerCamelCase
/document
: get all documents/document/:id
: get a document matching an id/document/:id/current
: get the last version of a document
/document
:{document: *}
: store a new document- return : {id: string, date: string}
/document/:id
:{document: *}
: store a new version of a document- return : {id: string, date: string}
/document/:id/diff/:date/:date
: compute the difference between two versions of the document- *return : the diff with a classic user friendly traditionnal git diff format. (line start with + for addition and for deletion)
- Allow to delete documents.
- Handle array with difftool.
- Document with swagger
- Create a get route for documents/:id/:date to get a single version of a document