Skip to content

❇️ [RTY-260001]: add/api on cli #4

@harshmishra2701

Description

@harshmishra2701

Is your feature request related to a problem? Please describe.
add 2 endpoint and it should run using poetry run tiny api

Describe the solution you'd like

  1. shorten api
  • API endpoint : /shorten
  • Method : POST
  • Request :
{
"url" : "http://abcd.com"
}
  • Response
{
"input_url" : "http://abcd.com", 
"output_url" : "http://<domain name>/Kaq5w1",
"created_on":"timestamp"
}

2.version api

  • API endpoint : /version
  • Method : GET
  • Response :
{
"version":0.0.1
}

Describe alternatives you've considered
Using existing sample repositories for reference https://github.com/recursivezero/sample-py

Additional context
This API will improve usability and allow integration with frontend or third-party services

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions