packages/ove-core/src/server/api.js
function (req, res) {
        let groupId = req.params.id;
        if (Utils.isNullOrEmpty(server.state.get('groups[' + groupId + ']'))) {
            log.error('Invalid Group Id:', groupId);
            Utils.sendMessage(res, HttpStatus.BAD_REQUEST, JSON.stringify({ error: 'invalid group id' }));
        } else {
            log.debug('Successfully read configuration for group id:', groupId);
            Utils.sendMessage(res, HttpStatus.OK, JSON.stringify(server.state.get('groups[' + groupId + ']')));
        }
    }
function (req, res) {
        let groupId = req.params.id;
        if (Utils.isNullOrEmpty(server.state.get('groups[' + groupId + ']'))) {
            log.error('Invalid Group Id:', groupId);
            Utils.sendMessage(res, HttpStatus.BAD_REQUEST, JSON.stringify({ error: 'invalid group id' }));
        } else {
            log.debug('Successfully read configuration for group id:', groupId);
            Utils.sendMessage(res, HttpStatus.OK, JSON.stringify(server.state.get('groups[' + groupId + ']')));
        }
    }
function ( req , res ) { let groupId = req . params . id ; if ( Utils . isNullOrEmpty ( server . state . get ( 'groups[' + groupId + ']' ) ) ) { log . error ( 'Invalid Group Id:' , groupId ) ; Utils . sendMessage ( res , HttpStatus . BAD_REQUEST , JSON . stringify ( { error : 'invalid group id' } ) ) ; } else { log . debug ( 'Successfully read configuration for group id:' , groupId ) ; Utils . sendMessage ( res , HttpStatus . OK , JSON . stringify ( server . state . get ( 'groups[' + groupId + ']' ) ) ) ; } }
Fetches details of an individual group
Fetches details of an individual group