Skip to content
Permalink
Branch: master
Commits on Feb 11, 2020
  1. Fix: failing test

    lukePeavey committed Feb 11, 2020
    Update the test for `/quotes/:id`... add the `length` and `tags` fields to expected
    response.
  2. Refactor: controllers

    lukePeavey committed Feb 11, 2020
    - move the filter for quote length into a separate function.
    
    - Instead of listing all the fields that should be included in the
      response, just exclude the ones that we don't want (`__v` and
      `authorId`)
  3. Chore: update packages

    lukePeavey committed Feb 11, 2020
    Update all packages to latest version
Commits on Feb 10, 2020
  1. Feature: filter quotes by length (#23)

    Dragonsight91 committed Feb 10, 2020
    Added minlength and maxlength query parameters to the following endpoints
    
    - /quotes
    - /random
Commits on Feb 9, 2020
  1. Fix typo in readme

    lukePeavey committed Feb 9, 2020
  2. Enhancement: sort tags by number of quotes (#24)

    lukePeavey committed Feb 9, 2020
    - Add `sortBy`  params to `/tags` endpoint. Tags can be sorted by
    `name` (default) or by `quoteCount`.
    
    - Update README
    
    Part of issue #8
  3. Add functionality to filter quotes by tags (#22)

    marekdano committed Feb 9, 2020
    Added a `tags` param to the following endpoints as discussed in issue #8. This allows users to filter quotes by tag names.
    
    - `GET /quotes`
    - `GET /random`
Commits on Feb 1, 2020
  1. Add type definitions for jest

    lukePeavey committed Feb 1, 2020
    This adds intellisense and autocomplete for Jest in vscode
  2. Remove duplicated tags from quotes in sample data (#21)

    marekdano committed Feb 1, 2020
Commits on Jan 31, 2020
  1. Update CircleCI workflow (#20)

    lukePeavey committed Jan 31, 2020
    - Refactor scripts/seedDatabase
    - Modify circleCI workflow so it can run tests on pull requests
  2. Add a `length` field to `Quote` schema

    lukePeavey committed Jan 31, 2020
    The `length` field indicates the number of characters in the quote.
    This can be used to filter/sort quotes by length (see #19).
    
    - Added field to Quote schema
    - Updated sample data
  3. Refactor randomQuote controller

    lukePeavey committed Jan 31, 2020
    Add a $match stage to aggregation pipeline to support filter params
  4. Add tags to sample data

    lukePeavey committed Jan 31, 2020
    Randomly assign tags to the quotes in sample data.  This is a temporary
    solution to enable testing the tags API (#8) locally.
Commits on Jan 28, 2020
  1. Add feature tags (#17)

    marekdano authored and lukePeavey committed Jan 28, 2020
    * Add function to jest to auto-refresh when test files changed.
    
    * Add API for getting a quote by its ID.
    
    * Change 'sample' folder to 'samples' and update gitignore and contributing files.
    
    * Add web API for getting list of 'tags'.
    
    * Remove duplicate web API in 'routes' for getting a quote by its ID.
    
    * Rename 'samples' folder back to 'sample'.
Commits on Jan 27, 2020
  1. Fix npm security vulnerabilities

    lukePeavey committed Jan 27, 2020
    Ran `npm audit fix`
Commits on Jan 26, 2020
  1. Remove Moesif integration

    lukePeavey committed Jan 26, 2020
Commits on Dec 24, 2019
  1. Fix README links

    lukePeavey committed Dec 24, 2019
  2. Update docs (#13)

    lukePeavey committed Dec 24, 2019
    - Add several live examples to docs
    
    - Add function call to async snippet
  3. Redirect root URL to github repository (#12)

    lukePeavey committed Dec 24, 2019
    Until the website is complete, the root URL https://api.quotable.io/
    will redirect to the github repository page.
Commits on Dec 17, 2019
  1. Fix MongoDB connection settings

    lukePeavey committed Dec 17, 2019
    Should fix failing tests in CircleCI
  2. Use mongo's $sample feature to get random quote

    lukePeavey committed Dec 17, 2019
    This seems to be faster than generating a random number between 0 and
    documentCount, then using `findAll` and `skip`.
  3. Minor performance tweak

    lukePeavey committed Dec 17, 2019
    Instead of making two consecutive database calls (to get paginated
    results and the total number of matching results),  perform both
    operations in parallel.
  4. Refactor: project structure

    lukePeavey committed Dec 17, 2019
    Split routes and controllers into separate files.
Commits on Dec 16, 2019
  1. Update package-lock

    lukePeavey committed Dec 16, 2019
Commits on Oct 4, 2019
  1. Add contribution guidelines (#9)

    lukePeavey committed Oct 4, 2019
Commits on Sep 30, 2019
  1. Bump version

    lukePeavey committed Sep 30, 2019
  2. Update gitignore

    lukePeavey committed Sep 30, 2019
Commits on Sep 25, 2019
  1. Update dependencies

    lukePeavey committed Sep 25, 2019
    Fixes security vulnerability:
    lodash/lodash#4348
Commits on Sep 23, 2019
  1. Fix failing test

    lukePeavey committed Sep 23, 2019
Commits on Sep 19, 2019
  1. Add API for getting a quote by its ID (#7)

    marekdano authored and lukePeavey committed Sep 19, 2019
  2. Remove downtime notice from readme

    lukePeavey committed Sep 19, 2019
  3. Add message about downtime

    lukePeavey committed Sep 19, 2019
Commits on Sep 11, 2019
  1. Updated responses from web APIs in the README file (#4)

    marekdano authored and lukePeavey committed Sep 11, 2019
    I've tested the defined web APIs and found some inconsistencies in the README. That's the reason why I've updated README.
Commits on Jul 1, 2019
  1. Fix entry point

    lukePeavey committed Jul 1, 2019
Older
You can’t perform that action at this time.