Giter Site home page Giter Site logo

Comments (10)

ieugen avatar ieugen commented on August 12, 2024 1

@remmeier : cool. In the meeting last night we decided to have a more slow approach regarding the refactorings. We will no longer merge the full branch but back-port changes one at a time.

One of those changes will be json api serialization/deserialization - usefull for building kathaarsis-client.

Having that said, I believe we can merge katharsis client soon and start implementing this feature + refactoring of the serialization and use the client to test it.

from katharsis-framework.

remmeier avatar remmeier commented on August 12, 2024

I can help with that. My initial version with very minor changes to katharsis-core starts to look quite ok (find/save/delete, relations, exception mapping,...). Currently based on the master branch (
https://github.com/adnovum/katharsis-framework/tree/master/katharsis-client). I could contribute it as a starting point, either after the refactorings or before/now. Maybe it would be useful to have it before the refactorings to maybe give some insights for the refactorings.

from katharsis-framework.

masterspambot avatar masterspambot commented on August 12, 2024

Referal issue that can be included to address the change #2

from katharsis-framework.

 avatar commented on August 12, 2024

what's the status of this?

from katharsis-framework.

chb0github avatar chb0github commented on August 12, 2024

I have a snippet of code that almost does the trick. I just started doing this a couple of weeks ago. The problem is that it currently requires a thread local variable swap.

from katharsis-framework.

stfnio avatar stfnio commented on August 12, 2024

Json-api ser/deser - it's all we need. If we can simply use that Katharsis feature without full integraton with framework that would be a relief

from katharsis-framework.

shannontan-addepar avatar shannontan-addepar commented on August 12, 2024

@remmeier Any ideas on if/when this would ship?

Thanks!

from katharsis-framework.

chb0github avatar chb0github commented on August 12, 2024

from katharsis-framework.

remmeier avatar remmeier commented on August 12, 2024

because of #269 I started working in this area, meaning object representation of JSON API request/response with serializers. I should have that today or tomorrow.

from katharsis-framework.

chb0github avatar chb0github commented on August 12, 2024
        JsonApiResponse response = new JsonApiResponse().setEntity(entity);
                ResourcePath jsonPath = new ResourcePath(entity.getClass().getAnnotation(JsonApiResource.class).type());
                result = objectMapper.writeValueAsString(new ResourceResponseContext(response, jsonPath, new QueryParamsAdapter(new QueryParams())));

The only problem here is you will need to swap out the ServiceUrlProvider as a ThreadLocal variable. otherwire all of your resource are going to have the HOST header be null and this not work.

from katharsis-framework.

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.