Skip to content

dubstepkilla9999/REST-API-Paste-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST-API-Paste-Server

This simple REST web service stores any text and makes it available via a new randomized link (similar to some existing "paste" websites). It uses gin to do so.

Tested in a local network, using curl.

Endpoints:

  • GET /storage/{id}: Retrieve a previously stored text by its ID.
  • POST /storage: Create a new entry in the storage. Returns a JSON containing the text and its new randomly generated ID. You will then be able to retrieve this text by its ID.

Post request JSON body:

  {
    "content": "This is a test string."
  }

About

A REST server that stores any text data POSTed to it.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages