More Related Content
Similar to Api guide (20)
Api guide
- 1. Restful API for Design & Implementation,
with CodeIgniter PHP Framework.
By : Deepak Rai
- 5. What is Restful API
RESTful API is an Application
Programmer Interface for
communicating with an
application across a network.
- 8. xx%
Use this slide to show a major stat. It can help enforce the presentation’s main
message or argument.
- 9. “This is a super-important quote”
- From an expert
- 10. JSON in PHP (encode)
PHP
<? Php
echo json_encode ( array(
‘key’ => ‘value’
));
Output
{ key: ‘value’}
- 11. Create API POST
Input
Var object = {
tittle: ‘power sector’
Text: ‘power sector is most important’
};
Output
{
id: ‘1000’,
Success text: ‘ok’,
}
- 13. Update API
Input
Var object = {
id: ‘1000’
tittle: ‘power sector’
Text: ‘power sector is most important’
};
Output
{
id: ‘1000’,
Success text: ‘ok’,
}