yarn add axios
yarn add lodash
yarn add mobx
yarn add mobx-react-lite
yarn add mobx-state-tree
yarn add @react-native-async-storage/async-storage
yarn add mst-gql
yarn add graphql-request
1. Create Rest_controller.php inside controllers and paste code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); require APPPATH . '/libraries/API_Controller.php'; class Rest_controller extends API_Controller { public function __construct() { parent::__construct(); } public function index() { $this->api_return( [ 'status' => true, 'result' => "Welcome to Testservices." ], 200); } } ?> 2. Create api.php inside config and paste code : <?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * API Key Header Name */ $config['api_key_header_name'] = 'X-API-KEY'; /** * API Key GET Request Parameter Name */ $config['api_key_get_name'] = 'key'; /** * API Key POST Request Parameter Name ...
Comments
Post a Comment