Skip to content
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

feat: Add fetch context from context condition #168

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

ayushjain17
Copy link
Collaborator

Problem

The only way to retrieve a context is by using its id

Solution

Add a new endpoint for getting context provided conditions in the body
The endpoint creates the hash out of the given condition, and performs a db lookup with the generated hash

API changes

Endpoint Method Request body Response Body
/context/get POST condition json context object

@ayushjain17 ayushjain17 requested a review from a team as a code owner July 15, 2024 14:36
@ayushjain17 ayushjain17 force-pushed the getContextFromCondition branch from ec0fe1a to 37b5d6b Compare July 15, 2024 16:28
@mahatoankitkumar mahatoankitkumar merged commit 6dd17f8 into main Jul 17, 2024
4 checks passed
@mahatoankitkumar mahatoankitkumar deleted the getContextFromCondition branch July 17, 2024 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants