curl --request POST \
--url http://localhost/mogl/mogl-backend/api/postUpload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "athlete",
"picture": [],
"caption": "My new post"
}
'Upload post with base64-encoded images. Each picture must be a data URI string (e.g. data:image/png;base64,iVBOR…).
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/postUpload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "athlete",
"picture": [],
"caption": "My new post"
}
'Documentation Index
Fetch the complete documentation index at: https://developer.mogl.online/llms.txt
Use this file to discover all available pages before exploring further.
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Post uploaded