HTTPArchive / tech-report-apis

APIs for the HTTP Archive Technology Report
Apache License 2.0
2 stars 0 forks source link

Return all technologies #16

Open sarahfossheim opened 7 months ago

sarahfossheim commented 7 months ago

We need a way to return a list of all technologies:

This could be an improvement of the current /technologies,

But open for other solutions too.

maceto commented 7 months ago

Hello @sarahfossheim, I made the changes in the technologies endpoint.

If request without any parameters will return ALL technologies, it is a big response can take a second.

https://dev-gw-2vzgiib6.ue.gateway.dev/v1/technologies

If request with the param onlyname=true will return ALL technologies names

https://dev-gw-2vzgiib6.ue.gateway.dev/v1/technologies?onlyname=true

If request with the param category one or many will return all the technologies in that category o categories, and you can use onlyname=true to get only the names if you need it.

https://dev-gw-2vzgiib6.ue.gateway.dev/v1/technologies?category=CMS,Security

https://dev-gw-2vzgiib6.ue.gateway.dev/v1/technologies?category=CMS&onlyname=true

And the request just for a technology or many, you can use onlyname=true if you need it.

https://dev-gw-2vzgiib6.ue.gateway.dev/v1/technologies?technology=WordPress,Loja2