Skip to content

iamwebwiz/simple-crud-api

Repository files navigation

simple crud api

Base URL: https://simplecrudapi.herokuapp.com/api/movies

Endpoints

Display all movies

  • URL: /
  • Method: GET

Add a new movie

  • URL: /new
  • Method: POST
  • Form Params
    • title: string
    • genre: string
    • synopsis: text
    • image: image (mimes: jpg, jpeg, png, optional, min: 1Kb, max: 10Mb)

Display the information on a movie

  • URL: /:movieId
  • Method: GET
  • Params
    • movieId: integer

Update movie information

  • URL: /:movieId
  • Method: PUT
  • Form Params
    • title: string
    • genre: string
    • synopsis: text
    • image: image (mimes: jpg, jpeg, png, optional, min: 1Kb, max: 10Mb)

Delete a movie resource

  • URL: /:movieId
  • Method: DELETE
  • Params
    • movieId: integer