The-Shadowserver-Foundation / api_utils

Sample programs to access the API
GNU General Public License v3.0
59 stars 6 forks source link

API: reports/stats : report-type discrepencies #5

Closed trolldbois closed 9 months ago

trolldbois commented 9 months ago

When using the reports/stats endpoint, the report_type field takes value with "-" minus sign between words. ex: scan-rdp, scan-exchange.

but in the schema and reports types list, the words are separated by underscore "_". ex: scan_rdp, scan_exchange.

it's pretty confusing. Can you either fix the stats endpoint, or amend the documentation to clarify this issue ?

elsif2 commented 9 months ago

The API has been updated to favor the underscore format. Either format may be used in the query.