Skip to content

Trailing slash behavior is not consistent between Endpoints v1 and Endpoints v2 #142

Open
@y10h

Description

@y10h

Endpoints v1 (part of the appengine SDK) and Endpoints v2 (this library) don't work the same way with trailing slashes.

Endpoints v1:

  • endpoint that doesn't have trailing slash in definition (example: path = 'path/without-trailing-slash'):
    • GET with trailing slash 'path/without-trailing-slash/' — OK
    • GET without trailing slash 'path/without-trailing-slash' — OK
  • endpoint that does have trailing slash in definition (example: path= 'path/with-trailing-slash/'):
    • GET with trailing slash 'path/with-trailing-slash/' — OK
    • GET without trailing slash 'path/with-trailing-slash' — OK
      Endpoints v2:
  • endpoint that doesn't have trailing slash in definition (example: path = 'path/without-trailing-slash'):
    • GET with trailing slash 'path/without-trailing-slash/' — OK
    • GET without trailing slash 'path/without-trailing-slash' — OK
  • endpoint that does have trailing slash in definition (example: path= 'path/with-trailing-slash/'):
    • GET with trailing slash 'path/with-trailing-slash/' — OK
    • GET without trailing slash 'path/with-trailing-slash' — FAIL (404 Not found)

Please correct the implementation of Endpoints v2 to match the behavior of Endpoints v1.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions