Hi, I just joined and installed, so I really have no idea what I'm doing here.
I couldn't find any rest api docs so I went with this
I registered from the web front end, used the /api/token from Postman and use that token for a POST request to /api/users
the generated code from Postman looks like this
{
"url": "http://<ip address>/api/users",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer <token from /api/token>",
"Content-Type": "application/json",
"Cookie": "flarum_session=Yqrr35yjPsBpiURsC4y6SSsQfn4N64AXMEP8EDSQ"
},
"data": JSON.stringify({
"username": "test",
"email": "test@gmail.com",
"password": "test123"
}),
};
As you can see from the request body, I'm just winging it I don't even know what format of body this endpoint expects lol
Can anyone point me in the right direction? or if I'm missing any available documentation?
Just to provide you context, what I'm trying to do here is to create a mobile app that connects to flarum via api, just so my users can easily post something
Thanks in advance