Table of Contents
URL:/auth/register
Method: POST
Auth required : NO
Request Data
{
name,
email,
password,
phone
}
Response Data
{
success: true | false,
message: "register success"
data: null
}
URL:/auth/login
Method: POST
Auth required : NO
Request Data
{
identifier,
password
}
Response Data
{
success: true | false,
message: "login success",
errors: "error stack",
data: {
token: {
access,
refresh,
ttl
},
user
}
}
URL:/auth/refresh
Method: POST
Auth required : NO
Request Data
{
refresh_token
}
Response Data
{
success: true | false,
message: "refresh success",
errors: "error stack",
data: {
access,
refresh,
ttl
}
}
URL:/podcast
Method: GET
Query Params
optional:
category=[string]
(use category slug)
page=[integer]
size=[integer]
Auth required : YES
Response Data
{
success: true | false,
message: "data loaded"
data: [
{
id,
title,
description,
duration_time,
duration_second,
audio_link,
cover_link,
podcaster:{
id,
name,
description,
bio
},
categories: [
{
name,
slug
}
]
}
]
}
URL:/podcast/:id
Method: GET
URL Params
required: id=[integer]
Auth required : YES
Response Data
{
success: true | false,
message: "data loaded"
data:{
id,
title,
description,
duration_time,
duration_second,
audio_link,
cover_link,
podcaster:{
id,
name,
description,
bio
},
categories: [
{
id,
name,
slug
}
]
}
}
URL:/categories
Method: GET
Query Params optional:
page=[integer]
size=[integer]
Auth required : YES
Response Data
{
success: true | false,
message: "data loaded"
data: [
{
id,
slug,
name
}
]
}