Giter Site home page Giter Site logo

Java SDK about flagr HOT 3 CLOSED

openflagr avatar openflagr commented on May 8, 2024
Java SDK

from flagr.

Comments (3)

zhouzhuojie avatar zhouzhuojie commented on May 8, 2024

@cmaslen

I think you can create the java SDK from swagger-cli. They have many options, I will look into what may fit for more use cases for a Java SDK.

For example

mkdir javaflagr
cd javaflagr
cp $GOPATH/src/github.com/checkr/flagr/docs/api_docs/bundle.yaml ./swagger.yaml
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate \ 
   -i /local/swagger.yaml \                                                
   -l java \                                                               
   -o /local/

# optional
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate \ 
   -i /local/swagger.yaml \                                                
   -l java \                                                               
   -o /local/
   -c /local/swagger_java.json   # configs for the generated code                       

from flagr.

cmaslen avatar cmaslen commented on May 8, 2024

Thanks for the response. I spotted the other client SDKs appear to be generated, but wasn't sure if you added stuff like local caching of flag values to cater for server outages etc.

from flagr.

zhouzhuojie avatar zhouzhuojie commented on May 8, 2024

Yes, they are all generated. Client caching is not there yet. The current solution is to always have a sane default (e.g. the old feature as default) in code to handle any server outages when rolling out a new feature with Flagr.

from flagr.

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.