I am developing my REST API in dart with shelf for my Flutter app. A little confusion of the relationship between REST and TLS/SSL. Do I need to implement TLS/SSL right way in my dart shelf code? or I just put a http server like NGINX etc. to middle of caller and my API, then apply TLS/SSL on the middle server? What the best product architecture of REST API and app? What kind of exactly role is API Gateway? Thanks a lot.
I had been googling a lot but can not put all pieces together.