code: def get(self, palette):
          
          all_colors = {
              'cmyk': ['cian', 'magenta', 'yellow', 'black'],
              'rgb': ['red', 'green', 'blue']
          }
          if palette == 'all':
              result = all_colors
          else:
              result = {palette: all_colors.get(palette)}
          return jsonify(result)
docs: Colors API using schema
          This example is using marshmallow schemas