IceCubesApp icon indicating copy to clipboard operation
IceCubesApp copied to clipboard

Bug: POST requests should use form data or JSON body, not query string parameters

Open rjp opened this issue 11 months ago • 0 comments

Environment:

  • OS: iOS 18.2 (22C150)
  • IceCubesApp version: 1.11.2

Description

Ice Cubes tries to create its app using query string parameters.

e.g. POST /api/v1/apps?client_name=IceCubesApp&redirect_uris=icecubesapp://&scopes=read%20write%20follow%20push&website=https://github.com/Dimillian/IceCubesApp

This does not work on Akkoma (and probably Pleroma) instances as they only take POST requests using form data or JSON bodies (which is recommended in the API docs - "It is expected that query strings are used for GET requests, and form data or JSON is used for all other requests.")

Additionally the example for creating an app in the docs explicitly shows a JSON body - https://docs.joinmastodon.org/methods/apps/#create

rjp avatar Dec 08 '24 17:12 rjp