Code Monkey home page Code Monkey logo

project-express-api's Introduction

Golden Globe Express API Project

An API for getting the last ten years Golden Globe nominees.

Available endpoints

The API comes with a few pre-configured endpoints. They are listed with a brief explanation below.


/

Root endpoint. Nothing to see here.


/nominees

Lists all nominees for the last 10 years.


/nominees/search

Search for a nominee. Case-insensitive.

Example URL: /nominees/search?search=leo


/nominees/winners

Lists all the Golden Globe winners between 2010-2020.


/nominees/:year

Lists all nominees for a given year (2010-2020).

Example URL: /nominees/2017


/nominees/:year/winners

Lists all winners for a year.

Example URL: /nominees/2014/winners


/nominees/categories/:category

Lists all nominees for a given category.

Example URL: /nominees/categories/Best%20Motion%20Picture%20-%20Drama


/nominees/categories/:category/winners

Lists all winners for a given category.

Example URL: /nominees/categories/Best%20Motion%20Picture%20-%20Drama/winners


/nominees/:category/:year/winner

Lists the winner of a category for a given year.

Example URL: /nominees/Best%20Performance%20by%20an%20Actor%20in%20a%20Supporting%20Role%20in%20any%20Motion%20Picture/2015/winner


The problem

Had a huuuge knowledge gap when starting to tackle this project, but I went back and re-watched the video lectures on Monday and Wednesday, plus reading through this week's reading material. That helped me grok the basics, core functionality, how to structure the endpoint, some filtering functions, etc.

When writing the search endpoint I ran into an incredibly annoying issue with the data, where I tried to do an "includes()" on all of the ~1,000 "nominees" string entries. Turned out that one of the nominees entries was a number โ€“ the movie '1917' โ€“ which caused the filtering to break, and it took me too long to figure out why. Thanks, Sam Mendes.

project-express-api's People

Contributors

axelhammarback avatar idlefingers avatar emolsz avatar dependabot[bot] avatar puj avatar

Watchers

James Cloos 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.