[mapguide-commits] r10269 - branches/4.0/MgDev/Web/src/openapi

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Nov 5 05:01:48 PST 2026


Author: jng
Date: 2026-11-05 05:01:46 -0800 (Thu, 05 Nov 2026)
New Revision: 10269

Modified:
   branches/4.0/MgDev/Web/src/openapi/openapi.yaml
Log:
#2899: Correct the MapAgent OpenAPI spec against the live agent

- Drop the trailing '#' from the server URL. It put the path segment and the entire query string
  into the URI fragment, which is never transmitted, so a generated client sent a bare
  mapagent.fcgi with no OPERATION parameter at all.
- Describe the error responses the agent actually emits: 401 with a WWW-Authenticate challenge and
  a text/plain body, and the non-standard 559 (HTTP_STATUS_MG_ERROR) with a text/html body carrying
  the exception code in the status line. Every operation now declares 559, and the never-emitted
  BadRequestError component is gone.
- GetLegendImage takes LAYERDEFINITION, not MAPDEFINITION: HttpGetLegendImage reads
  reqMappingLayerDefinition, and the map definition id only produces
  559 MgInvalidRepositoryTypeException.
- ApplyResourcePackage declares OPERATION and VERSION only in its multipart body. A POST is parsed
  from the body alone, so the query copies were both wrong and harmful: OpenAPI Generator emitted
  two OPERATION enums for the operation, which does not compile.
- ImageResponse covers the PNG/GIF/JPEG/TIFF binaries that FORMAT can select, instead of describing
  PNG only.
- Remove EnumerateRepositories. The agent has no dispatch-table entry for ENUMERATEREPOSITORIES, so
  the operation cannot succeed; the spec should not advertise it.

