Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@y10h

Description

@y10h
Issue body actions

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.