You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Base controller class for Rest services. (#992)
* Add Base controller class for Rest services.
* Temporary disable sending server name.CodeQL cs/user-controlled-bypass
* Move GxRestService from GxClasses to GxClasses.Web
* Return a StatusCode for WebException
* Add method SendNotModified
* Register native services at startup when SERVICE_AS_CONTROLLER is enabled.
* Avoid setting headers when request has started.
Add [JsonIgnore] to non-json serializable properties
* Fix build error.
* Add Json annotations for Message SDT
* Fix registration of API services in modules.
* Temporary cleanup of duplicated REST services: remove REST controllers loaded from API assemblies
* Set BasePath for rest services
* Add ApiException method to handle unexpected exceptions properly in declarative rest services.
* Handle status code set by user code.
* Handle GAMErrors property in declared rest services.
* Add method ApiIntegratedSecurityLevel to base Rest class.
* Improve error handling in rest controllers.
* Do not set statuscode if it is 0 (non initialized)
* Remove CustomControllerFeatureProvider as it is no longer needed.
Rest service controllers now exist in a single assembly.
* Avoid processing .grp.json when services as controllers are enabled.
* Handle BadRequest when json input is invalid.
Return custom error instead of:
{
"type": "....",
"title": "One or more validation errors occurred.",
"status": 400,
"errors": {
"$.VarCond": [
"The JSON value could not be converted to System.Int16. Path: $.VarCond | LineNumber: 0 | BytePositionInLine: 16."
]
},
"traceId": "....
}
* Add IsAnyDirty for SDTs
* Define IsNull method for rest interfaces
* Add missing JsonIgnore flags.
* Add method EmptyResponse to return a valid empty json instead of empty body.
* Add AnyDirtySdt method.
* Add NullResult function.
* Remove unneeded AnyDirtySdt property.
SDT and collection properties on SDTS are marked as dirty on get method also.
* Add EmptyObjectResult
* Property's name must use a case-insensitive comparison during json deserialization
* Grouped several lines of code into a new function, RegisterControllerAssemblies.
* Updated JsonSerializerOptions.PropertyNameCaseInsensitive to be controlled by the ServiceJsonSerializerCaseSensitive configuration property
* Change key ServiceJsonSerializerCaseSensitive for a shorter one: RestJsonCaseSensitive.
* Remove unnecessary AddControllers() call as the current assembly has no controllers
* Ensure that controllers from the specified assembly are registered as services and can have their dependencies injected.
* Support UploadImpl for controller rest services.
* SERVICE_AS_CONTROLLER is turned on by default now.
* SERVICE_AS_CONTROLLER is now enabled by default. Tests relying on the previous default behavior must explicitly set it to off.
* HttpContext was null at rest services.
* Map NullReference Exception as BadRequest Error.
P.e when executing Issue89123_API/Check with an invalid json body
{
"ClientId": 1,
"ClientName": "CName",
"ClientActive": false
}
the issue89123_api_check_RequestData entity is created but entity.Issue89123Client is null.
* Try to fix failing test for DotNetCore.
Failed UnitTesting.FileIOTests.GXDBFilePathTest
System.UriFormatException : Invalid URI: The format of the URI could not be determined.
* Generate rest controllers as HTTP Azure functions at deploy time for Azure Functions deployment
* Add BoolStringJsonConverter for Boolean properties in Stds.
* Update ErrorCheck to return the JSON response object.
* Try to fix merge error.
* Remove unnecessary SetError method and replace it with HandleError
* Create a GetErrorResponse for HandleError and for ErrorCheck
* Add tracing to help identify the root cause of the failing test
* Temporarily disable the test on Linux while investigating the issue
* Replace HttpHelper.SetError with HandleError to assign _errorDetail (returned by Unauthenticated)
* Add missing ApiIntegratedSecurityLevel method for .NETFramework.
---------
Co-authored-by: Claudia Beatriz Murialdo Garrone <c.murialdo@globant.com>
Co-authored-by: sjuarez <sabrina.juarez@globant.com>
@@ -120,7 +122,15 @@ public static IApplicationBuilder MapWebSocketManager(this IApplicationBuilder a
120
122
.Map($"{basePath}/gxwebsocket.svc",(_app)=>_app.UseMiddleware<Notifications.WebSocket.WebSocketManagerMiddleware>());//Compatibility reasons. Remove in the future.
0 commit comments