0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/test/functional/routes/api
Kevin Ansfield ca20f3a6b0 Added /oembed API endpoint
refs https://github.com/TryGhost/Ghost/issues/9623
- add `oembed-parser` module for checking provider availability for a url and fetching data from the provider
  - require it in the `overrides.js` file before the general Promise override so that the `promise-wrt` sub-dependency doesn't attempt to extend the Bluebird promise implementation
- add `/oembed` authenticated endpoint
  - takes `?url=` query parameter to match against known providers
  - adds safeguard against oembed-parser's providers list not recognising http+https and www+non-www
  - responds with `ValidationError` if no provider is found
  - responds with oembed response from matched provider's oembed endpoint if match is found
2018-06-12 16:18:01 +01:00
..
authentication_spec.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
configuration_spec.js Import lib/common only 2017-12-12 10:28:13 +01:00
db_spec.js Backup endpoint improvements (#9365) 2018-01-11 16:03:21 +01:00
error_spec.js Speed up routing tests 2017-12-05 12:32:04 +01:00
notifications_spec.js 🐛 Fixed showing old release notifications in the about page 2018-01-18 12:19:55 +01:00
oembed_spec.js Added /oembed API endpoint 2018-06-12 16:18:01 +01:00
posts_spec.js Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
public_api_spec.js Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
redirects_spec.js Speed up routing tests 2017-12-05 12:32:04 +01:00
settings_spec.js Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
slugs_spec.js Speed up routing tests 2017-12-05 12:32:04 +01:00
spam_prevention_spec.js Use Bookshelf in our test env (#9592) 2018-04-25 17:13:35 +02:00
tags_spec.js Speed up routing tests 2017-12-05 12:32:04 +01:00
themes_spec.js Use Bookshelf in our test env (#9592) 2018-04-25 17:13:35 +02:00
upload_icon_spec.js Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
upload_spec.js Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
users_spec.js Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
webhooks_spec.js Speed up routing tests 2017-12-05 12:32:04 +01:00