Skip to main content
POST
/
postUpload
Upload athlete post content
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.

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.

Body

application/json
type
string
required

Post type (e.g. athlete)

Example:

"athlete"

picture
string[]

Array of base64-encoded images (data:image/png;base64,...)

Example:
[]
caption
string

Post caption

Example:

"My new post"

Response

200

Post uploaded