API reference/mGIS Analytics
GETstatefulexact public snapshotv2 · compare 2

Fetches the names of all the datasets available in the user's workspace on the geoserver.

/getLayersList

Fetches the names of all the datasets available in the user's workspace on the geoserver.

Exact public source snapshot

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 v2 declaration and the highest version-labelled source evidence. “Preferred” does not prove provider support or semantic compatibility.

Open field-level comparison and migration checklist

Call the operation

GEThttps://mgis-apiv2.mappls.com/getLayersList
Base URLhttps://mgis-apiv2.mappls.com/
Authenticationbearer
Journey roleobserve
Content typesNo request body

Parameters

NameLocationTypeDescriptionExample
No explicit parameters are declared by the source operation.

Build 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.

Local request composerCode stays local · fixtures are explicit
GETRequest inputs
0 editable · 0 protected
This operation has no editable path or query parameters.
Generated in eight languages
Environment-backed credentials
GEThttps://mgis-apiv2.mappls.com/getLayersList
Credential-free sandboxExecute this contract without a provider call
How fixtures work
Generated from your inputs
curl --request GET \
  --url 'https://mgis-apiv2.mappls.com/getLayersList' \
  --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.

GET /getLayersList
curl --request GET \
  --url 'https://mgis-apiv2.mappls.com/getLayersList' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

200

OK

400

Bad Request, User made an error while creating a valid request.

404

No data found in database.

500

Internal server error.

200 response fields

FieldTypeDescriptionExample
code
string

Error code.

200
success
string

No field description in the source contract.

true
message
string

Make connection with database with valid credentials.

data
unknown

No field description in the source contract.

{"layername":"geocode_ii","geometrytype":"POLYGON","source":"example"}
Response example
{
  "code": "200",
  "success": true,
  "message": "",
  "data": {
    "layername": "geocode_ii",
    "geometrytype": "POLYGON",
    "source": "example"
  }
}

Operate it safely

observe

This operation observes durable platform state. Preserve resource identifiers and account for pagination, delay, and eventual consistency.

Keep credentials and raw tokens out of source, client bundles, prompts, and logs.Record the operation ID, status, latency, retry count, and source contract version in traces.Classify 4xx responses before retrying; back off and add jitter for retryable 5xx or transport failures.Persist resource identifiers and apply commands exactly once in effect across retries and event replay.

Contract provenance

Source file
mappls-developer-platform/data/corpus/public-api-contracts/mapmyindia-mgis-apis/docs/v2/custom/get-layer-list-legends-apis.yml
SHA-256
cc9f61d938cafd0f18558bd2ec18e73b5293bb526b53a74b2d6e6373f0d087bf
Normalization
Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.