duandaotuo5542 2017-06-20 10:55
浏览 88

在codeigniter中创建REST API

I need to create a RESTful web api using only CodeIgniter. I need your help you can give me any links tutorials or any other helpong material. I have seen that most of the people are using https://github.com/chriskacerguis/codeigniter-restserver i have also did that but when i open the file there are errors in it. I am using dream weaver. Kindly provide me with helping material you can

Thanks in Advance.

  • 写回答

1条回答 默认 最新

  • doumanshan6314 2017-06-20 11:51
    关注

    If you have used

    $config['rest_enable_keys'] = TRUE;

    in your config/rest.php file then make it FALSE

    $config['rest_enable_keys'] = FALSE;.

    Because it seems like you have issue with keys.

    Key Table

    CREATE TABLE `keys` (
        `id` INT(11) NOT NULL AUTO_INCREMENT,
        `key` VARCHAR(40) NOT NULL,
        `level` INT(2) NOT NULL,
        `ignore_limits` TINYINT(1) NOT NULL DEFAULT '0',
        `date_created` INT(11) NOT NULL,
        PRIMARY KEY (`id`)
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
    
    评论

报告相同问题?

悬赏问题

  • ¥50 comsol稳态求解器 找不到解,奇异矩阵有1个空方程返回的解不收敛。没有返回所有参数步长;pid控制
  • ¥15 怎么让wx群机器人发送音乐
  • ¥15 fesafe材料库问题
  • ¥35 beats蓝牙耳机怎么查看日志
  • ¥15 Fluent齿轮搅油
  • ¥15 八爪鱼爬数据为什么自己停了
  • ¥15 交替优化波束形成和ris反射角使保密速率最大化
  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功