You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a RESTful web application that registers shortened URLs with their full URL counterpart.
4
+
5
+
When a short URL is requested the application should redirect to the matching full URL.
6
+
7
+
The goal of this exercise is to play with data persistence and dabble with some HTTP interactions. With that in mind, the focus is not to be feature rich or observe standard web security concerns.
8
+
9
+
## Requirements
10
+
11
+
- Your application should persist data in between restarts (you're encouraged to try out [sqlite3][sqlite] in the standard library).
12
+
- You may use the web framework of your choice. If you're not sure where to start, check out [Flask][flask] and a decent [introduction][flask_intro].
13
+
14
+
You have flexibility in how you design the API, but in general:
15
+
- Accept the long form of a URL and generate a corresponding short URL that can be requested later.
16
+
- The service should redirect to the long URL when the short URL is requested. If the short URL isn't registered the service should respond with an `HTTP 404`.
17
+
-*Optional:* keep statistics for each short URL showing information about how many times it has been requested.
0 commit comments