Git Product home page Git Product logo

Comments (10)

Krasnyanskiy avatar Krasnyanskiy commented on May 31, 2024

We use ResourceServiceParameter enum in SingleResourceAdapter. And SingleResourceAdapter in ResourcesService class. The last one allows you to set resource Uri with method resource(String uri):

session.resourcesService().resource("/the/way/to/uri/resource").details();

So you don't need to add RESOURCE_URI.

from jrs-rest-java-client.

mortias avatar mortias commented on May 31, 2024

well i use these to pass my variables from a rest frontend in a typesafe hashmap of type ResourceServiceParameter, String.. but nop, i'll work around it

from jrs-rest-java-client.

Krasnyanskiy avatar Krasnyanskiy commented on May 31, 2024

Ok, one more thing. That enum we use to set parameter in url: http://<host>:<port>/jasperserver[-pro]/rest_v2/resources/path/to/folder?<param>. If I modify it some other guy could use it not on purpose. So yes, it would be better to find some work around.

from jrs-rest-java-client.

mortias avatar mortias commented on May 31, 2024

adding it :) it's a type safe enum so why not..
all parameters used should be in there, also for instance the resource_obj (in case of updating a resource)?

from jrs-rest-java-client.

Krasnyanskiy avatar Krasnyanskiy commented on May 31, 2024

All these params are binded to WS.

from jrs-rest-java-client.

mortias avatar mortias commented on May 31, 2024

true, i use them first in a rest endpoint documented using swagger, where i only publish the services i want to open as enterprise services in a microservice architecture. So the parameters are typesafe mapped using these enums, then i pass it over to ejb => jms => camel => jasperclient (async)

from jrs-rest-java-client.

mortias avatar mortias commented on May 31, 2024

so i embed your client over a microservice based architecture :)

from jrs-rest-java-client.

Krasnyanskiy avatar Krasnyanskiy commented on May 31, 2024

Cool! 👍

from jrs-rest-java-client.

mortias avatar mortias commented on May 31, 2024

:) cool indeed, and complex .. that's why i'm sending you all these requests or input, because i'm sure you could also benefit from it :)

from jrs-rest-java-client.

mortias avatar mortias commented on May 31, 2024

Below how i expose them, however like i said, it would be nice if you also have this implemented :)

untitled-1

from jrs-rest-java-client.

Related Issues (20)

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.