Code Monkey home page Code Monkey logo

mad-backend's Introduction

mtl-artist-database-backend

Overview of this repository:

  • Server written in Node.js using Express.Js
  • Database Wrapper uses Knex.js,and promise-mysql
  • MySQL database

API Documentation:

You can consume this API. All endpoints are located at path http://mad-backend.herokuapp.com/api/v1

Endpoints

  • /genreIDs

    Accepts two query parameters: genre and searchterm, responds with an array of objects containing the property "band_id", representing ID numbers of bands which matched the genre or searchterm query. Currently, searchterm overrides genre (so if both genre and searchterm are specified, the genre will be ignored).

    genre should be one of the following: 'all', 'Classical & Traditional', 'DJ', 'Electro/Pop', 'Experimental', 'Hip-Hop', 'Jazz', 'Metal', 'Punk', 'R&B, Soul, Funk', 'Rock/Alternative', 'Singer-Songwriter', 'World & Reggae'

    searchterm can be blank or any desired searchterm.

  • /bands

    accepts one query parameter: bandIDarray, responds with an array of objects, each representing limited info on a band (for previewing purposes).

    bandIDarray should be an array of ID numbers, such as those returned by /genreIDs.

    Objects sent in response will have the properties: {apple_music_url, band_id, band_name, facebook_url, instagram_url, music_link, spotify_url, thumb_photo_url, twitter_url, youtube_url}

  • /bandData

    accepts one query parameter: band_id, responds with an array containing one object, representing extended info on a band (for full profile purposes).

    band_id should be a single ID number, such as those returned by /genreIDs.

    The Object sent in response will have the properties: {band_id, band_name, band_genre, music_link, apple_music_url, spotify_url, facebook_url, instagram_url, twitter_url, youtube_url, photo_url, band_email, management_email, booking_email, pr_email, members, band_description, full_photo_url}

mad-backend's People

Contributors

bashunaimiroy avatar gracescharf 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.