Validated with redocly lint and with clients generated by Kiota (C#) and OpenAPI Generator
(TypeScript and Java), each run against a live MapGuide server: GetMapImage returns real
PNG/GIF/JPEG streams, and the 401 and 559 shapes are asserted on the wire as well as through the
generated clients.


Modified: branches/4.0/MgDev/Web/src/openapi/openapi.yaml
===================================================================
--- branches/4.0/MgDev/Web/src/openapi/openapi.yaml	2026-11-05 03:55:47 UTC (rev 10268)
+++ branches/4.0/MgDev/Web/src/openapi/openapi.yaml	2026-11-05 13:01:46 UTC (rev 10269)
@@ -25,8 +25,12 @@
     url: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
 
 servers:
-  - url: /mapguide/mapagent/mapagent.fcgi#
-    description: Single MapAgent FastCGI endpoint (fragment is stripped by all HTTP clients)
+  - url: /mapguide/mapagent/mapagent.fcgi
+    description: |
+      MapAgent FastCGI endpoint. Every operation is dispatched by the OPERATION query
+      parameter; the trailing path segment (e.g. /GetMapImage) is request-routing decoration
+      that the MapAgent ignores (it reads only QUERY_STRING and the POST body). Clients should
+      set an absolute base URL such as http://localhost:8018/mapguide/mapagent/mapagent.fcgi.
 
 tags:
   - name: Session
@@ -131,6 +135,14 @@
       schema:
         type: string
         example: "Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition"
+    LayerDefinition:
+      name: LAYERDEFINITION
+      in: query
+      required: true
+      description: Layer definition resource path to render the legend for
+      schema:
+        type: string
+        example: "Library://Samples/Sheboygan/Layers/Soils.LayerDefinition"
     MapName:
       name: MAPNAME
       in: query
@@ -186,13 +198,29 @@
         text/plain:
           schema:
             type: string
-    ImagePngResponse:
-      description: PNG image
+    ImageResponse:
+      description: |
+        Rendered image stream. The concrete media type follows the request's FORMAT
+        parameter: PNG and PNG8 produce image/png, GIF produces image/gif, JPG produces
+        image/jpeg, and TIFF produces image/tiff. Clients should treat the body as a
+        binary stream and rely on the response Content-Type header.
       content:
         image/png:
           schema:
             type: string
             format: binary
+        image/gif:
+          schema:
+            type: string
+            format: binary
+        image/jpeg:
+          schema:
+            type: string
+            format: binary
+        image/tiff:
+          schema:
+            type: string
+            format: binary
     HtmlResponse:
       description: HTML page
       content:
@@ -202,13 +230,38 @@
     EmptyResponse:
       description: Operation completed successfully (no content)
     UnauthorizedError:
-      description: Authentication required
+      description: |
+        Authentication required or credentials rejected. The agent writes
+        `Status: 401 Unauthorized` together with a `WWW-Authenticate: Basic` challenge for
+        the MapGuide product realm and a short plain-text body. It emits this challenge
+        rather than the 559 error page when no SESSION/USERNAME credential is supplied,
+        and whenever an MgAuthenticationFailedException or MgUnauthorizedAccessException
+        is raised.
+      headers:
+        WWW-Authenticate:
+          description: Basic authentication challenge for the MapGuide realm.
+          schema:
+            type: string
+            example: 'Basic realm="MapGuide"'
       content:
-        text/xml:
+        text/plain:
           schema:
             type: string
-    BadRequestError:
-      description: Invalid request parameters
+            example: You must enter a valid login ID and password to access this site
+    MapAgentError:
+      description: |
+        MapGuide exception. Handler failures are returned with the non-standard status
+        code 559 (HTTP_STATUS_MG_ERROR), whose status line carries the MapGuide exception
+        code, for example `Status: 559 MgInvalidArgumentException`. The body is an HTML
+        page: the exception message is the heading and the detailed message follows it.
+        There is no 4xx/5xx distinction -- malformed parameters, missing resources and
+        provider failures all surface this way. The only other error status is 401 for
+        authentication (see UnauthorizedError); a 500 here means the agent could not
+        extract the exception details at all.
+      content:
+        text/html:
+          schema:
+            type: string
 
 paths:
 
@@ -263,6 +316,8 @@
           $ref: '#/components/responses/TextResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetSessionTimeout:
     get:
@@ -300,6 +355,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # SITE OPERATIONS
@@ -341,6 +398,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetSiteInfo:
     get:
@@ -378,6 +437,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetSiteStatus:
     get:
@@ -410,6 +471,8 @@
       responses:
         '200':
           $ref: '#/components/responses/XmlResponse'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /EnumerateUsers:
     get:
@@ -453,6 +516,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /EnumerateGroups:
     get:
@@ -490,54 +555,13 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # RESOURCE OPERATIONS — Repositories
   # ═══════════════════════════════════════════════════════════════
 
-  /EnumerateRepositories:
-    get:
-      tags: [Resource]
-      summary: Enumerate repositories
-      description: Lists available repositories, optionally filtered by type.
-      operationId: EnumerateRepositories
-      security:
-        - SessionAuth: []
-        - BasicAuth: []
-      parameters:
-        - name: OPERATION
-          in: query
-          required: true
-          description: Operation name
-          schema:
-            type: string
-            enum: [ENUMERATEREPOSITORIES]
-            default: ENUMERATEREPOSITORIES
-        - name: VERSION
-          in: query
-          required: true
-          description: API version
-          schema:
-            type: string
-            enum: ["1.0.0", "1.2.0", "2.0.0", "2.2.0", "4.0.0"]
-            default: "1.0.0"
-        - $ref: '#/components/parameters/Session'
-        - $ref: '#/components/parameters/Locale'
-        - $ref: '#/components/parameters/ClientAgent'
-        - $ref: '#/components/parameters/Format'
-        - $ref: "#/components/parameters/Clean"
-        - name: TYPE
-          in: query
-          required: false
-          description: Repository type filter
-          schema:
-            type: string
-      responses:
-        '200':
-          $ref: '#/components/responses/XmlResponse'
-        '401':
-          $ref: '#/components/responses/UnauthorizedError'
-
   /CreateRepository:
     post:
       tags: [Resource]
@@ -579,6 +603,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /DeleteRepository:
     post:
@@ -615,6 +641,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /UpdateRepository:
     post:
@@ -663,6 +691,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetRepositoryContent:
     get:
@@ -701,6 +731,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetRepositoryHeader:
     get:
@@ -739,6 +771,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # RESOURCE OPERATIONS — Resources
@@ -813,6 +847,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /ResourceExists:
     get:
@@ -849,6 +885,8 @@
           $ref: '#/components/responses/TextResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /SetResource:
     post:
@@ -897,6 +935,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /DeleteResource:
     post:
@@ -933,6 +973,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /MoveResource:
     post:
@@ -996,6 +1038,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /CopyResource:
     post:
@@ -1051,6 +1095,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetResourceContent:
     get:
@@ -1089,6 +1135,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetResourceHeader:
     get:
@@ -1127,6 +1175,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /EnumerateResourceReferences:
     get:
@@ -1165,6 +1215,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /ChangeResourceOwner:
     post:
@@ -1215,6 +1267,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /InheritPermissionsFrom:
     post:
@@ -1262,6 +1316,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # RESOURCE OPERATIONS — Resource Data
@@ -1304,6 +1360,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /SetResourceData:
     post:
@@ -1364,6 +1422,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /DeleteResourceData:
     post:
@@ -1406,6 +1466,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /RenameResourceData:
     post:
@@ -1462,6 +1524,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetResourceData:
     get:
@@ -1509,6 +1573,8 @@
                 format: binary
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /EnumerateUnmanagedData:
     get:
@@ -1573,6 +1639,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # RESOURCE OPERATIONS — Packages
@@ -1587,25 +1655,10 @@
       security:
         - SessionAuth: []
         - BasicAuth: []
-      parameters:
-        - name: OPERATION
-          in: query
-          required: true
-          description: Operation name
-          schema:
-            type: string
-            enum: [APPLYRESOURCEPACKAGE]
-            default: APPLYRESOURCEPACKAGE
-        - name: VERSION
-          in: query
-          required: true
-          description: API version
-          schema:
-            type: string
-            enum: ["1.0.0", "1.2.0", "2.0.0", "2.2.0", "4.0.0"]
-            default: "1.0.0"
-        - $ref: '#/components/parameters/Locale'
-        - $ref: '#/components/parameters/ClientAgent'
+      # No query parameters: for a POST the mapagent parses only the request body
+      # (ApacheAgent.cpp), so OPERATION, VERSION and the credentials travel as multipart form
+      # fields. Declaring them here as well would both misdescribe the agent and make generated
+      # clients emit two OPERATION enums for this operation, which does not compile.
       requestBody:
         required: true
         content:
@@ -1648,6 +1701,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # FEATURE OPERATIONS
@@ -1689,6 +1744,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetProviderCapabilities:
     get:
@@ -1728,6 +1785,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetConnectionPropertyValues:
     get:
@@ -1774,6 +1833,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /DescribeFeatureSchema:
     get:
@@ -1836,6 +1897,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /SelectFeatures:
     get:
@@ -1936,6 +1999,8 @@
                 type: object
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /SelectAggregates:
     get:
@@ -2034,6 +2099,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetSpatialContexts:
     get:
@@ -2084,6 +2151,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetLongTransactions:
     get:
@@ -2134,6 +2203,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /TestConnection:
     get:
@@ -2177,6 +2248,8 @@
           $ref: '#/components/responses/TextResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /EnumerateDataStores:
     get:
@@ -2222,6 +2295,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetSchemaMapping:
     get:
@@ -2261,6 +2336,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetSchemas:
     get:
@@ -2304,6 +2381,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetClasses:
     get:
@@ -2348,6 +2427,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetClassDefinition:
     get:
@@ -2393,6 +2474,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetIdentityProperties:
     get:
@@ -2438,6 +2521,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetFdoCacheInfo:
     get:
@@ -2475,6 +2560,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # DRAWING OPERATIONS
@@ -2522,6 +2609,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetDrawing:
     get:
@@ -2568,6 +2657,8 @@
                 format: binary
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /EnumerateDrawingSections:
     get:
@@ -2611,6 +2702,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetDrawingSection:
     get:
@@ -2663,6 +2756,8 @@
                 format: binary
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /EnumerateDrawingSectionResources:
     get:
@@ -2712,6 +2807,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetDrawingSectionResource:
     get:
@@ -2764,6 +2861,8 @@
                 format: binary
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /EnumerateDrawingLayers:
     get:
@@ -2813,6 +2912,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetDrawingLayer:
     get:
@@ -2871,6 +2972,8 @@
                 format: binary
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetDrawingCoordinateSpace:
     get:
@@ -2914,6 +3017,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # MAPPING OPERATIONS
@@ -2992,6 +3097,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /DescribeRuntimeMap:
     get:
@@ -3060,6 +3167,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetPlot:
     get:
@@ -3145,12 +3254,14 @@
                 format: binary
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetLegendImage:
     get:
       tags: [Mapping]
       summary: Get legend image
-      description: Generates a legend image for a map definition at a given scale.
+      description: Generates a legend image for a layer definition at a given scale.
       operationId: GetLegendImage
       security:
         - SessionAuth: []
@@ -3175,7 +3286,7 @@
         - $ref: '#/components/parameters/Session'
         - $ref: '#/components/parameters/Locale'
         - $ref: '#/components/parameters/ClientAgent'
-        - $ref: '#/components/parameters/MapDefinition'
+        - $ref: '#/components/parameters/LayerDefinition'
         - name: SCALE
           in: query
           required: true
@@ -3209,9 +3320,11 @@
             type: string
       responses:
         '200':
-          $ref: '#/components/responses/ImagePngResponse'
+          $ref: '#/components/responses/ImageResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetFeatureSetEnvelope:
     get:
@@ -3255,6 +3368,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # RENDERING OPERATIONS
@@ -3375,9 +3490,11 @@
             type: string
       responses:
         '200':
-          $ref: '#/components/responses/ImagePngResponse'
+          $ref: '#/components/responses/ImageResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetMapLegendImage:
     get:
@@ -3424,9 +3541,11 @@
             type: integer
       responses:
         '200':
-          $ref: '#/components/responses/ImagePngResponse'
+          $ref: '#/components/responses/ImageResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetDynamicMapOverlayImage:
     get:
@@ -3541,9 +3660,11 @@
             type: string
       responses:
         '200':
-          $ref: '#/components/responses/ImagePngResponse'
+          $ref: '#/components/responses/ImageResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /QueryMapFeatures:
     get:
@@ -3650,6 +3771,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetVisibleMapExtent:
     get:
@@ -3748,6 +3871,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # TILE OPERATIONS
@@ -3810,9 +3935,11 @@
             type: integer
       responses:
         '200':
-          $ref: '#/components/responses/ImagePngResponse'
+          $ref: '#/components/responses/ImageResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /ClearTileCache:
     post:
@@ -3849,6 +3976,8 @@
           $ref: '#/components/responses/EmptyResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetTileProviders:
     get:
@@ -3894,6 +4023,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetDefaultTileSizeX:
     get:
@@ -3933,6 +4064,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetDefaultTileSizeY:
     get:
@@ -3972,6 +4105,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # KML OPERATIONS
@@ -4054,6 +4189,8 @@
                 type: string
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetLayerKml:
     get:
@@ -4125,6 +4262,8 @@
                 type: string
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetFeaturesKml:
     get:
@@ -4195,6 +4334,8 @@
                 type: string
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # COORDINATE SYSTEM OPERATIONS
@@ -4242,6 +4383,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /CsConvertCoordinateSystemCodeToWkt:
     get:
@@ -4285,6 +4428,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /CsConvertEpsgCodeToWkt:
     get:
@@ -4328,6 +4473,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /CsConvertWktToEpsgCode:
     get:
@@ -4371,6 +4518,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /CsEnumerateCategories:
     get:
@@ -4414,6 +4563,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /CsEnumerateCoordinateSystems:
     get:
@@ -4457,6 +4608,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /CsGetBaseLibrary:
     get:
@@ -4494,6 +4647,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /CsIsValid:
     get:
@@ -4537,6 +4692,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /CsTransformCoordinates:
     get:
@@ -4593,6 +4750,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # GEO-PROCESSING OPERATIONS
@@ -4654,6 +4813,8 @@
                 type: object
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GeoBuffer:
     get:
@@ -4721,6 +4882,8 @@
                 type: object
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GeoBinaryOperation:
     get:
@@ -4789,6 +4952,8 @@
                 type: object
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GeoConvexHull:
     get:
@@ -4844,6 +5009,8 @@
                 type: object
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GeoDistance:
     get:
@@ -4905,6 +5072,8 @@
                 type: object
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GeoGeometryInfo:
     get:
@@ -4953,6 +5122,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GeoSimplify:
     get:
@@ -5014,6 +5185,8 @@
                 type: object
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GeoSpatialPredicate:
     get:
@@ -5082,6 +5255,8 @@
                 type: object
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GeoTessellate:
     get:
@@ -5137,6 +5312,8 @@
                 type: object
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # WEB APPLICATION OPERATIONS
@@ -5178,6 +5355,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /EnumerateApplicationWidgets:
     get:
@@ -5215,6 +5394,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /EnumerateApplicationContainers:
     get:
@@ -5252,6 +5433,8 @@
           $ref: '#/components/responses/XmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   # ═══════════════════════════════════════════════════════════════
   # VIEWER PAGE OPERATIONS
@@ -5292,6 +5475,8 @@
           $ref: '#/components/responses/HtmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
   /GetHtmlViewerPage:
     get:
@@ -5328,6 +5513,8 @@
           $ref: '#/components/responses/HtmlResponse'
         '401':
           $ref: '#/components/responses/UnauthorizedError'
+        '559':
+          $ref: '#/components/responses/MapAgentError'
 
 
 



More information about the mapguide-commits mailing list