|
6 | 6 | MapServer Migration Guide |
7 | 7 | ***************************************************************************** |
8 | 8 |
|
9 | | -:Last Updated: 2025-11-18 |
| 9 | +:Last Updated: 2025-11-19 |
10 | 10 |
|
11 | 11 | .. contents:: Table of Contents |
12 | 12 | :depth: 2 |
@@ -101,10 +101,38 @@ MapServer 8.4 to 8.6 Migration |
101 | 101 |
|
102 | 102 | .. seealso:: original Pull Request `#7309 <https://github.com/MapServer/MapServer/pull/7309/>`__ |
103 | 103 |
|
104 | | -- :ref:`ogcapi` has been enhanced to allow `vendorSpecificParameters` passed through to the OpenAPI |
105 | | - document on the `/items` definitions. |
| 104 | +- :ref:`ogcapi` has been enhanced to allow the appending of additional |
| 105 | + query parameters to all URLs generated through the API, by |
| 106 | + defining the `ows_extra_params` parameter in the MAP's METADATA object. |
| 107 | + |
| 108 | + .. code-block:: mapfile |
| 109 | + |
| 110 | + MAP |
| 111 | + ... |
| 112 | + WEB |
| 113 | + METADATA |
| 114 | + "ows_title" "My OGCAPI Server" |
| 115 | + ... |
| 116 | + "oga_html_template_directory" "../../share/ogcapi/templates/html-bootstrap/" |
| 117 | + "ows_extra_params" "token=123" |
| 118 | + END #metadata |
| 119 | + END #web |
| 120 | + ... |
| 121 | + LAYER |
| 122 | + ... |
| 123 | + END #layer |
| 124 | + END #map |
| 125 | + |
| 126 | + All subsequent URLs available through OGCAPI: Features will contain that |
| 127 | + `token=123`, such as:: |
| 128 | + |
| 129 | + http://127.0.0.1/cgi-bin/mapserv.exe/local-demo/ogcapi/collections/ocean/items?f=json&token=123 |
| 130 | + |
| 131 | + .. TIP:: |
| 132 | + For sensitive parameter values, you should enable :ref:`Run-time Substitution <runsub>` to |
| 133 | + not store passwords and other tokens in mapfiles. See steps at :ref:`OGCAPI: Features metadata <ogcapi_metadata>`. |
106 | 134 |
|
107 | | - .. seealso:: original Pull Request `#7295 <https://github.com/MapServer/MapServer/pull/7295/>`__ |
| 135 | + .. seealso:: original Pull Request `#7360 <https://github.com/MapServer/MapServer/pull/7360/>`__ |
108 | 136 |
|
109 | 137 | .. _migration-8-4: |
110 | 138 |
|
|
0 commit comments