Skip to content

Transform API Response #129

@korgon

Description

@korgon

The new Search API (Athos) returns variant data in a different format than expected in the Snap API. This needs to be normalized to line up with expected mappings in Snap. This will require that variants typing is added to the Snap Search API response (separate task).

Response from Search API:

variants: {
	data: [
		{
			core: {...},
			"options": {
				"optionName": {
					"value": "optionValue"
				}
			}
		}
	]
}

Snap API:

variants: {
	data: [
		{
			"mappings": {
				"core": { ... }
			},
			"attributes": { ... },
			"options": {
				"optionName": {
					"value": "optionValue"
				}
			}
		},
	],
	"preferences": {
		"preferenceName": ["preference1", "preference2"]
	}
}

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions