Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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'sHttpStream
, which sets each request'sheaders
andbody
(mGramSeva's APIs take the samebody
containing auth information). FromMgramsevaStream
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
source.py
contains all the logicspec.yaml
contains the connector configurationUser 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?