Uppercase routes?

Hi,

is it possible to have a route uppercase?
I tried both here, but doesn’t seem to work:

return [
	//'resources' => [
	//	'user' => ['url' => '/Users']
	//]
	'routes' => [
		['name' => 'Users#index', 'url' => '/Users', 'verb' => 'GET']
	]

];

It looks like routes should be case sensitive.
https://www.w3.org/TR/WD-html40-970708/htmlweb.html

And implementations of this api looks like they are using the case:
https://github.com/15five/django-scim2/blob/master/src/django_scim/urls.py#L20=

And the api I’m trying to implement describes routes with uppercase:
https://datatracker.ietf.org/doc/html/rfc7644#page-9

Thanks for your help!

Ok, never mind, I was testing the wrong url…

So this is possible :slight_smile:

And this actually works:

	'resources' => [
		'user' => ['url' => '/Users']
	]
2 Likes

Please note that it might be error prone depending on proxies, webservers and other things involved in the chain.
We heavily recommend to only use lowercase URLs.
If you want to ignore that recommendation you should at least make sure the URL is only used in one way and not both urls: /users and /Users are being used for different things.

1 Like