old_contents: import {normalize} from './params'
  
  export function list({Model, req, res}) {
    const query = normalize({req})
    const include = query.include.map(include => {
      return Model.modelManager.getModel(include)
    })
    return Model
      .findAll({
        order: query.order,
        limit: query.limit,
        offset: query.offset,
        include
      })
      .then(documents => {
        res
          .status(200)
          .body = documents.map(document => document.get({plain: true}))
      })
  }
  
  export function create({Model, req, res}) {
    const query = normalize({req})
  }
  
  export function read({Model, idParam, idField, req, res}) {
    const query = normalize({req})
    const include = query.include.map(include => {
      return Model.modelManager.getModel(include)
    })
    return Model
      .find({
        where: {
          [idField]: req.params[idParam]
        },
        order: query.order,
        limit: query.limit,
        offset: query.offset,
        include
      })
      .then(document => {
        res
          .status(200)
          .body = document.get({plain: true})
      })
  }
  
  export function update({Model, req, res}) {
    const query = normalize({req})
  }
  
  export function remove({Model, req, res}) {
    const query = normalize({req})
  }
  
new_contents: import {
    normalize,
    include
  } from './params'
  
  export function list({Model, req, res}) {
    const query = normalize({req})
    return Model
      .findAll({
        order: query.order,
        limit: query.limit,
        offset: query.offset,
        include: include({
          Model,
          param: query.include
        })
      })
      .
      then(documents => {
        res
          .status(200)
          .body = documents.map(document => document.get({plain: true}))
      })
  }
  
  export function create({Model, req, res}) {
    const query = normalize({req})
  }
  
  export function read({Model, idParam, idField, req, res}) {
    const query = normalize({req})
    return Model
      .find({
        where: {
          [idField]: req.params[idParam]
        },
        order: query.order,
        limit: query.limit,
        offset: query.offset,
        include: include({
          Model,
          param: query.include
        })
      })
      .then(document => {
        res
          .status(200)
          .body = document.get({plain: true})
      })
  }
  
  export function update({Model, req, res}) {
    const query = normalize({req})
  }
  
  export function remove({Model, req, res}) {
    const query = normalize({req})
  }
  
subject: use include method