Skip to content

Commit

Permalink
readme & changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
ferishili committed Oct 22, 2024
1 parent 990666e commit 3a39df7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@

# 1.8.0
- Fix for unauthorized access when extracting the Opencast API Version.

# 1.9.0
- Allow passing additonal options to Guzzle #30
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ $config = [
'timeout' => 0, // The API timeout. In seconds (default 0 to wait indefinitely). (optional)
'connect_timeout' => 0, // The API connection timeout. In seconds (default 0 to wait indefinitely) (optional)
'version' => null, // The API Version. (Default null). (optional)
'handler' => null // The callable Handler or HandlerStack. (Default null). (optional)
'features' => null // A set of additional features [e.g. lucene search]. (Default null). (optional)
'handler' => null, // The callable Handler or HandlerStack. (Default null). (optional)
'features' => null, // A set of additional features [e.g. lucene search]. (Default null). (optional)
'guzzle' => null, // Additional Guzzle Request Options. These options can overwrite some default options (Default null). (optional)
];

$engageConfig = [
Expand All @@ -36,8 +37,9 @@ $engageConfig = [
'timeout' => 0, // The API timeout. In seconds (default 0 to wait indefinitely). (optional)
'connect_timeout' => 0, // The API connection timeout. In seconds (default 0 to wait indefinitely) (optional)
'version' => null, // The API version. (Default null). (optional)
'handler' => null // The callable Handler or HandlerStack. (Default null). (optional)
'features' => null // A set of additional features [e.g. lucene search]. (Default null). (optional)
'handler' => null, // The callable Handler or HandlerStack. (Default null). (optional)
'features' => null, // A set of additional features [e.g. lucene search]. (Default null). (optional)
'guzzle' => null, // Additional Guzzle Request Options. These options can overwrite some default options (Default null). (optional)
];

use OpencastApi\Opencast;
Expand Down Expand Up @@ -74,8 +76,9 @@ $config = [
'timeout' => 0, // The API timeout. In seconds (default 0 to wait indefinitely). (optional)
'connect_timeout' => 0, // The API connection timeout. In seconds (default 0 to wait indefinitely) (optional)
'version' => null, // The API version. (Default null). (optional)
'handler' => null // The callable Handler or HandlerStack. (Default null). (optional)
'features' => null // A set of additional features [e.g. lucene search]. (Default null). (optional)
'handler' => null, // The callable Handler or HandlerStack. (Default null). (optional)
'features' => null, // A set of additional features [e.g. lucene search]. (Default null). (optional)
'guzzle' => null, // Additional Guzzle Request Options. These options can overwrite some default options (Default null). (optional)
];


Expand Down Expand Up @@ -114,10 +117,12 @@ $config = [
'timeout' => 0, // The API timeout. In seconds (default 0 to wait indefinitely). (optional)
'connect_timeout' => 0, // The API connection timeout. In seconds (default 0 to wait indefinitely) (optional)
'version' => null, // The API version. (Default null). (optional)
'handler' => null // The callable Handler or HandlerStack. (Default null). (optional)
'features' => null // A set of additional features [e.g. lucene search]. (Default null). (optional)
'handler' => null, // The callable Handler or HandlerStack. (Default null). (optional)
'features' => null, // A set of additional features [e.g. lucene search]. (Default null). (optional)
'guzzle' => null, // Additional Guzzle Request Options. These options can overwrite some default options (Default null). (optional)
];
```
**UPDATE (v1.9.0):** a new config parameter called "guzzle" is introduced, which is intended to pass additional guzzle request options to the call. These options will take precedence over the default configs like uri, auth and timeouts, but some other options like query, fome_params and json will be overwritten by the function if present.
**UPDATE (v1.7.0):** the new items called `features` is added to the configuration array. As of now, it is meant to hanlde the toggle behavior to enable/disable Lucene search endpoint simply by adding `'features' => ['lucene' => true]`. Just keep in mind that this endpoint id off by default and won't work in Opencast 16 onwards. Therefore, developer must be very careful to use this feature and to toggle it!

NOTE: the configuration for presentation (`engage` node) responsible for search has to follow the same definition as normal config. But in case any parameter is missing, the value will be taken from the main config param.
Expand Down

0 comments on commit 3a39df7

Please sign in to comment.