Giter Club home page Giter Club logo

codeigniter-rest-api's Introduction

codeigniter-rest-api

progress build ...

using Myth/Auth library for authanticate

Requirement

Framework Codeigniter >= 4.5 PHP >= 8.1

Featured

  • Global access using Api-Key
  • Authorization Bearer
  • CRUD User, Role, Permission default from Myth/Auth
  • Example postman

postman

postman

HEADER

#Akses Api
Api-Key: <yor api key>

# Akses data login, token didapat dari login
Authorization: Bearer <token>

postman response default

display single data

{
  "status": 200,
  "success": true,
  "error_code": 0,
  "message": "success",
  "data": {
      "item": {}
  }
}

display multiple data

{
  "status": 200,
  "success": true,
  "error_code": 0,
  "message": "success",
  "data": {
      "items": [],
      "pagination" : {}
  }
}

Query Params Doc

DOC

Filter Query By Field

Key Name Result
eq equal field = 'value'
neq not equal field != 'value'
lt lower than field < 'value'
gt greater than field > 'value'
lte lower than equal field <= 'value'
gte greater than equal field >= 'value'
le like end field LIKE 'value%'
ls like start field LIKE '%value'
lse like start end field LIKE '%value%'
in where IN field IN (value) value using sparator , ex 1,2,3,4 / 1
nin where NOT IN field NOT IN (value) value using sparator , ex 1,2,3,4 / 1

Avilable Param

  1. Sort => sort=-user_name => SORT user_name DESC
  2. Sort => sort=user_name => SORT user_name ASC
  3. Sort => field sort sesuai dengan result
  4. limit => default: 10
  5. page => default: 1
  6. search => search=keyword

COFFEE FOR BEST PERFORMANCE

COFFEE HERE for more inovation

OR

Trakteer Saya

codeigniter-rest-api's People

Contributors

saidqb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.