2021-02-13 11:47:33 +01:00
2021-02-13 11:47:33 +01:00
2021-02-13 11:47:33 +01:00
2021-02-13 11:47:33 +01:00
2021-02-13 11:47:33 +01:00
2021-02-13 11:47:33 +01:00

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:

  • GET /code/new should return the page that allows to save a new snippet:

  • GET /code/UUID should return the page with associated code snippet:

  • GET /code/latest should return the page with 10 most recently uploaded unrestricted code snippets:

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:

  • GET /api/code/UUID should return a JSON object with associated code snippet:

  • GET /api/code/latest should return a JSON array the 10 most recently uploaded unrestricted code snippets:

Description
No description provided
Readme 559 KiB
Languages
Java 100%