Jul-05-2019, 05:41 PM
Hi,
If Django should receive a GET request with the URL only and should respond with the shortened URL -> you need a REST-type interface.
So basically you need to make up your mind how you want to do it.
If you go for REST: the are Python webframeworks like Hug which focus on REST APIs only. On what you described so far, I see no advantage in using Django specifically for your task.
Regards, noisefloor
I read something about REST API, is it what i need, or not?Depends on how you want to do it. If the URL is entered on a HTML page delivered by Django -> not REST necessary.
If Django should receive a GET request with the URL only and should respond with the shortened URL -> you need a REST-type interface.
So basically you need to make up your mind how you want to do it.
If you go for REST: the are Python webframeworks like Hug which focus on REST APIs only. On what you described so far, I see no advantage in using Django specifically for your task.
Regards, noisefloor