Git Product home page Git Product logo

songs_api's Introduction

Welcome to SONGS API

This is a simple API that will let you GET, UPDATE, POST and DELETE songs and their singers to/from our API

To run the API make sure you have pipenv installed:

songs_one_to_many_API

Then activate your virtual environment by running:

pipenv shell

Then install all the packages and/or dependencies needed from Pipfile by running:

pipenv install

Once it's done installing, run the API with this command:

pipenv run python app.py

where app.py is the name of the file

⚠️ Make sure you change port mode from private to public when using the API in Gitpod

The API is only meant for educational purposes and requires information that already exists in the Internet

Here is the body to POST information about a SINGER in JSON format using /singers endpoint:

{

"ethnicity": "",

"first_name": "",

"last_name": "",

"race": "",

"religion": "",

"zodiac_sign": ""

}

Here is the body to POST information about a SONG in JSON format using /songs endpoint:

⚠️ Keep in mind when writing lyrics that JSON does not allow real line-breaks. You need to replace all the line breaks with \n.

⚠️ Also, if you don't know your "singer_id", just go to /singers endpoint to look it up

{

"album": "",

"date_released": "mm/dd/yyyy",

"lyrics": "",

"singer_id": #,

"song_name": ""

}

To GET information about posted singers and songs use the same endpoints

To UPDATE posted singers or songs use the same JSON body as shown above and use PUT method in POSTMAN using /singers/update-# or /songs/update-# endpoint, where you put your singer's or song's id instead of the #

To DELETE posted singers or songs use DELETE method in POSTMAN using /singers/delete-# or /songs/delete-# endpoint, where you put your singer's or song's id instead of the #

songs_api's People

Contributors

nailakaliyeva avatar

Watchers

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