dart-lang / api.dart.dev

Dart API docs
https://api.dart.dev
BSD 3-Clause "New" or "Revised" License
19 stars 17 forks source link

Documentation Iterating #83

Closed EhsanAramide closed 2 years ago

EhsanAramide commented 2 years ago

Hi maintainers!

I am working on a bot, to integrate it with dart ecosystem (pub, dart documentations, dart services - based on dartpad service) I need apis for accessing them online. I read the source code but I think this service just serves static files and there are no apis, do you have any plan to create json api urls for some stuff that related to documentations? (Like searching, actually I have no problem with pub and dart-services because they provide public apis and generic services)

EhsanAramide commented 2 years ago

As I understand currently the only way is to request the https://api.dart.dev/<channel>/<version>/index.json URL and the dart team themselves use this way in the search box. As you are aware for achieving the latest API doc versions we should wait until redirection but it is ok for my usage =)))) (I mean this URL scheme https://api.dart.dev/<channel: stable | beta | dev>)