alexandreelise/j4x-api-collection

POST request not working for fields/groups

alexandreelise opened this issue · 2 comments

Describe the bug
POST requests on fields/group return a 500 error

To Reproduce
Steps to reproduce the behavior:

  1. Go to your postman collection
  2. Click on send POST request of any fields/groups
  3. Scroll down to response
  4. See 500 error

Expected behavior
field groups created via the Joomla! 4 Web Service POST endpoints with status 200

Screenshots
none

Desktop (please complete the following information):

  • OS: Ubuntu 20.04
  • Browser: Chrome
  • Web Server: Nginx
  • Joomla: 4.0.5
  • Php 8.1.0

Additional context
none

Hi Alexandre - thank you very much for this collection!
This is actually a bug in Joomla when running php 8.x and should be fixed with this PR in Joomla: joomla/joomla-cms#40610 - you could test this actually :-)

There are other small bugs in the Joomla API - i'm working on them now at the moment. For instance language overrides.

And i'm working on a update of your collection which does has test scripts for updating variables for later use.
Can you tell me how to share my fork - if export i get a json file - you have a file named "index.yaml" - i don't know how to generate this.
Thank you for you work
Martin (Release manager for Joomla 4.4)

Hi Martin. @MacJoom Thanks for your kind words. Unfortunately I only work on open source projects like this postman collection on my spare time. what i suggests you to do is to ask on the postman discussion forum community. i think there is a tool they made to convert a postman collection to openapi format (the yaml you saw). Here is the link to the proposed tooling postman team suggests to use for that purpose https://www.postman.com/postman/workspace/postman-open-technologies-convert-postman-collections-into-openapi/overview. I would really like to help you more but that's all i can do for now. Take care and have a delightful day.