{{protocol}}://{{host}}:{{port}}/register
Param
value
Type
name
test
text
email
test@mail.com
text
password
test12345
text
providers
password
text
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Register success"
}
}
{
"errors" : [
{
"message" : " The name field must be defined" ,
"rule" : " required" ,
"field" : " name"
},
{
"message" : " The email field must be defined" ,
"rule" : " required" ,
"field" : " email"
},
{
"message" : " The password field must be defined" ,
"rule" : " required" ,
"field" : " password"
},
{
"message" : " The providers field must be defined" ,
"rule" : " required" ,
"field" : " providers"
}
]
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
{{protocol}}://{{host}}:{{port}}/guest
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Login as guest success"
},
"data" : {
"type" : " bearer" ,
"token" : " eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjMsImlhdCI6MTcxNTU5NzAyNiwiZXhwIjoxNzE1NjA0MjI2fQ.VKE4KXk0R6aDLc7ndFKzbSmT6INS5LYjlZ3z_FDxcgI" ,
"refreshToken" : " eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjMsImlhdCI6MTcxNTU5NzAyNn0.oeznlnHeLwK-yxY8orVpD9iatPV11zLWGfNZBwbzIvs"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
{{protocol}}://{{host}}:{{port}}/login
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Login success"
},
"data" : {
"type" : " bearer" ,
"token" : " eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImlhdCI6MTcxNTU5NzEwMCwiZXhwIjoxNzE1NjA0MzAwfQ.hF2N4ymg9CML_ixTNbGAqPhoqr1jg1Vqv6YtvRUhYOo" ,
"refreshToken" : " eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjEsImlhdCI6MTcxNTU5NzEwMH0.B2jqpQJCvfCE1uvfOBbhgBKGmupjCWOnFTasigKgiDU"
}
}
{
"errors" : [
{
"message" : " The email field must be defined" ,
"rule" : " required" ,
"field" : " email"
},
{
"message" : " The password field must be defined" ,
"rule" : " required" ,
"field" : " password"
}
]
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
{{protocol}}://{{host}}:{{port}}/users/me
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Get user success"
},
"data" : {
"id" : 1 ,
"name" : " Admin" ,
"email" : " admin@admin.com" ,
"avatarUrl" : null ,
"isSignUser" : true ,
"createdAt" : " 2024-06-08T11:51:57.916+00:00" ,
"updatedAt" : " 2024-06-08T11:51:57.916+00:00" ,
"quota" : {
"used" : 1609342 ,
"quota" : 1048576
}
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
{{protocol}}://{{host}}:{{port}}/logout
Param
value
Type
refreshToken
{{userRefreshToken}}
text
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Logout success"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: Update Access Token
{{protocol}}://{{host}}:{{port}}/refresh
Param
value
Type
token
{{userRefreshToken}}
text
π Authentication noauth
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Update access token success"
},
"data" : {
"type" : " bearer" ,
"token" : " eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIsImlhdCI6MTcxNzQ4NTMyOCwiZXhwIjoxNzE3NDkyNTI4fQ.ZZvy3aiNymSIhMWs0voODJHVc6NW8JRC2QaS_x925U4"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
{{protocol}}://{{host}}:{{port}}/users/me
Param
value
Type
avatar
/C:/Users/rizrm/OneDrive/Pictures/default-avatar.png
file
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Update user success"
},
"data" : {
"id" : 2 ,
"name" : " GuestHQFvUUQ2qQPu57Su" ,
"email" : null ,
"avatarUrl" : " https://storage.googleapis.com/download/storage/v1/b/singa-test-bucket/o/uploads%2Favatar%2F1715849162627_GuestHQFvUUQ2qQPu57Su.png?generation=1715849168736922&alt=media" ,
"isSignUser" : false ,
"createdAt" : " 2024-05-16T08:43:36.025+00:00" ,
"updatedAt" : " 2024-05-16T08:46:02.928+00:00"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
{{protocol}}://{{host}}:{{port}}/users/me
Param
value
Type
avatar
/C:/Users/rizrm/OneDrive/Pictures/441655911_806846777574763_8442118511948688487_n.jpg
file
password
asdasdasdasd
text
password_confirmation
text
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Update user success"
},
"data" : {
"id" : 1 ,
"name" : " test" ,
"email" : " test@mail.com" ,
"avatarUrl" : " https://storage.googleapis.com/download/storage/v1/b/singa-test-bucket/o/uploads%2Favatar%2F1715849136020_test.jpg?generation=1715849142374890&alt=media" ,
"isSignUser" : false ,
"createdAt" : " 2024-05-16T08:43:34.336+00:00" ,
"updatedAt" : " 2024-05-16T08:45:36.565+00:00"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
π Collection: Static Translation
End-point: All Owned Static Translation
{{protocol}}://{{host}}:{{port}}/translation/static
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Get list of static translations"
},
"data" : [
{
"id" : 1 ,
"title" : " First Static Translation for userid 1" ,
"videoUrl" : " https://www.youtube.com/watch?v=123456" ,
"createdAt" : " 2024-05-25T16:26:30.248+00:00" ,
"updatedAt" : " 2024-05-25T16:26:30.248+00:00"
},
{
"id" : 2 ,
"title" : " Second Static Translation for userid 1" ,
"videoUrl" : " https://www.youtube.com/watch?v=123456" ,
"createdAt" : " 2024-05-25T16:26:30.254+00:00" ,
"updatedAt" : " 2024-05-25T16:26:30.254+00:00"
}
]
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: Owned Static Translation By id
{{protocol}}://{{host}}:{{port}}/translation/static/1
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Static translation found"
},
"data" : {
"id" : 1 ,
"title" : " First Static Translation for userid 1" ,
"videoUrl" : " https://www.youtube.com/watch?v=123456" ,
"createdAt" : " 2024-05-25T16:26:30.248+00:00" ,
"updatedAt" : " 2024-05-25T16:26:30.248+00:00" ,
"transcripts" : [
{
"id" : 1 ,
"staticTranslationId" : 1 ,
"userId" : 1 ,
"timestamp" : " 00:00:01.123" ,
"text" : " First" ,
"createdAt" : " 2024-05-25T16:26:30.261+00:00" ,
"updatedAt" : " 2024-05-25T16:26:30.261+00:00"
},
{
"id" : 2 ,
"staticTranslationId" : 1 ,
"userId" : 1 ,
"timestamp" : " 00:00:02.123" ,
"text" : " Second" ,
"createdAt" : " 2024-05-25T16:26:30.266+00:00" ,
"updatedAt" : " 2024-05-25T16:26:30.266+00:00"
},
{
"id" : 3 ,
"staticTranslationId" : 1 ,
"userId" : 1 ,
"timestamp" : " 00:00:05.123" ,
"text" : " Third" ,
"createdAt" : " 2024-05-25T16:26:30.269+00:00" ,
"updatedAt" : " 2024-05-25T16:26:30.269+00:00"
},
{
"id" : 4 ,
"staticTranslationId" : 1 ,
"userId" : 1 ,
"timestamp" : " 00:00:20.123" ,
"text" : " Fourth" ,
"createdAt" : " 2024-05-25T16:26:30.271+00:00" ,
"updatedAt" : " 2024-05-25T16:26:30.271+00:00"
}
]
}
}
{
"meta" : {
"code" : 404 ,
"status" : " error" ,
"message" : " Static translation not found"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: New Static Translation
{{protocol}}://{{host}}:{{port}}/translation/static
Param
value
Type
title
New Static Translation
text
file
/C:/Users/Andrien/Desktop/code/sand/blahaj.mp4
file
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 201 ,
"status" : " success" ,
"message" : " Create static translation success"
},
"data" : {
"title" : " New Static Translation" ,
"videoUrl" : " https://storage.googleapis.com/singa-test-bucket/uploads/static-translation/uyrYwRlP11taWd-y_1.mp4" ,
"userId" : 1 ,
"createdAt" : " 2024-05-26T10:31:07.723+00:00" ,
"updatedAt" : " 2024-05-26T10:31:07.723+00:00" ,
"id" : 4
}
}
{
"errors" : [
{
"message" : " The title field must be defined" ,
"rule" : " required" ,
"field" : " title"
},
{
"message" : " The file field must be defined" ,
"rule" : " required" ,
"field" : " file"
}
]
}
{
"meta" : {
"code" : 403 ,
"status" : " error" ,
"message" : " User storage quota exceeded"
}
}
{
"meta" : {
"code" : 201 ,
"status" : " success" ,
"message" : " Create static translation success"
},
"data" : {
"title" : " New Static Translation" ,
"video" : " 45J5CzxJ7F7rOjH8_1.mp4" ,
"videoUrl" : " https://storage.googleapis.com/singa-test-bucket/uploads/static/45J5CzxJ7F7rOjH8_1.mp4" ,
"userId" : 1 ,
"createdAt" : " 2024-06-10T00:56:16.190+00:00" ,
"updatedAt" : " 2024-06-10T00:56:16.190+00:00" ,
"id" : 4
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: Edit Static Translation
{{protocol}}://{{host}}:{{port}}/translation/static/1
Param
value
Type
title
updated value
text
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Update static translation success"
},
"data" : {
"id" : 1 ,
"userId" : 1 ,
"title" : " updated value" ,
"videoUrl" : " https://www.youtube.com/watch?v=123456" ,
"createdAt" : " 2024-05-25T16:26:30.248+00:00" ,
"updatedAt" : " 2024-05-26T10:35:16.596+00:00"
}
}
{
"errors" : [
{
"message" : " The title field must be defined" ,
"rule" : " required" ,
"field" : " title"
}
]
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
{{protocol}}://{{host}}:{{port}}/translation/static/1
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Delete static translation success"
}
}
{
"meta" : {
"code" : 404 ,
"status" : " error" ,
"message" : " Static translation not found"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
π Collection: Conversation Translation
End-point: All Owned Conversation Translation
{{protocol}}://{{host}}:{{port}}/translation/conversation
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Get list of conversation translations"
},
"data" : [
{
"id" : 1 ,
"title" : " First Conversation Translation for userid 1" ,
"createdAt" : " 2024-05-25T16:26:30.290+00:00" ,
"updatedAt" : " 2024-05-25T16:26:30.290+00:00"
},
{
"id" : 2 ,
"title" : " Second Conversation Translation for userid 1" ,
"createdAt" : " 2024-05-25T16:26:30.294+00:00" ,
"updatedAt" : " 2024-05-25T16:26:30.294+00:00"
}
]
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: Owned Conversation Translation By id
{{protocol}}://{{host}}:{{port}}/translation/conversation/1
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Get conversation node success"
},
"data" : [
{
"id" : 1 ,
"conversationTranslationId" : 1 ,
"userId" : 1 ,
"video" : null ,
"videoUrl" : " https://www.youtube.com/watch?v=123456" ,
"type" : " video" ,
"createdAt" : " 2024-06-03T00:41:11.839+00:00" ,
"updatedAt" : " 2024-06-03T00:41:11.839+00:00" ,
"transcripts" : " First Second Third Fourth"
},
{
"id" : 2 ,
"conversationTranslationId" : 1 ,
"userId" : 1 ,
"video" : null ,
"videoUrl" : null ,
"type" : " speech" ,
"createdAt" : " 2024-06-03T00:41:11.840+00:00" ,
"updatedAt" : " 2024-06-03T00:41:11.840+00:00" ,
"transcripts" : " Speech to text result"
},
{
"id" : 3 ,
"conversationTranslationId" : 1 ,
"userId" : 1 ,
"video" : null ,
"videoUrl" : " https://www.youtube.com/watch?v=123456" ,
"type" : " video" ,
"createdAt" : " 2024-06-03T00:41:11.841+00:00" ,
"updatedAt" : " 2024-06-03T00:41:11.841+00:00" ,
"transcripts" : " First Second Third Fourth"
},
{
"id" : 4 ,
"conversationTranslationId" : 1 ,
"userId" : 1 ,
"video" : null ,
"videoUrl" : null ,
"type" : " speech" ,
"createdAt" : " 2024-06-03T00:41:11.841+00:00" ,
"updatedAt" : " 2024-06-03T00:41:11.841+00:00" ,
"transcripts" : " Speech to text result"
}
]
}
{
"meta" : {
"code" : 404 ,
"status" : " error" ,
"message" : " Conversation translation not found"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: New Conversation Translation
{{protocol}}://{{host}}:{{port}}/translation/conversation
Param
value
Type
title
New Static Translation
text
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 201 ,
"status" : " success" ,
"message" : " Create conversation translation success"
},
"data" : {
"title" : " New Static Translation" ,
"userId" : 1 ,
"createdAt" : " 2024-05-26T10:44:37.718+00:00" ,
"updatedAt" : " 2024-05-26T10:44:37.718+00:00" ,
"id" : 4
}
}
{
"errors" : [
{
"message" : " Title is required" ,
"rule" : " required" ,
"field" : " title"
}
]
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: New Speech Node
{{protocol}}://{{host}}:{{port}}/translation/conversation/1/speech
Param
value
Type
text
speech to text result
text
type
speech
text
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 201 ,
"status" : " success" ,
"message" : " Create conversation translation node speech success"
},
"data" : {
"conversationTranslationId" : 5 ,
"userId" : 6 ,
"type" : " speech" ,
"createdAt" : " 2024-06-02T14:42:39.789+00:00" ,
"updatedAt" : " 2024-06-02T14:42:39.789+00:00" ,
"id" : 14 ,
"transcript" : {
"userId" : 6 ,
"conversationNodeId" : 14 ,
"text" : " speech to text result" ,
"timestamp" : " 00:00:00.000" ,
"createdAt" : " 2024-06-02T14:42:39.798+00:00" ,
"updatedAt" : " 2024-06-02T14:42:39.798+00:00" ,
"id" : 31
}
}
}
{
"errors" : [
{
"message" : " The file field must be defined" ,
"rule" : " required" ,
"field" : " file"
},
{
"message" : " The type field must be defined" ,
"rule" : " required" ,
"field" : " type"
}
]
}
{
"meta" : {
"code" : 404 ,
"status" : " error" ,
"message" : " Conversation translation not found"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: New Video Node
{{protocol}}://{{host}}:{{port}}/translation/conversation/1/video
Param
value
Type
file
/C:/Users/Andrien/Desktop/code/sand/blahaj.mp4
file
type
video
text
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 201 ,
"status" : " success" ,
"message" : " Create conversation translation node video success"
},
"data" : {
"conversationTranslationId" : 1 ,
"userId" : 1 ,
"videoUrl" : " https://storage.googleapis.com/singa-test-bucket/uploads/conversation-translation/MIF7Qr6s0skAvN-T_1.mp4" ,
"type" : " video" ,
"createdAt" : " 2024-05-26T10:56:49.651+00:00" ,
"updatedAt" : " 2024-05-26T10:56:49.651+00:00" ,
"id" : 15
}
}
{
"errors" : [
{
"message" : " The file field must be defined" ,
"rule" : " required" ,
"field" : " file"
},
{
"message" : " The type field must be defined" ,
"rule" : " required" ,
"field" : " type"
}
]
}
{
"meta" : {
"code" : 404 ,
"status" : " error" ,
"message" : " Conversation translation not found"
}
}
{
"meta" : {
"code" : 403 ,
"status" : " error" ,
"message" : " User storage quota exceeded"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: Edit Conversation Translation
{{protocol}}://{{host}}:{{port}}/translation/conversation/1
Param
value
Type
title
updated value
text
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Update conversation translation success"
},
"data" : {
"id" : 1 ,
"userId" : 1 ,
"title" : " updated value" ,
"createdAt" : " 2024-05-25T16:26:30.290+00:00" ,
"updatedAt" : " 2024-05-26T10:45:57.668+00:00"
}
}
{
"errors" : [
{
"message" : " Title is required" ,
"rule" : " required" ,
"field" : " title"
}
]
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
{{protocol}}://{{host}}:{{port}}/translation/conversation/1
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Delete conversation translation success"
}
}
{
"meta" : {
"code" : 404 ,
"status" : " error" ,
"message" : " Static translation not found"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
{{protocol}}://{{host}}:{{port}}/translation/conversation/bulk/node
Param
value
Type
id[0]
1
text
id[1]
2
text
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Delete conversation nodes success"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: Get Detail Node
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Get conversation translation success"
},
"data" : {
"id" : 28 ,
"conversationTranslationId" : 1 ,
"userId" : 1 ,
"video" : " lfxR4JnxuqUviszS_1.mp4" ,
"videoUrl" : " https://storage.googleapis.com/singa-test-bucket/uploads/conversations/lfxR4JnxuqUviszS_1.mp4" ,
"status" : " success" ,
"type" : " video" ,
"createdAt" : " 2024-06-08T05:31:19.709+00:00" ,
"updatedAt" : " 2024-06-08T05:31:19.709+00:00" ,
"transcripts" : [
{
"id" : 117 ,
"conversationNodeId" : 28 ,
"userId" : 1 ,
"timestamp" : " 00:00:05" ,
"text" : " i-love-you" ,
"createdAt" : " 2024-06-08T05:31:25.524+00:00" ,
"updatedAt" : " 2024-06-08T05:31:25.524+00:00"
}
]
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
π Collection: Articles
End-point: List All Articles
{{protocol}}://{{host}}:{{port}}/articles
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Get list of articles"
},
"data" : [
{
"id" : 2 ,
"title" : " Article 2" ,
"description" : " Description 2" ,
"imageUrl" : " https://www.example.com/image2.jpg" ,
"createdAt" : " 2024-06-03T10:05:39.639+00:00" ,
"updatedAt" : " 2024-06-03T10:05:39.639+00:00"
},
{
"id" : 1 ,
"title" : " Article 1" ,
"description" : " Description 1" ,
"imageUrl" : " https://www.example.com/image1.jpg" ,
"createdAt" : " 2024-06-03T10:05:39.630+00:00" ,
"updatedAt" : " 2024-06-03T10:05:39.631+00:00"
}
]
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: Get Detail Article
{{protocol}}://{{host}}:{{port}}/articles/1
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Get article success"
},
"data" : {
"id" : 1 ,
"title" : " test" ,
"description" : " test" ,
"imageUrl" : " https://storage.googleapis.com/singa-test-bucket/uploads/article/article-2Qtyzq0qfm9KNFmD.jpg" ,
"createdBy" : 1 ,
"createdAt" : " 2024-06-06T04:05:12.707+00:00" ,
"updatedAt" : " 2024-06-06T04:05:12.707+00:00" ,
"user" : {
"id" : 1 ,
"name" : " Admin" ,
"email" : " admin@admin.com" ,
"roleId" : 1 ,
"role" : {
"id" : 1 ,
"name" : " admin" ,
"createdAt" : " 2024-06-06T03:51:04.309+00:00" ,
"updatedAt" : " 2024-06-06T03:51:04.309+00:00"
}
}
}
}
{
"meta" : {
"code" : 401 ,
"status" : " error" ,
"message" : " Unauthorized access"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
{{protocol}}://{{host}}:{{port}}/articles
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 201 ,
"status" : " success" ,
"message" : " Create article success"
},
"data" : {
"title" : " New Article" ,
"description" : " Description" ,
"imageUrl" : " https://www.example.com/image2.jpg" ,
"createdAt" : " 2024-06-03T10:14:13.341+00:00" ,
"updatedAt" : " 2024-06-03T10:14:13.341+00:00" ,
"id" : 3
}
}
{
"errors" : [
{
"message" : " The title field must be defined" ,
"rule" : " required" ,
"field" : " title"
},
{
"message" : " The description field must be defined" ,
"rule" : " required" ,
"field" : " description"
},
{
"message" : " The imageUrl field must be defined" ,
"rule" : " required" ,
"field" : " imageUrl"
}
]
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: Update Article
{{protocol}}://{{host}}:{{port}}/articles/3
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Update article success"
},
"data" : {
"id" : 1 ,
"title" : " Updated Title" ,
"description" : " Updated Description" ,
"imageUrl" : " https://www.example.com/image1.jpg" ,
"createdAt" : " 2024-06-03T10:05:39.630+00:00" ,
"updatedAt" : " 2024-06-03T10:15:57.086+00:00"
}
}
{
"meta" : {
"code" : 404 ,
"status" : " error" ,
"message" : " Article not found"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
End-point: Delete Article
{{protocol}}://{{host}}:{{port}}/articles/1
π Authentication bearer
Param
value
Type
token
{{userToken}}
string
{
"meta" : {
"code" : 200 ,
"status" : " success" ,
"message" : " Delete article success"
}
}
{
"meta" : {
"code" : 404 ,
"status" : " error" ,
"message" : " Article not found"
}
}
β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β β
Powered By: postman-to-markdown