[go: nahoru, domu]

Skip to content

Blocopad is a simple and easy to use online notepad.

Notifications You must be signed in to change notification settings

stenio-lima/blocopadAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlocopadAPI

Blocopad is a simple and easy to use online notepad.

Run database: you need run a redis instance with Docker

docker run -p 6379:6379 --name some-redis -d redis

Run application with:

cd cmd
go run main.go

POST and GET requests:

POST: curl -i --header "Content-Type: application/json" --request POST --data '{"data" : "save this", "onetime" : false}' http://localhost:8080/api/note
GET: curl -i  http://localhost:8080/api/note/{id}

OneTime

The onetime function allows such a note to be viewed once and deleted after being read.

onetime: curl -i --header "Content-Type: application/json" --request POST --data '{"data" : "save this one time", "onetime" : true}' http://localhost:8080/api/note

Read more about the main technologies used in this project:

About

Blocopad is a simple and easy to use online notepad.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages