Class NamespacesResponseFlattener

java.lang.Object
org.restheart.mongodb.interceptors.NamespacesResponseFlattener
All Implemented Interfaces:
ConfigurablePlugin, ExchangeTypeResolver<MongoRequest,MongoResponse>, Interceptor<MongoRequest,MongoResponse>, MongoInterceptor, Plugin

public class NamespacesResponseFlattener extends Object implements MongoInterceptor
The response of GET / and GET /db is an array of documents This flattens the reponse in an array of strings (names of dbs and of collections respectiverly)
Author:
Andrea Di Cesare <andrea@softinstigate.com>