Problem/Motivation

It's hard to know what API parameters you can use in API queries.

Steps to reproduce

Attempt to filter your query and experience the uncertainty.

Proposed resolution

Add a drush command that show the available options.

Show the results from this API request in a table or some other format:

- https://example.orangelogic.com/API/search/v3.0/ListCriteria

Remaining tasks

Add a new endpoint to the PHP Library: https://github.com/ChromaticHQ/orange-dam-php
Add a new Drush command to this module.

User interface changes

N/A

API changes

New method.

Data model changes

N/A

Issue fork orange_dam-3371411

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

adamzimmermann created an issue. See original summary.

adamzimmermann’s picture

Example response data:

{
"APIRequestInfo": {
"ProviderVersion": "EXAMPLE.123",
"ProviderIdentity": "EXA-AWS-OHI-182",
"ProviderID": "1234",
"Module": "search",
"APIVersion": "v3.0",
"Resource": "ListCriteria",
"IsLoggedIn": true,
"Status": "LoggedIn",
"UserLogin": "",
"Session": "Example Session",
"TimeoutPeriodMinutes": 120
},
"APIResponse": [
{
"Name": "Doctype",
"Description": ""
},
{
"Name": "Mediatype",
"Description": "Media type such as Image, Audio, Video, Album, Story...",
"Examples": "query=MediaType:Image\nquery=MediaType:Image OR Video"
},
{
"Name": "Docsubtype",
"Description": "Asset sub type such as Upload folder, Standard image, Video segment, etc.",
"Examples": "query=DocSubType:Standard Image"
},
...

adamzimmermann’s picture

Status: Active » Needs review

adamzimmermann’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.