New API for Yunohost Administration from external App

My YunoHost server

Hardware: mini pc x86_64
YunoHost version: 11.1.6.1
I have access to my server : Through SSH | through the webadmin

Description of my issue

Hello. I am building external mobile app that uses Yunohost API for administration. Yunohost 11.1 update added username for admins and admin group. If I am right, that changes API for POST /login and documentation (Administration from the API or an external application | Yunohost Documentation) is not updated.

How has the API changed? How to use new API?

I can’t answer your questions but have my own :slight_smile:
Is there a plan to make your mobile app public after release? I would look forward to it.

PS. Are you by any chance related to rootblog.pl?

Hi.

Yes, I am related to rootblog.pl.

App is public right now at Google Play Store, and you can read more here.

1 Like

Thanks for the links.

I follow your blog since I found you’re the only polish media where one can find news about Yunohost. Keep up the good work.

Cheers

1 Like

bump

Okey, Nevermind. My friend and I solved this.

Original form:

curl -X 'POST' \
  'https://demo.yunohost.org/yunohost/api/login' \
  -H 'accept: */*' \
  -H 'X-Requested-With: Swagger API' \
  -H 'Content-Type: multipart/form-data' \
  -F 'credentials=password'

Changes to:

curl -X 'POST' \
  'https://demo.yunohost.org/yunohost/api/login' \
  -H 'accept: */*' \
  -H 'X-Requested-With: Swagger API' \
  -H 'Content-Type: multipart/form-data' \
  -F 'credentials=username:password'

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.