Code Monkey home page Code Monkey logo

web-api's Introduction

Serverless REST Assignment

Name: Xiang Li

Video demonstration: https://youtu.be/H4lVfpoAXiw This repository contains an implementation of a serverless REST API for the AWS platform. The CDK framework is used to provision its infrastructure. The API's domain context is movie reviews.

API endpoints

  • POST /movies/reviews - add a movie review.
  • GET /movies/{movieId}/reviews - Get all the reviews for the specified movie.
  • GET /movies/{movieId}/reviews?minRating=n - Get the reviews for the specified movie with a rating greater than the minRating.
  • GET /movies/{movieId}/reviews/{reviewerName} - Get the review written by the named reviewer for the specified movie.
  • PUT /movies/{movieId}/reviews/{reviewerName} - Update the text of a review.
  • GET /movies/{movieId}/reviews?year=y - Get the reviews written in a specific year for a specific movie.
  • GET /reviews/{reviewerName} - Get all the reviews written by a specific reviewer.
  • GET /reviews/{reviewerName}/{movieId}/translation?language=code - Get a translated version of a movie review using the movie ID and reviewer name as the identifier.
  • POST /auth/signup - Register a new user account.
  • POST /auth/confirm_signup - Confirm the signup process.
  • GET /auth/signout - Sign out a user.
  • POST /auth/signin - Sign in a user.

api

api

api

Authentication (if relevant)

alt text

Independent learning (If relevant)

UpdateCommand

I used the UpdateCommand function to implement the function of updating and inserting film reviews. I learnt the syntax associated with using the UpdateCommand function. Related documents: pudateReview.ts, addMovieReview.ts. alt text

alt text

Amazon Translate

I learned and implemented how to use Amazon Translate to translate a review of a film into a specified language. Learned the rules for writing Amazon Translate and configuring user permissions accordingly. Related documents: translateReview.ts

translate

translate

web-api's People

Contributors

onion-l avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.