API Learning Online (Admin) | done
Admin Role (kecuali login untuk kedua role(admin,student)). note: setiap akan melakukan crud, membutuhkan token bearer yang didapat setelah login
Register & Login
note: patokan main path nya di atas ini ya. mungkin kebawahnya ga kami tulis ulang, yang penting udah tau main path nya
Register Admin
POST
https://salmanhack.sanbersy.com/api/v1/register/admin
Request Body
Login
POST
https://salmanhack.sanbersy.com/api/v1/login
Login untuk admin dan student
Request Body
Playlists
Create playlist
POST
https://salmanhack.sanbersy.com/api/v1/admin/playlists
Headers
Request Body
Show all playlist
GET
https://salmanhack.sanbersy.com/api/v1/admin/playlists
​
Headers
Show playlist by id
GET
https://salmanhack.sanbersy.com/api/v1/admin/playlists/:idPlaylist
Path Parameters
Headers
Update playlist by id
PUT
https://salmanhack.sanbersy.com/api/v1/admin/playlists/:idPlaylist
Path Parameters
Headers
Request Body
Delete playlist by id
DELETE
https://salmanhack.sanbersy.com/api/v1/admin/playlists/:idPlaylist
​
Path Parameters
Headers
Sections
Create Sections of a Playlist
POST
https://salmanhack.sanbersy.com/api/v1/admin/playlists/:idPlaylist/sections
Path Parameters
Headers
Request Body
Show all sections of a playlist
GET
https://salmanhack.sanbersy.com/api/v1/admin/playlists/:idPlaylist/sections
Path Parameters
Headers
Show sections of a playlist by id
GET
https://salmanhack.sanbersy.com/api/v1/admin/playlists/:idPlaylist/sections/:idSection
Path Parameters
Headers
Update section of a playlist by id
PUT
/api/v1/admin/playlists/:idPlaylist/sections/:idSection
Path Parameters
Headers
Request Body
Delete sections of a playlist by id
DELETE
/api/v1/admin/playlists/:idPlaylist/sections/:idSection
Path Parameters
Headers
Videos
/api/v1/admin/playlists/:idPlaylist/sections/:idSection/videos
/api/v1/admin/playlists/:idPlaylist/sections/:idSection/videos/:idVideo
Create videos of section of playlist
POST
/api/v1/admin/playlists/:idPlaylist/sections/:idSection/videos
Path Parameters
Headers
Request Body
Show all videos of section of playlist
GET
/api/v1/admin/playlists/:idPlaylist/sections/:idSection/videos
Path Parameters
Headers
Show video of section of playlist by id
GET
/api/v1/admin/playlists/:idPlaylist/sections/:idSection/videos/:idVideo
Path Parameters
Headers
Update video of section of playlist by id
PUT
/api/v1/admin/playlists/:idPlaylist/sections/:idSection/videos/:idVideo
Path Parameters
Headers
Request Body
Delete video of section of playlist by id
DELETE
/api/v1/admin/playlists/:idPlaylist/sections/:idSection/videos/:idVideo
Path Parameters
Headers
Last updated