Git Product home page Git Product logo

mutably's Introduction

CRUD API

Base URL

https://mutably.herokuapp.com

Resources

  1. books
  2. pokemon
  3. albums

Books Endpoint

Request URL Action
GET /books READS all books
POST /books CREATES new book
GET /books/:id READS one book
PUT /books/:id UPDATES one book
DELETE /books/:id DELETES one book

Sample Response

GET /books

{
  books: [
    {
      _id: "563970891719c56cac83e5bb",
      title: "Around the World in 80 Days",
      author: "Jules Verne",
      image: "https://cloud.githubusercontent.com/assets/7833470/10892118/865bee3e-8156-11e5-9634-cd7bcd3d6d4f.jpg",
      releaseDate: "January 30, 1873",
      __v: 0
    },
    {
      _id: "563970891719c56cac83e5bc",
      title: "The Four Hour Workweek",
      author: "Tim Ferriss",
      image: "https://cloud.githubusercontent.com/assets/7833470/10892117/865b465a-8156-11e5-834b-9c4172d4b0fe.jpg",
      releaseDate: "April 1, 2007",
      __v: 0
    }
  ]
}

Pokemon Endpoint

Request URL Action
GET /pokemon READS all pokemon
POST /pokemon CREATES new pokemon
GET /pokemon/:id READS one pokemon
PUT /pokemon/:id UPDATES one pokemon
DELETE /pokemon/:id DELETES one pokemon

Note that the word "pokemon" is both singular and plural.

Sample Response

GET /pokemon

{
  pokemon: [
    {
      "name": "Bulbasaur",
      "pokedex": "001",
      "evolves_from": "Egg",
      "image": "https://upload.wikimedia.org/wikipedia/en/2/28/Pok%C3%A9mon_Bulbasaur_art.png"
    },
    {
      "name": "Venusaur",
      "pokedex": "003",
      "evolves_from": "Ivysaur",
      "image": "https://upload.wikimedia.org/wikipedia/en/d/dd/1200px-003Venusaur.png"
    }
  ]
}

Albums Endpoint

Request URL Action
GET /albums READS all albums
POST /albums CREATES new album
GET /albums/:id READS one album
PUT /albums/:id UPDATES one album
DELETE /albums/:id DELETES one album

Sample Response

GET /albums

{
  albums: [
    {
      _id: "58f16c62903fce7457f5195d",
      artistName: "Ladyhawke",
      name: "Ladyhawke",
      releaseDate: "2008, November 18",
      __v: 0,
      genres: [
        "new wave",
        "indie rock",
        "synth pop"
      ]
    },
    {
      _id: "58f16c62903fce7457f51961",
      artistName: "Anderson .Paak",
      name: "Malibu",
      releaseDate: "2016, January 15",
      __v: 0,
      genres: [
        "hip hop",
        "neo soul"
      ]
    }
  ]
}

Reset Seed Data

http://mutably.herokuapp.com/reset

mutably's People

Contributors

jlopker avatar

Watchers

 avatar  avatar  avatar

mutably's Issues

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.