The Vizzlo Portfolio

Vizzlo’s portfolio is the full set of all available Vizzards (chart types). Vizzards are usually navigated to through multiple lists. See for example this portfolio content (that only contains five vizzards for demonstration purposes):

That same five Vizzards might be show up in multiple spots throughout the portfolio:

To be able to build this kind of structured UI, use the following API calls.

Listing Vizzards

Route

GET /api/v1/portfolio

Reading Vizzard details

Route

GET /api/v1/portfolio/id

Searching the portfolio

Route

GET /api/v1/portfolio/search

This endpoint is used to search the portfolio for certain user-specified keywords.

The JSON will contain the actual search terms as query as well as optional paging information.

Query parameters

The search request is submitted using the following query parameters:

Return value

Downloading vizzards

Route

GET /api/v1/vizzards/id

Return value
{
    // …
}

Reviewing vizzards

Route

POST /api/v1/vizzards/id/reviews

Review shall be posted as JSON document with the following keys:

Adding a Vizzard to the favorites

Marks the Vizzard specified by id as a favorite.

Route

PUT /api/v1/portfolio/favorites/id

Return value

Returns a JSON array of strings containing the now current list of favorites.

Removing a Vizzard from the favorites

If currently a favorite, removes the Vizzard specified by id from the list of favorites.

Route

DELETE /api/v1/portfolio/favorites/id

Return value

Returns a JSON array of strings containing the now current list of favorites.