My env: joplin/server in Docker by docker-compose
2023-03-09 10:01:08: App: Starting server v2.10.6 (prod) on port 22300 and PID 6...
2023-03-09 10:01:08: App: NTP time offset: -7ms
2023-03-09 10:01:08: App: Running in Docker: true
2023-03-09 10:01:08: App: Public base URL: h t t p s : / / j.example . com
2023-03-09 10:01:08: App: API base URL: h t t p s : / / j.example . com
2023-03-09 10:01:08: App: User content base URL: h t t p s : / / j.example . com
2023-03-09 10:01:08: App: Log dir: /home/joplin/packages/server/logs
I am using GET to /api/ping and it is working, but POST /api/auth not working, see error "{"error":"Not allowed: POST "}" and GET /api/auth "{"error":"Path not found: api/auth"}". How use API?
I don't think the API is designed to be used like that.
This is not to say you can't use it, but you need to do a bit more work. Probably the easiest is to connect the desktop app to a server and look at the traffic between the 2.
UPD
Btw, I don't see the "/auth" endpoint anywhere in the code - that'd explain why you get the error.
joplinapp . org/spec/clipper_auth/
Its not part of API?
I check GET /search (/api/search?query=test) and response = {"error":"Path not found: api/search"}
But it is contained in the documentation (joplinapp . org/api/references/rest_api/), like this "/notes" and not wotking (not found path).