Aplikasi Restful Server dengan Slim Framework

slim-intro

Slim Framework

Selamat Datang di Slim Framework

disini saya akan memberikan contoh aplikasi RESTful Service dengan Slim Framework + code

Memulai

  1. Kode ini berada di file index.php
  2. Lihat penjelasan di blog https://ndesostyle.wordpress.com
  3. Import database db_api_kota.sql

API

  1. POST http://localhost/slim-fw/index.php/register
  2. POST http://localhost/slim-fw/index.php/login
  3. POST http://localhost/slim-fw/index.php/tasks
  4. GET http://localhost/slim-fw/index.php/tasks
  5. GET http://localhost/slim-fw/index.php/tasks/:id
  6. PUT http://localhost/slim-fw/index.php/tasks/:id
  7. DELETE http://localhost/slim-fw/index.php/tasks/:id
Code dapat di unduh disini: download
Screenshot  Advanced Rest Client App di browser Chrome :
slim_task
login
get_task
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s