{"id":36,"date":"2022-02-12T23:45:52","date_gmt":"2022-02-12T23:45:52","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/manickaa\/?p=36"},"modified":"2022-02-12T23:45:52","modified_gmt":"2022-02-12T23:45:52","slug":"capstone-part4","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/manickaa\/2022\/02\/12\/capstone-part4\/","title":{"rendered":"Capstone Part#4"},"content":{"rendered":"\n<p>Last week, I got the API gateway and DynamoDB setup. This week, I was able to create few endpoints, test it out and put into use in our project. I felt very happy seeing that my backend server less setup is working and in this blog, I&#8217;m gonna talk about few improvements that needs to be done.<\/p>\n\n\n\n<p>The endpoints are currently not authorized, which means anyone with the api url can get data or post data in the DynamoDB table. I have it unauthorized for the ease of integrating with frontend. But, I have to authorize it soon to make the services individually secure. <\/p>\n\n\n\n<p>On research, I came across Auth0, which can provide authentication to the APIs by sending access token in the Authorization header, using the Bearer authentication scheme. For example, if I want to get the information for a pet, I need to get an access token to pass it in the request Authentication header. Once the token gets verified, I would be able to get all the information for the particular pet.<\/p>\n\n\n\n<p>This is the part that I&#8217;m going to be tackling over next week. I have researched on what should be done as best practices and I&#8217;m currently focusing on building all the necessary endpoints first, in order to unblock others. I&#8217;ll let you the difficulties of adding authorization to APIs in the next blog. Until then, byeeee!! \ud83d\ude00<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week, I got the API gateway and DynamoDB setup. This week, I was able to create few endpoints, test it out and put into use in our project. I felt very happy seeing that my backend server less setup is working and in this blog, I&#8217;m gonna talk about few improvements that needs to &hellip; <a href=\"https:\/\/blogs.oregonstate.edu\/manickaa\/2022\/02\/12\/capstone-part4\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Capstone Part#4<\/span><\/a><\/p>\n","protected":false},"author":12056,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/manickaa\/wp-json\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/manickaa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/manickaa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/manickaa\/wp-json\/wp\/v2\/users\/12056"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/manickaa\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":1,"href":"https:\/\/blogs.oregonstate.edu\/manickaa\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":38,"href":"https:\/\/blogs.oregonstate.edu\/manickaa\/wp-json\/wp\/v2\/posts\/36\/revisions\/38"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/manickaa\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/manickaa\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/manickaa\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}