Add ooniprobe private api#1194
Open
aagbsn wants to merge 107 commits into
Open
Conversation
…_stats this method isn't yet implemented as the necessary database tables are nonexistent
for /api/_/global_overview_by_month
for /api/_/circumvention_stats_by_country, /api/_/circumvention_runtime_stats, /api/_/asnmeta
+from pydantic import AnyUrl, Field for /api/_/networks, /api/_/domains
Contributor
Author
|
curl -X 'GET' 'https://api.ooni.io/api/_/test_coverage?probe_cc=US' -H 'accept: application/json' Not able to compare this one |
response needs to have a "results" key
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (91.13%) is below the target coverage (95.00%). You can increase the head coverage or adjust the target coverage.
Additional details and impacted files@@ Coverage Diff @@
## master #1194 +/- ##
==========================================
- Coverage 98.45% 91.13% -7.33%
==========================================
Files 18 39 +21
Lines 1425 4500 +3075
Branches 48 344 +296
==========================================
+ Hits 1403 4101 +2698
- Misses 22 318 +296
- Partials 0 81 +81
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds the private api endpoints to ooniprobe #807
test checklist for API endpoints:
/api/_/asn_by_month/api/_/countries_by_month/api/_/test_names/api/_/countries/api/_/check_report_id/api/_/test_coverage/api/_/website_networks/api/_/website_stats/api/_/website_urls/api/_/vanilla_tor_stats/api/_/im_networks/api/_/im_stats/api/_/network_stats/api/_/country_overview/api/_/global_overview/api/_/global_overview_by_month/api/_/circumvention_stats_by_country/api/_/circumvention_runtime_stats/api/_/domain_metadata/api/_/asnmeta/api/_/networks/api/_/domainsendpoints that need implementation:
/api/_/quotas_summary