Odata V4 routing prefix and synchronization batch processing.

I am using the Syncfusion tools for programming. The planner is talking to an endpoint of odata. The services of odata are executed correctly to obtain, to put, to eliminate. However, the programmer uses the $ batch to process the edits to the schedule. I can not get the $ batch to route and / or process correctly.

By default, the programmer is making the editing call in this way:

https: // localhost: 44341 / odata / Events / $ batch

Here are my route maps:

app.UseMvc (constructor =>
{
builder.Select (). Expand (). Filter (). OrderBy (). MaxTop (100) .Count ();
builder.MapODataServiceRoute ("odata", "odata", GetEdmModel ());
builder.MapODataServiceRoute ("odataBatch", "odata / {controller}", GetEdmModel (), new DefaultODataBatchHandler ());

});

So I am getting a successful POST (200) in my headlines, but the answer is 404. I am very confused as to what is happening. It seems that the driver is not processing batch commands. Specifically the POST and PATCH commands in the body of the payload. Thanks in advance for your help.

In the development tools (CHROME) this is what I'm seeing:

RESPONSE TAB

–batchresponse_e2f02110-21b6-4559-924e-1e2b3376fb3c
Type of content: multipart / mixed; boundary = changesetresponse_4799e072-83d9-4b7d-9409-23eceb98736b

–changesetresponse_4799e072-83d9-4b7d-9409-23eceb98736b
Content type: application / http
Content transfer encoding: binary
Content ID: 0

HTTP / 1.1 404 not found

–changesetresponse_4799e072-83d9-4b7d-9409-23eceb98736b–
–batchresponse_e2f02110-21b6-4559-924e-1e2b3376fb3c–

TABLE OF THE HEADS

general

Request URL: https: // localhost: 44341 / odata / Events / $ batch

Application method: POST

Status Code: 200

Remote address: [::1]: 44341

Referral policy: no referer-when-downgrade

Response header

access-control-allow-origin: https: // localhost: 44308

type of content: multipart / mixed; limit = batchresponse_e2f02110-21b6-4559-924e-1e2b3376fb3c

date: Wednesday, June 12, 2019 21:35:08 GMT

Odata version: 4.0

Server: Kestrel

State: 200

x-powered-by: ASP.NET

x-sourcefiles: =? UTF-8? B? QzpcVlMyMDE3IFByb2plY3RzXFRIUFRPZGF0YVxPZGF0YUxlYXJuaW5nXG9kYXRhXEV2ZW50c1wkYmF0Y2g =?

Request header

Provisional headings are displayed.

Accept: application / json, text / javascript, /; q = 0.01

Type of content: multipart / mixed; set of characters = UTF-8; limit = lot_80a929c5-2918-463e-ba41-aa8c981ffb3b

DNT: 1

Source: https: // localhost: 44308

Prefer: return = representation

Referer: https: // localhost: 44308 / admin / home / scheduler

User-Agent: Mozilla / 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit / 537.36 (KHTML, as Gecko) Chrome / 74.0.3729.169 Safari / 537.36

Load request

– lot_80a929c5-2918-463e-ba41-aa8c981ffb3b
Type of content: multipart / mixed; limit = changeset_f9c22042-3196-4452-a1c6-2fd55993e2a2

–changeset_f9c22042-3196-4452-a1c6-2fd55993e2a2
Content type: application / http
Content transfer encoding: binary

POST null HTTP / 1.1
Accept: application / json, text / javascript, /; q = 0.01
Content ID: 0
Content type: application / json; set of characters = utf-8

{"Id": 2, "Subject": "Joe & # 39; s Pizza Shack", "StartTime": "2019-06-09T02: 00: 00.000Z", "EndTime": "2019-06-09T07: 30 : 00.000Z "," StartTimezone ":" America / New_York "," EndTimezone ":" America / New_York "," Location ":" 123 Somewhere, Longwood, FL 32750 "," Description ":" asdfadfada "," IsAllDay " : false, "IsRecurring": true, "RecurrenceID": 1, "RecurrenceRule": "FREQ = WEEKLY; BYDAY = SA; INTERVAL = 1;", "RecurrenceException": null, "IsReadonly": false, "IsBlock": false, "IsActive": true, "IsDisabled": false, "VenueId": 1, "Guid": "4a0d1282-678b-b4b8-e84a-0cbb011887d4"}

–changeset_f9c22042-3196-4452-a1c6-2fd55993e2a2
Content type: application / http
Content transfer encoding: binary

PATCH https: // localhost: 44341 / odata / Events (1) HTTP / 1.1
Accept: application / json, text / javascript, /; q = 0.01
Content ID: 1
Content type: application / json; set of characters = utf-8

{"Id": 1, "Subject": "Joe & # 39; s Pizza Shack", "StartTime": "2019-06-09T02: 00: 00.000Z", "EndTime": "2019-06-09T07: 30 : 00.000Z "," StartTimezone ":" America / New_York "," EndTimezone ":" America / New_York "," Location ":" 123 Somewhere, Longwood, FL 32750 "," Description ":" adgadgadfafdas "," IsAllDay " : false, "IsRecurring": true, "RecurrenceID": null, "RecurrenceRule": "FREQ = WEEKLY; BYDAY = SA; INTERVAL = 1;", RecurrenceException ":" 20190609T020000Z "," IsReadonly ": false," IsBlock " : false, "IsActive": true, "IsDisabled": false, "VenueId": 1}

–changeset_f9c22042-3196-4452-a1c6-2fd55993e2a2–
–batch_80a929c5-2918-463e-ba41-aa8c981ffb3b–