Overview

This API was built with NodeJS express framework and meets all the requirements stated in the task document

 Getting Started

  1. Clone the repository by running the following command on your code editor
     git clone https://github.com/stoneGal/Podcast_management_system.git
  2. Install npm packages by running
    npm install  
  3. Start the server by running
      npm run dev 

 API Usage

 Requirement 1

To get podcast from users (external) by id, make a GET request to

  • http://localhost:5000/id/podcast 

Requirements 2

To create a new podcast

  • Make a POST request to http://localhost:5000/podcast
 

 To get all the users in the database

  • make a GET request to users http://localhost:5000/users

 Getting a single user by parameters

  • To get a single user by it name from the database, make a GET request to http://localhost:5000/user/:id

To get a single podcast by the user from the database, make a GET request to

  • http://localhost:5000/users/:id/podcast/:podcastId

To update a Podcast

  • Make a PATCH request to http://localhost:5000/users/:id/podcast/:podcastId

 To delete a podcast

  • Make a DELETE request to http://localhost:5000/users/:id/podcast/:podcastId

To get a podcast

  • Make a GET request to http://localhost:5000/podcast to get all podcast from the database