Home > Software design >  Must path parameters always come at the end of the URL?
Must path parameters always come at the end of the URL?

Time:02-18

Is this URL valid?

/path_A?param=value/path_B/path_C

after the parameters, there are more stuff.

CodePudding user response:

Yes that URL is valid, but it probably won't be parsed the way you want.

  • The path is /path_A
  • The query string is param=value/path_B/path_C
  • The value of param is value/path_B/path_C
  • Related