GithubHelp home page GithubHelp logo

kumuluz / kumuluzee-rest Goto Github PK

View Code? Open in Web Editor NEW
8.0 14.0 4.0 321 KB

KumuluzEE REST extension for implementation of common, advanced and flexible REST API functionalities and patterns as microservices.

Home Page: https://ee.kumuluz.com

License: Other

Java 100.00%
microservices rest patterns kumuluzee java javaee cloud-native

kumuluzee-rest's Issues

Unable to Search when using Special Characters in Encoded URL

Hi Team,

I referred to the documentation, and when using the below snippet to build the query:

QueryParameters query = qsd.builder().queryEncoded(uriInfo.getRequestUri().getRawQuery()).build();

I see that when I pass certain special characters (that are URL Encoded) such as parentheses or a comma as part of the filter string, they get excluded from the actual lower level query, and the final query is thus incorrect.

Could someone help me with how this can be corrected, or confirm if it is indeed a genuine bug? It seems like #28 is a similar issue for a different special character as well.

Thanks!
Mahir

Documentation for using OR operation in search filter

Hi Team,

I have a use case where I need to make an OR query in my search filter. I noticed a PR (#11) has been merged for the same by @osbeorn

I essentially want to create a query that performs the following operation: inputValue = (field1.value OR field2.value)

It would be great if you could give an example for the filter for such a use case. Further, just raising this issue to highlight the need for documentation for some of the recent changes that have been merged!

Not able to filter based on Date

Hi Team,

I am trying to use below filter:
GET v1/customers?where=createdAt:GT:'2017-06-12T11:57:00%2B00:00'

But i am getting error message as "A filter has too many argument or is malformed"

Please let me know what is the correct Format of Date ?

Issue with filering fields of type Time and Timestamp

I have Entity class A which has this timestamp type field say "startTime". I want to filter records on the basis of "startTime".

I tried this way :
filter=startTime:GTE:ts'2021-12-10T10:00:00:000Z' - Here startTime corresponds to Timestamp field in MY SQL
filter=startTime:GTE:ts'10:00:00' - Here startTime corresponds to Time field in MY SQL
Although I am not getting any error as such but looks like this filter is getting ignored while fetching the data.

Kindly help me to understand how to pass the time and timestamp fields in the request query

Not able to search String with single quote

I am trying to search a String which has single quote in it. It is not able to find it.
I tried with escape characters like \ and doubling '' it but no luck.

My string is - ably.qer-z'o pp

Queries which I have tried -

string:EQ:'ably.qer-z\'o pp'
string:EQ:'ably.qer-z''o pp'
string:EQ:'ably.qer-z^'o pp'

None of the above are working and returning empty result.

Can you confirm right escape character for such kind of queries ?

RestMapping does not support dot names

RestMapping does not support renames containing dot.

Sample entity:
@RestMapping(value = "publish.version")
Integer publishVersion

Client request: ?filter=publish.version:EQ:1

Probable fix is to first process all RestMapping annotations, remove matched filters and then run the current logic on the remaining filters.

Unable to send "null" query parameter

Query parameters are optional by nature and it's currently not possible to omit them using this library. Would it be possible to skip query parameter inclusion if a null value is used?

Interface;

@GET
public Response findEntities(@QueryParam("search") String text, @QueryParam("optionalParam") UUID optionalParam);

Usage:

myApi.findEntities("ent%", null);

Result:
GET http://localhost:8080/entities?search=ent%

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.