This is a RESTful spring boot application that allows you to share your code with the other developers. You don't need to sign up on this. All you just need to do is to post your code, generate UUID and share it with your colleagues.
Programming is full of little secrets. Sometimes, even within the same company, there is some secret code that should be hidden from most of the colleagues. So you can set some restrictions and limitations on the code snippets you post and that piece of code will only be available to certain people of your choice, and it may be deleted in the future to hide the traces.
- limit on the number of views will allow viewing the snippet only a certain number of times, after which the snippet is deleted from the database.
- limit on the viewing time will allow viewing a code snippet for a certain period of time, and after its expiration, the code snippet is deleted from the database.
- Get JSON with the code snippet with given id
GET: /api/code/{id}
- Add new code snippet. JSON object should have fields code, time and views. Return id which gives acces to code snippet.
POST: /api/code/new
- Return a JSON array with 10 most recently uploaded code snippets sorted from the newest to the oldest.
GET: /api/code/latest
- Return HTML that contains the code snippet with given id
/code/id
- Return HTML where you can add new code snippet
/code/new
- Return HTML that contains 10 most recently uploaded code snippets
/code/latest