code: func (c *LabelController) List(ctx *app.ListLabelContext) error {
  	err := application.Transactional(c.db, func(appl application.Application) error {
  		labels, err := appl.Labels().List(ctx, ctx.SpaceID)
  		if err != nil {
  			return err
  		}
  		res := &app.LabelList{}
  		res.Data = ConvertLabels(appl, ctx.Request, labels)
  		return ctx.OK(res)
  	})
  	if err != nil {
  		return jsonapi.JSONErrorResponse(ctx, err)
  	}
  	return nil
  }
docs: // List runs the list action.