shengjie / playlist

This is a simple playlist REST api demo based on php/mysql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Playlist demo

This is a simple playlist REST api demo based on php/mysql

Setup

  • Notice: this demo requires docker and docker-compose.

  • Execute following command to start containers

make build && make run

Endpoints

Method URL Post Description
GET /videos - Get all videos
GET /videos/{id} - Get detail of one video
GET /playlists - Get all playlists
GET /playlists/{id} - Get detail of one playlist
GET /playlists/{id}/videos - Get all videos of one playlist
POST /playlists/{id}/videos video_id, position Add a video to playlist
DELETE /playlists/{id}/videos/{vid} - Delete video from playlist
PUT /playlists/{id} name Update playlist information
POST /playlists name Create a new playist
DELETE /playlists/{id} - Delete one playist

About

This is a simple playlist REST api demo based on php/mysql


Languages

Language:PHP 88.7%Language:HTML 10.5%Language:Makefile 0.5%Language:Dockerfile 0.3%