Hi,
I just retried it with latest 2.6 on my local laptop (not MacOS). I created a new database via the web interface, switched into it, and then used the *Applications* tab to create an empty Foxx app.
In the app setup form, I put "/test" into the "Mount" text field and "test" into all others. After the app was created, I set it to development mode, using the "Set dev" button.
I then edited the generated model file to reflect the schema changes you made.
After that, I used the POST /test route of the app via the web interface. I copied this JSON into the big "parameters" textbox and submitted:
,
"deleted": false,
"_key": "1116341081"
}
So it's working for me... I also retried with curl and got an HTTP 200 from it, too:
curl -X POST
http://127.0.0.1:8529/_db/mydb/test/test --data '{"name": "Domain","description": "Domains","deleted": false}'
{"name":"Domain","description":"Domains","deleted":false,"_key":"1128268633"}
As it doesn't work for you, I suggest checking the following:
- can you try it with a minimal app setup as I described it above? Maybe you already did, this wasn't 100% clear to me. If yes, there's no need to repeat it.
- is your application set to development mode so all changes made to the files (model etc.) are actually in effect?
- if still not working, could you create zip/tarball of the app directory so we can try reproducing with the actual app code?
Thanks!
Maybe someone else has another idea... I read something about bugs being fixed recently in the 2.6.0 web interface. Maybe it has to do with that, but that's purely a guess.
Best regards
J