This operation is retained because its version-labelled public specification differs structurally from another generation. It is comparison evidence, not a promise of current support, compatibility, entitlement, or availability.
Compare before changing adapters
This is the v1 declaration and a retained alternative source generation. “Preferred” does not prove provider support or semantic compatibility.
Open field-level comparison and migration checklistCall the operation
https://mgis-api.mappls.com/getLegendsImg?datasetNme=ind_railshttps://mgis-api.mappls.com/Parameters
datasetNmerequiredgeoserver layername
ind_railsstylenameAny available styles for layer.
linepolygonfillcolorAny color hex code.
ffffffpolygonfillopacityvalue between 0-1.
0.5linestrokecolorAny color hex code.
fffffflinestrokewidthwith value.
10linestrokeopacityvalue between 0-1.
0.2pointfillcolorAny color hex code.
ffffffpointfillopacityvalue between 0-1.
0.3pointsizesize value.
20Build your request in eight languages
Change source-backed examples once, validate required inputs, and copy the synchronized cURL, JavaScript, Python, Java, C#, Go, PHP, or Ruby request. Credentials remain environment references, and this page never sends a provider request.
https://mgis-api.mappls.com/getLegendsImg?datasetNme=ind_rails&stylename=line&polygonfillcolor=ffffff&polygonfillopacity=0.5&linestrokecolor=ffffff&linestrokewidth=10&linestrokeopacity=0.2&pointfillcolor=ffffff&pointfillopacity=0.3&pointsize=20curl --request GET \
--url 'https://mgis-api.mappls.com/getLegendsImg?datasetNme=ind_rails&stylename=line&polygonfillcolor=ffffff&polygonfillopacity=0.5&linestrokecolor=ffffff&linestrokewidth=10&linestrokeopacity=0.2&pointfillcolor=ffffff&pointfillopacity=0.3&pointsize=20' \
--header "Accept: application/json" \
--header "Authorization: Bearer ${MAPPLS_ACCESS_TOKEN}"Credential-safe by constructionSet MAPPLS_ACCESS_TOKEN only in your trusted runtime. Code generation stays local. Sandbox execution sends only bounded fixture inputs to this developer platform and never reads a credential or calls Mappls.
Send a production-shaped request
Examples use environment-backed access tokens, explicit timeouts where supported, status checks, and JSON bodies derived from the source schema. Replace sample identifiers and coordinates with values from your application.
curl --request GET \
--url 'https://mgis-api.mappls.com/getLegendsImg?datasetNme=ind_rails' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Responses
Legend image in PNG format
Bad Request, User made an error while creating a valid request.
"example"Operate it safely
This operation observes durable platform state. Preserve resource identifiers and account for pagination, delay, and eventual consistency.
Contract provenance
- Source file
mappls-developer-platform/data/corpus/public-api-contracts/mapmyindia-mgis-apis/docs/v1/custom/get-layer-list-legends-apis.yml- SHA-256
34013a0683256113b49f4f53bf081248614e58651009f244030f2ff29bceb0d3- Normalization
- Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.
- Source record
- Open repository audit