Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As a user, I want the API to support redundant / in the url #212

Closed
Tracked by #30
tloubrieu-jpl opened this issue Dec 14, 2022 · 2 comments
Closed
Tracked by #30

As a user, I want the API to support redundant / in the url #212

tloubrieu-jpl opened this issue Dec 14, 2022 · 2 comments
Assignees
Labels
B13.1 i&t.done p.should-have requirement the current issue is a requirement

Comments

@tloubrieu-jpl
Copy link
Member

πŸ§‘β€πŸ”¬ User Persona(s)

API user

πŸ’ͺ Motivation

...so that I don't need to pay attention to the root URL being defined as https://pds.nasa.gov/search/api/1/ (with trailing /) or https://pds.nasa.gov/search/api/1 (without trailing '/')

πŸ“– Additional Details

βš–οΈ Acceptance Criteria

Given a deployed API server
When I perform request http://{hostname}/api_root_url//api_query_subpath
Then I expect the same result as for http://{hostname}/api_root_url/api_query_subpath (without double /)

βš™οΈ Engineering Details

See configuration of spring-boot https://spring.io/blog/2020/06/30/url-matching-with-pathpattern-in-spring-mvc

@tloubrieu-jpl tloubrieu-jpl self-assigned this Dec 14, 2022
@tloubrieu-jpl
Copy link
Member Author

It worsks in the API though the default spring-boot pattern used to decode the URL path

@miguelp1986
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B13.1 i&t.done p.should-have requirement the current issue is a requirement
Projects
None yet
Development

No branches or pull requests

3 participants