Format a provider definition for the registry
masterProvider definitions in the oembed-providers registry are written in YAML format. Each entry represents a single service provider and must include the provider's name, its base URL, and a list of endpoints that match specific URL schemes.
Key fields include:
provider_name: The name of the service.provider_url: The base URL of the provider.endpoints:schemes: A list of URL patterns (using glob-style*) that trigger this endpoint.url: The actual oEmbed API endpoint URL.docs_url: A link to the provider's API documentation.example_urls: A list of URLs used for testing the provider's response.discovery: A boolean indicating if the provider supports oEmbed discovery.notes: Optional text for maintainers or users regarding specific limitations (e.g., supported types).
---
- provider_name: The Provider
provider_url: http://www.provider.com
endpoints:
- schemes:
- http://img.provider.com/*
- http://provider.com/post/*
url: http://api.provider.com/oembed.json
docs_url: http://dev.provider.com/api/oembed/
example_urls:
- http://api.provider.com/oembed.json?url=http://provider.com/post/f00ba2
discovery: true
notes: Provider only supports the 'rich' type
...