Coder Social home page Coder Social logo

Comments (6)

shariqmalik10 avatar shariqmalik10 commented on August 19, 2024

hello. Can you assign this to me ? Still understanding the code but I am interested in contributing here

from switchfeat.

dev-bre avatar dev-bre commented on August 19, 2024

Sure. Go for it.

from switchfeat.

stephenmaina2995 avatar stephenmaina2995 commented on August 19, 2024

Hello. I'm looking forward to contributing to this project.

from switchfeat.

rajeshj11 avatar rajeshj11 commented on August 19, 2024

@dev-bre Hi. I have set up the project in my local. I am testing it in the local, below input is my flag. I am trying to evaluate it. I am not able to get how to pass context in the body in evaluate api. please guide me with some example snapshots.

{ "success": true, "data": { "name": "testing1", "description": "testing1", "createdOn": "2024-03-06T09:25:36.091Z", "status": true, "updatedOn": "2024-03-06T09:25:49.472Z", "key": "testing1", "rules": [ { "segment": { "name": "Test", "description": "testing", "matching": "all", "conditions": [ { "context": "testing1", "value": "12-02-2022", "conditionType": "datetime", "operator": "beforeOrAt", "key": "condition_fa8da9a7-9baf-40c3-862b-858a97fe5920" }, { "context": "testing2", "value": "test", "conditionType": "string", "operator": "equals", "key": "condition_4dec1293-62e9-49da-a5a0-87717b0b4d98" } ], "createdOn": "2024-03-06T09:23:52.820Z", "updatedOn": "2024-03-06T09:23:52.820Z", "key": "segment_05ee150d-f9c9-4e2b-9bd9-78b7f90627dd" }, "key": "rule_0d9bbc93-a43c-4cd1-817c-a73ddb754c3d" }, { "segment": { "name": "test2", "description": "", "matching": "all", "conditions": [ { "context": "test1", "conditionType": "boolean", "operator": "true", "key": "condition_188f4644-3863-4f90-8583-47824c1f947c" }, { "context": "test2", "value": "14-01-2001", "conditionType": "datetime", "operator": "afterOrAt", "key": "condition_87cd2521-4896-4623-b65d-c88494ab2839" } ], "createdOn": "2024-03-06T09:24:59.470Z", "updatedOn": "2024-03-06T09:24:59.470Z", "key": "segment_218d627d-26cc-49cf-93e2-16bcabbf878f" }, "key": "rule_ca3e3e6e-b1b7-43f2-981d-b79c1fe8d7bb" } ], "_id": "mrcMvuyoUrbSFyLB" } }

API I am hitting this API
curl --location 'http://localhost:4000/api/sdk/flags/testing1/evaluate' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json' \ --header 'sf-api-key: sk_97c9a247-bd44-450c-85cc-61637108a866' \ --header 'Cookie: connect.sid=s%3A4NcJZVGEiV436H9PA5Bho4Zg1PsD_0wM.BQcnwuDX9GtLkxxQ32SMO1S0%2FY4nCeKpOIFOsMRL190' \ --data '{ "context": { "value": "something" } }'

from switchfeat.

rajeshj11 avatar rajeshj11 commented on August 19, 2024

@dev-bre please review
#94

from switchfeat.

Gopigunaganti avatar Gopigunaganti commented on August 19, 2024

Hello will you please assign it to me i wanna interested in contributing this

from switchfeat.

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.