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

89 mgramseva connector #95

Merged
merged 8 commits into from
Aug 16, 2024
Merged

89 mgramseva connector #95

merged 8 commits into from
Aug 16, 2024

Conversation

fatchat
Copy link

@fatchat fatchat commented Aug 9, 2024

What

This is a Python CDK connector to pull data from the mGramSeva API provided by eGov. The following endpoints have been implemented:

  • billing-service/demand/_search
  • billing-service/bill/v2/_fetchbill
  • echallan-services/eChallan/v1/_expenseDashboard
  • collection-services/payments/WS/_search

How

We created a utility class called MgramsevaStream inheriting from Airbyte's HttpStream, which sets each request's headers and body (mGramSeva's APIs take the same body containing auth information). From MgramsevaStream we derive the following classes corresponding to the above endpoints:

  • MgramsevaDemands
  • MgramsevaBills
  • MgramsevaTenantExpenses
  • MgramsevaPayments

Bills need to be fetched by consumer, so we get the consumerCodes from the demands API first.

Review guide

  1. source.py contains all the logic
  2. spec.yaml contains the connector configuration

User Impact

This is the first version of the connector and does not conflict with other parts of Airbyte

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

@fatchat fatchat linked an issue Aug 9, 2024 that may be closed by this pull request
@fatchat fatchat had a problem deploying to community-ci-auto August 9, 2024 05:02 — with GitHub Actions Failure
@fatchat fatchat had a problem deploying to community-ci-auto August 9, 2024 05:02 — with GitHub Actions Failure
@fatchat fatchat merged commit 7b4c089 into master Aug 16, 2024
9 of 15 checks passed
@fatchat fatchat deleted the 89-mgramseva-connector branch August 16, 2024 09:27
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.

mGramSeva connector
1 participant