Add case statements so that user can filter API by params

Need to update so that it will consider shared attributes