cdnjs / api-server

📡 API server for api.cdnjs.com - The #1 free and open source CDN built to make life easier for developers.
https://api.cdnjs.com
MIT License
89 stars 38 forks source link

Deprecate tutorials in API #72

Closed MattIPv4 closed 2 years ago

MattIPv4 commented 2 years ago

Type of Change

What issue does this relate to?

cc https://github.com/cdnjs/cdnjs/issues/14130

cc https://github.com/cdnjs/static-website/pull/112

What should this PR do?

Deprecates tutorials across the API following the deprecation plan and API docs PR. The tutorial get endpoint will now return a 404 for all requests, and the tutorials list endpoint + the tutorials property in the library get endpoint shall always be an empty array.

As tutorials are deprecated, this PR also removes all the build logic relating to fetching tutorials and their metadata from GitHub.

What are the acceptance criteria?

Tutorials endpoints are deprecated following the deprecation plan, returning 404s or an empty array. All tutorial build logic is removed, and tests are updated to reflect the deprecated state of tutorials.

MattIPv4 commented 2 years ago

Live in staging: https://staging.digitalocean.api.cdnjs.dev/libraries/hi-sven/tutorials