CodeIgniter Forums

Full Version: What will happen If i limit Restful api
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
We can limit request in Restful api example for 200 connection
But i could understood that after 200 connection,what will happen if my app connection be above 200 connection?
Then it should throw an error. Also after a certain amount of time it should reset.

SEE:

A simple RESTful API implementation using PHP and CodeIgniter
(10-04-2017, 02:05 AM)InsiteFX Wrote: [ -> ]Then it should throw an error. Also after a certain amount of time it should reset.

SEE:

A simple RESTful API implementation using PHP and CodeIgniter

Ohom
Why restful api have limitation?
I would recommend doing a Google search on Restful advantages and disadvantages.

There are to many to state and go through here.
On projects i'm using the solutiuon below, it allows you to response in varius types and you control on how or what you are sending. Also limit requests available and API keys.

CodeIgniter 3.x - RESTful-server
Content-types response
Multi language support
I can't seem to find this information anywhere, but it seems that it imposes a limit of 25 records to be returned from a list view results call to the REST API.
(10-05-2017, 10:58 PM)superior Wrote: [ -> ]On projects i'm using the solutiuon below, it allows you to response in varius types and you control on how or what you are sending. Also limit requests available and API keys.

CodeIgniter 3.x - RESTful-server
Content-types response
Multi language support

I'm sorry
What is this code?
$this->methods['user_post']['limit'] = 100; // 100 requests per hour per user/key
$this->methods['user_delete']['limit'] = 50; // 50 requests per hour per user/key

Is it limitation for each user or each key or each ip?
Specify the method used to limit the API calls.
Hey guys
What are they fields for restful table key?
user_id
key
level
ignore_limits
is_private_key
ip_addresses
date_created
It looks to me to be an Auth Table for users.
Pages: 1 2