Web technologies/2014-2015/Laboratory 13

Web Service using REST API
Create a simple RESTful web services that accepts artifacts and stores them based on their id. The web service should have the following structure:

Features:

 * You can use whatever technology you deem necessary (Flask, NodeJS, Jersey, Java Servlets etc.)
 * All responses should be in JSON format (except when the item is returned)
 * HTTP Status codes should be appropriate to the given context
 * Artefacts should be stored on the computer file systems and renamed to the id used in the resource
 * If the directory is does not exist the service should create it
 * BONUS: How would you modify the resource structure so that artifacts could be grouped or versioned?
 * BONUS: Because you could never trust user input think on how you can verify if the file name is in a certain format (using predefined web platform methods is allowed).

Links:
Gabriel Iuhasz, 2016-12-12, [mailto:iuhasz.gabriel@e-uvt.ro iuhasz.gabriel@e-uvt.ro]
 * Flask documentation
 * Jersey
 * NodeJS