Inconsistent property names in Azure Maps Creator Routeset Api

Mark Phillips 151 Reputation points
2023-01-12T05:38:51.7133333+00:00

The Azure Maps Creator APIs have consistently used lowercase for the keys in requests and responses, .e.g "datasetId", "tilesetId", etc. However, the Routeset API returns a capital S for such properties, e.g. "dataSetId", "routeSetId", including the outer object "routeSets".

Example response:

{
    "routeSets": [
        {
            "routeSetId": "1d9feca2-2dbe-35ae-ccb5-aa6c763eeac4",
            "dataSetId": "63e19439-897f-7199-8255-e6edb7d4af32",
            "description": "routeset20583",
            "created": "1/12/2023 5:01:23 AM +00:00"
        }
    ]
}

This is inconsistent with the docs and also the api spec

I autorest generate C# from the spec so the result of this inconsistency is zero records returned for List api calls. For now, I can amend my local fork of the spec and generate a new client but I'd say the api needs to change whilst in preview still.

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
835 questions
{count} votes

Accepted answer
  1. Brendan Co 746 Reputation points Microsoft Employee
    2023-01-18T01:08:50.6566667+00:00

    Hi Mark,

    Thank you for pointing out this inconsistency. This was not the intended behavior and will be updated to return the lowercase S.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. rbrundritt 20,921 Reputation points Microsoft Employee Moderator
    2023-01-17T15:42:36.3566667+00:00

    I've forwarded this thread to the program manager for Azure Maps Creator so they can investigate this on their end and make changes to the API if needed (or possible without breaking those who are using the service as-is).

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.