5 ms·
To me the beauty of a restful API in flask is that you don't need to commit to anything. As far as the user is concerned, as long as /api/v1/user/15 gives back
by mcny 9y ago
To me the beauty of a restful API in flask is that you don't need to commit to anything. As far as the user is concerned, as long as /api/v1/user/15 gives back the user details for user number 15 (after checking authorization if necessary). The person who follows in my footsteps should be able to rewrite things one end-point at a time (as long as we clean things up after every transaction) in any other language (go lang or rust or swift seem like best bets). At least that is my hope, even if the person who follows in my footsteps is me!
- asfdsfggtfd 9y agoThis can be achieved with any framework. (1) Write your new endpoint. (2) Proxy to it via your old one. Or for a full re-write you might want to do things the other way. (1) Wrap the whole old app with a skeleton of the new one - just proxying the endpoints for now. (2) Start replacing the endpoints.
- znpy 9y ago> (1) Write your new endpoint. (2) Proxy to it via your old one. OR: (1) write your endpoint. (2) use something like apache's mod_rewrite to adapt endpoints.