Skip to content

feat(routing): Add api-refs for new decision engine endpoints #8709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 29, 2025

Conversation

GauravRawat369
Copy link
Contributor

@GauravRawat369 GauravRawat369 commented Jul 21, 2025

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

This pr adds api refs for routing

"v1/routing/routing--evaluate",
"v1/routing/routing--feedback",
"v1/routing/routing--rule-evaluate"

Moved RoutingEvaluateRequest, RoutingEvaluateResponse, DeRoutableConnectorChoice, ValueType, MetadataValue, NumberComparison, and ComparisonType to api_models so that we can use RoutingEvaluateRequest and RoutingEvaluateResponse in to openapi crate.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

for "v1/routing/routing--evaluate",

image

for "v1/routing/routing--feedback",

image

for "v1/routing/routing--rule-evaluate"

image image

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@GauravRawat369 GauravRawat369 requested a review from a team as a code owner July 21, 2025 15:12
Copy link

semanticdiff-com bot commented Jul 21, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/router/src/routes/routing.rs  81% smaller
  api-reference/docs.json  40% smaller
  crates/router/src/core/payments/routing/utils.rs  3% smaller
  api-reference/v1/openapi_spec_v1.json  0% smaller
  api-reference/v1/routing/routing--evaluate.mdx Unsupported file format
  api-reference/v1/routing/routing--feedback.mdx Unsupported file format
  api-reference/v1/routing/routing--rule-evaluate.mdx Unsupported file format
  crates/api_models/src/open_router.rs  0% smaller
  crates/api_models/src/routing.rs  0% smaller
  crates/openapi/src/openapi.rs  0% smaller
  crates/openapi/src/routes/routing.rs  0% smaller

@GauravRawat369 GauravRawat369 requested a review from a team as a code owner July 22, 2025 15:11
@GauravRawat369 GauravRawat369 changed the title feat(routing): Add new endpoints for evaluate, feedback, and rule-evaluate feat(routing): Add api-refs for new decision engine endpoints Jul 22, 2025
@hyperswitch-bot hyperswitch-bot bot added the M-api-contract-changes Metadata: This PR involves API contract changes label Jul 22, 2025
@GauravRawat369 GauravRawat369 self-assigned this Jul 24, 2025
jagan-jaya
jagan-jaya previously approved these changes Jul 25, 2025
Copy link
Member

@prajjwalkumar17 prajjwalkumar17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This will make the routing/evaluate of DE to routing/rule/evaluate in HS and /decide-gateway to /routing/evaluate

@likhinbopanna likhinbopanna added this pull request to the merge queue Jul 29, 2025
Merged via the queue into main with commit 4dea30f Jul 29, 2025
16 of 20 checks passed
@likhinbopanna likhinbopanna deleted the add-api-refs branch July 29, 2025 11:33
pixincreate added a commit that referenced this pull request Aug 1, 2025
…rver

* 'main' of github.com:juspay/hyperswitch: (25 commits)
  chore: `xof` currency to cybersource cards (#8799)
  chore(version): 2025.08.01.0
  feat(core): Implement UCS based  upi for  paytm and phonepe (#8732)
  feat(connector): [katapult]add template code for katapult (#8783)
  feat(router): introduce `feature`  and `feature_data` to gsm (#7771)
  feat(connector): [cybersource] add changes for field CybersourceConsumerAuthInformation (#8768)
  feat(authentication): added authentication sync api (#8596)
  feat(connector): [facilitapay] fix refunds, add webhook and void support (#8778)
  feat(connector): [payload] add recurring payments (#8597)
  chore(version): 2025.07.31.0
  feat(connector): [Flexiti]Add support for flexiti connector  (#8743)
  chore(router): events enhancement for kafka (#8780)
  ci(cypress): Making a mandate payment with large customer user agents (#8790)
  fix(openapi): update create_platform endpoint in api-reference docs (#8782)
  chore(version): 2025.07.30.0
  fix(connector): [GLOBALPAY] Added Tokenization Flow for CITs (#8568)
  feat(routing): Add api-refs for new decision engine endpoints (#8709)
  fix: replace xtrim with xdel to support  older redis version (#8515)
  fix(connector): [Worldpay] handle multiple ddc submission for CompleteAuthorize (#8741)
  feat(connector): [Adyen] receive incoming webhooks for pix expiry (#8720)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M-api-contract-changes Metadata: This PR involves API contract changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(routing): Add new endpoints for evaluate, feedback, and rule-evaluate
4 participants