Hello
using Seaside 3.4.5 as part of VAST Platform 2023 running on Windows Server.
Have added a REST API to our Smalltalk application and have an issue e.g. in case of basic auth leads to #forbidden. In this case the response is generated by
WAResponseGenerator>>#forbidden as plain text.
Would expect that a json response will be returned.
Does anybody have a sub class of WAResponseGenerator like WAHtmlResponseGenerator for mime type JSON / "WAMimeType applicationJson" ?
thanks
Norbert
Example
curl.exe -X POST https://10.22.2.10/rest/activateMission --insecure ^
-H "accept: application/json" ^
-H "content-type: application/json" ^
-H "authorization: Basic xxx...xxx" ^
--data "{\"MissionNumber\":1,\"MissionName\":\"Mission one\"}"
Error: you are forbidden to access "/rest/activateMission"