Skip to content

krushl/urlShortedService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

urlShortedService

type_id

  • public = 1
  • private = 2
  • authorized = 3

create public short-link

you do not need to log in to create a link or follow it

http://127.0.0.1:5000/createShortUrl

request body in postman

{
    "url":"https://www.youtube.com/",
    "alias_url":"youtube",
    "type_id":1
}

in postman

http://127.0.0.1:5000/youtube

or

http://127.0.0.1:5000/aifhCqd$

create authorized and private short-link

you need to log in to create private and authorized links

http://127.0.0.1:5000/createShortUrl

request body in postman

authorized:

{
    "url":"https://www.youtube.com/",
    "alias_url":"youtube",
    "type_id":3
}

private:

{
    "url":"https://www.youtube.com/",
    "alias_url":"youtube",
    "type_id":2
}

in postman

http://127.0.0.1:5000/youtube

or

http://127.0.0.1:5000/aifhCqd$

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published