<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Steve,<br></div><div><br></div><div>Yes that is pretty much it. As you can see from the branch there are minimal changes, and provides a "canonical" URL for all OGC services. I'll make a pull request next week and update the relevant tests.<br></div><div><br></div><div>Seth<br></div><div><br></div><div id="sig62266145"><div class="signature">--<br></div><div class="signature">web:<a href="https://geographika.net">https://geographika.net</a><br></div><div class="signature">twitter: @geographika<br></div></div><div><br></div><div>On Mon, Mar 6, 2023, at 11:39 PM, Steve Lime wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr">Hmmm... so if path_info contains exactly one value, use it for the map= value. I could get behind that. Nice and clean.<br></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">On Mon, Mar 6, 2023 at 7:22 AM Seth G <<a href="mailto:sethg@geographika.co.uk">sethg@geographika.co.uk</a>> wrote:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-color:rgb(204, 204, 204);border-left-style:solid;border-left-width:1px;padding-left:1ex;"><div>Hi devs,<br></div><div> <br></div><div> The OGC Features API introduced in MapServer 8.0 allows accessing Mapfiles using keys in the config file:<br></div><div> <br></div><div> URL: <a href="http://example.com/mykey/ogcapi/collections/foo/items" rel="noreferrer" target="_blank">http://example.com/mykey/ogcapi/collections/foo/items</a>.<br></div><div> Config file:<br></div><div> <br></div><div> CONFIG<br></div><div>   MAPS<br></div><div>     mykey "/path/to/mapfile"<br></div><div>   END<br></div><div> END<br></div><div> <br></div><div> For all other requests you have to use the format <a href="http://example.com/?map=mykey&request=WMS." rel="noreferrer" target="_blank">http://example.com/?map=mykey&request=WMS.</a>..<br></div><div> <br></div><div> I think it would be nice to be able to use the same approach as OGC Features API to allow the key to be used as part of the URL e.g. a WMS request could be accessed using: <a href="http://example.com/mykey/?request=WMS." rel="noreferrer" target="_blank">http://example.com/mykey/?request=WMS.</a>..<br></div><div> <br></div><div> The changes to allow this seem to be minimal (with work to be done on tests and docs) - see [1]<br></div><div> <br></div><div> Does anyone have any thoughts or reservations on adopting this approach?<br></div><div> <br></div><div> Seth<br></div><div> <br></div><div> [1] <a href="https://github.com/MapServer/MapServer/compare/main...geographika:mapserver:mapfile-key-url" rel="noreferrer" target="_blank">https://github.com/MapServer/MapServer/compare/main...geographika:mapserver:mapfile-key-url</a><br></div><div> <br></div><div> <br></div><div> --<br></div><div> web:<a href="https://geographika.net" rel="noreferrer" target="_blank">https://geographika.net</a><br></div><div> twitter: @geographika<br></div><div> _______________________________________________<br></div><div> MapServer-dev mailing list<br></div><div> <a href="mailto:MapServer-dev@lists.osgeo.org" target="_blank">MapServer-dev@lists.osgeo.org</a><br></div><div> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br></div></blockquote></div></blockquote><div><br></div></body></html>