Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New API] : URL Shortener API Added #294

Merged

Conversation

sivaprasath2004
Copy link
Contributor

Hello @dishamodi0910 ,

🎯 Title and Issue Number

[New API] : URL Shortener API Added

Closes #293

Video

Screencast.from.2024-06-17.20-06-50.webm

🗒️ Checklist:

  • I have mentioned the issue number in my Pull Request.
  • I have gone through rules of when PR will get merged.
  • I have commented my code, particularly in hard-to-understand areas
  • I have created a helpful and easy to understand README.md
  • I have followed proper file structure.
  • I have gone through CONTRIBUTING GUIDELINES.md.

Thank you for contributing!❤️

Don't forget to show some love by ⭐ the repository!

@dishamodi0910
Copy link
Owner

Hey @sivaprasath2004, Thank you for creating PR! We will review it super soon. 😇❣️
As we continue to evolve and innovate, we encourage you to share your ideas, feedback, and code to help us push the boundaries of what's possible in the world of APIs🚀.
We hope you have followed CONTRIBUTING GUIDELINES.
Thank you for being an essential part of our community. Together, we'll keep building amazing things!
Don’t forget to ⭐ our repository!
Happy Coding!✨
Will See you soon❣️

@dishamodi0910
Copy link
Owner

@sivaprasath2004 Please add proper README.md file in your API folder explaining about what you have done and how it be used.

@dishamodi0910 dishamodi0910 added under-review Review PR! changes-requested Changes are needed. labels Jun 23, 2024
@sivaprasath2004
Copy link
Contributor Author

@dishamodi0910 i will finish it..

@sivaprasath2004
Copy link
Contributor Author

@dishamodi0910 please merge this...

@sivaprasath2004
Copy link
Contributor Author

@dishamodi0910 please merge this

@dishamodi0910
Copy link
Owner

@sivaprasath2004 Please explain brief about what logic you have used for generating the short url and also do you think this integration would be used when we are already having bit.ly in market :)

@dishamodi0910 dishamodi0910 removed the changes-requested Changes are needed. label Jul 20, 2024
@sivaprasath2004
Copy link
Contributor Author

sivaprasath2004 commented Jul 21, 2024

Hello @dishamodi0910 ,

Creating a URL shortener backend involves building a service that takes long URLs and generates shorter, more manageable URLs.

app.post('/api/shorten',())
  1. Shorten URL:

    • POST request to /api/shorten with JSON body { "originalUrl": "https://www.example.com/blogs/nature-topic/edit }
    • Response: { "originalUrl": "https://www.example.com/blogs/nature-topic/edit", "shortUrl": "http://localhost:5000/abc123"}
  2. Redirect:

    • GET request to http://localhost:5000/abc123
    • Should redirect to https://www.example.com/blogs/nature-topic/edit

Copy link
Collaborator

@dinxsh dinxsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job!

@dinxsh dinxsh merged commit 7117032 into dishamodi0910:master Aug 8, 2024
@dishamodi0910
Copy link
Owner

@sivaprasath2004 We're thrilled to inform you that your pull request has been successfully merged into the APIverse🚀🎁
Your hard work, dedication, and expertise have made a significant impact on our project, and we couldn't be more grateful for your contributions.😇
Your code will now be a part of our growing ecosystem, helping developers worldwide to create exceptional APIs.❣️🔥
Happy Coding! ✨
Will See you soon❣️

@Kritika30032002 Kritika30032002 added gssoc New label for GSSOC-24 level3 NEW API/3 EXISTING API ENHANCEMENTS/5 BUGS and removed under-review Review PR! labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc New label for GSSOC-24 level3 NEW API/3 EXISTING API ENHANCEMENTS/5 BUGS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New API] : URL Shortener API
4 participants