In a URL, according to this syntax, I want to use a different delimiter for separating path in a URL.
For example:
In this URL https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Generic_syntax
, I want to separate wiki/Uniform_Resource_Identifier
with a symbol other than /
, but I want to make sure it does not break the URL syntax formalized by IETF.
I am only concerned about the path, how do I separate its components like wiki
and Uniform_Resource_Identifier
As far as your application's use of URIs is concerned, the
/
is barely more special than any other character, with two weak exceptions:/
in your name even if you separate your components by a slash, as inwiki/AC%2FDC
(which has a componentAC/DC
after your application does the splitting), but just the same you can separate your components with a;
and still havewiki;Steins%3bGate
forSteins;Gate
./
are special in that you can do../../
on slashes but not with any other delimiter. (And this is the only place where the path segments really matter).So really, pick whichever you like for your application; the client should (at least under HATEOAS, or really general REST, assumptions) not put too much meaning to the components anyway.