Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

dhanifudin/rest-in-ci

Repository files navigation

Rest In CI

This is a simple todo rest application based on CodeIgniter, REST Server, JWT Implementation.

Setup

Please run composer install in application directory first. You need to deploy database schema todo.sql into your mysql server. Then configure database configuration on application/config/database.php. Insert new user into database.

Run

You can run using php built-in server

php -S 0.0.0.0:8000

I don't use apache or xampp anymore, so don't ask me :D

Create JWT Token

URL: https://localhost:8000/auth/token
Method: POST
Multipart Form:
    username: <user>
    password: <user>(not encrypted)

Create Todo You need to set jwt token into Authorization header.

URL: https://localhost:8000/todo
Method: POST
Multipart Form:
    todo: <todo>
    done: 0

List Todo

URL: https://localhost:8000/todo
Method: GET

About

A simple JWT implementation on Codeigniter

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published