italia / developers-italia-api

API for the developers.italia.it public software collection
https://api.developers.italia.it
GNU Affero General Public License v3.0
9 stars 6 forks source link

Add search parameters to GET /logs #236

Closed bfabio closed 3 months ago

bfabio commented 3 months ago

Add a search parameters to GET /logs, so consumers can search for errors or repos in the logs.

nesangcode commented 3 months ago

What kind of errors that you want consumers can search for? Error message?

bfabio commented 3 months ago

@k124k3n the Log resource has a message field which is typically the output of our software crawler. It's a generic message, so you can find error messages or just plain informational logs in there.

A text search in that field would be enough, as consumer could search for anything they need, often times it's just about searching for all logs regarding a certain repository, which again would be listed in message.

For reference: https://api.developers.italia.it/v1/logs

nesangcode commented 3 months ago

@bfabio Thank you. I can work on it.

bfabio commented 3 months ago

@k124k3n that's great, thanks!