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;
    
    评论

报告相同问题?

悬赏问题

  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题