0% found this document useful (0 votes)
9 views6 pages

RND PHP Restful API Server Guide

This document provides instructions for downloading and using a PHP REST server library from GitHub. It explains how to copy the REST server library files to the CodeIgniter application folders and create a new controller that extends the REST_Controller class. It then describes how to create GET, PUT, POST, and DELETE methods in the new controller to access and manage data via a RESTful API, and provides Postman examples for testing each method type.

Uploaded by

Zainudin Husain
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views6 pages

RND PHP Restful API Server Guide

This document provides instructions for downloading and using a PHP REST server library from GitHub. It explains how to copy the REST server library files to the CodeIgniter application folders and create a new controller that extends the REST_Controller class. It then describes how to create GET, PUT, POST, and DELETE methods in the new controller to access and manage data via a RESTful API, and provides Postman examples for testing each method type.

Uploaded by

Zainudin Husain
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

BKM-004 BY RND - PHP

Download Link berikut :


[Link]

1. Copy Library rest server – ci


a. Application/config

b. Application/controller

c. Application/libraries
BKM-004 BY RND - PHP

2. Restful API Server

1. Create New Controller extends to REST_Contoller

2. Create module / function in new controller


a. Get , Query data / get data from source tertentu :

Postman :

Filter width id
BKM-004 BY RND - PHP

Without filter

b. Put
BKM-004 BY RND - PHP

Postman :

c. Delete
BKM-004 BY RND - PHP

Postman

d. Post
BKM-004 BY RND - PHP

Postman :

Common questions

Powered by AI

To set up a RESTful API server using the PHP library provided in the document, one must first download the required files from the GitHub link. The process involves copying the Library rest server into appropriate directories, which include Application/config, Application/controller, and Application/libraries. Next, you need to create a new controller that extends the REST_Controller class. Within this new controller, you implement modules or functions to handle different operations such as Get, Put, Delete, and Post requests using tools like Postman to interact with the API ().

You might also like