Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: Add support for '.' on qrest path parameter #271

Merged

Conversation

aVolpe
Copy link
Contributor

@aVolpe aVolpe commented Nov 28, 2022

This commit adds support for path parameter that has dots ('.').

The dot is a commonly used path parameter, for example, all the URLs with
filenames have a dot for the extension.

I can't find any reference to support dots in this specification:

https://www.rfc-editor.org/rfc/rfc6570

But in this specification:

https://www.w3.org/Addressing/URL/url-spec.txt

When describing a BNF,
the dot is in the 'safe' rule, which is part of the 'segment' rule that
defines the 'path' of an URL.

Other use cases are:

  • API Versioning: add the API version in the path, this is already
    partially supported with the wildcard (v2/*)
  • minigl code: the mini account codes are a tree of all the parent
    accounts codes separated with a dot.

Signed-off-by: Arturo Volpe avolpe@fintech.works

@aVolpe aVolpe force-pushed the feature/add_support_for_dot_in_url_param branch 3 times, most recently from 4cc9d62 to 3650fc5 Compare November 28, 2022 11:59
This commit adds support for path parameter that has dots ('.').

The dot is a commonly used path parameter, for example, all the URLs with
filenames have a dot for the extension.

I can't find any reference to support dots in this specification:

    https://www.rfc-editor.org/rfc/rfc6570

But in this specification:

    https://www.w3.org/Addressing/URL/url-spec.txt

When describing a
[BNF](https://en.wikipedia.org/wiki/Backus%E2%80%93Naur_form), the dot
is in the 'safe' rule, which is part of the 'segment' rule that defines
the 'path' of an URL.

Other use cases are:

* API Versioning: add the API version in the path, this is already
  partially supported with the wildcard (v2/*)
* minigl code: the mini account codes are a tree of all the parent
  accounts codes separated with a dot.

Signed-off-by: Arturo Volpe <avolpe@fintech.works>

Signed-off-by: Arturo Volpe <avolpe@fintech.works>
@aVolpe aVolpe force-pushed the feature/add_support_for_dot_in_url_param branch from 3650fc5 to 3acc7e4 Compare November 28, 2022 18:19
@ar ar merged commit 098dfbc into jpos:master Nov 28, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants