Skip to content

Simple web API service for trimming links (in development)

Notifications You must be signed in to change notification settings

Konstant1nov1ch/GoScissor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoScissor

GoScissor is a simple web API service for trimming links (currently in development).

Example: http://localhost:8080/admin/tokens

Example screenshot

At the moment, the service supports 3 types of requests:

  • GET /admin/tokens - list tokens from database
  • GET /:short_url - redirect by short link
  • POST /sci - generate short_url from full_url
  • 'Body:{"full_url": "https://loooong/url/for/example.html"}'

I added a two-level algorithm caches 2Q on a screenshot can be seen that the difference redirect when you call from the cache is 31 times faster (I think it's a success)!

Proof:

image

Right now, the web client works like this:

image

About

Simple web API service for trimming links (in development)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published