Code Sharing Platform

Web service to store syntax highlighted code snippets generating unique identifiers with the added possibility of configure its self-deletion based on time and views limitations. There are two possible interfaces: API and web. The API interface returns data as `JSON`, while the web interface uses `HTML`, `JS`, and `CSS`.

Web interface endpoints

* `GET /` should return the starting page: ![](src/main/resources/img/index.png) * `GET /code/new` should return the page that allows to save a new snippet: ![](src/main/resources/img/new_snippet.png) * `GET /code/UUID` should return the page with associated code snippet: ![](src/main/resources/img/snippet.png) * `GET /code/latest` should return the page with 10 most recently uploaded unrestricted code snippets: ![](src/main/resources/img/latest.png)

API interface endpoints

* `GET /api/code/new` should take a JSON object with a field `code` and two other fields:     1. `time` field containing the time (in seconds) during which the snippet is accessible.     2. `views` field containing a number of views allowed for this snippet. And return JSON with a single field id: ![](src/main/resources/img/api_new_snippet.png) * `GET /api/code/UUID` should return a JSON object with associated code snippet: ![](src/main/resources/img/api_snippet.png) * `GET /api/code/latest` should return a JSON array the 10 most recently uploaded unrestricted code snippets: ![](src/main/resources/img/api_latest.png)