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

Feature/esckan-35 - Composer REST new generic endpoint - public - KnowledgeStatement #260

Merged
merged 6 commits into from
Apr 11, 2024

Conversation

D-GopalKrishna
Copy link
Contributor

Jira Link - https://metacell.atlassian.net/browse/ESCKAN-35

A new generic endpoint for public Knowledge statement.

Add new endpoint with new serializer - KnowledgeStatementSerializer and filterset - KnowledgeStatementFilterSet.

Only GET is allowed - is tagged "public".
image

filter by 4 query parameters - origin, via, destination, population uris
Only exported Connectivity statements are shown. As mentioned in lucidcharts

Default behaviors of the filters. Example:

  • When multiple population uris are selected - OR is applied.
  • When one population uri and one via/origin/destination is selected - AND is applied

@zsinnema zsinnema merged commit 384e2d3 into develop Apr 11, 2024
1 check passed
class KnowledgeStatementSerializer(ConnectivityStatementSerializer):
"""Knowledge Statement"""
class Meta(ConnectivityStatementSerializer.Meta):
fields = (
Copy link
Member

Choose a reason for hiding this comment

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

suggestion: I think we should add the reference_uri here since that's one of the fields we allow filtering on.

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