{"id":14987365,"url":"https://github.com/ikhsan3adi/auction_app_api_ci4","last_synced_at":"2025-04-12T00:03:21.899Z","repository":{"id":154035821,"uuid":"625452921","full_name":"ikhsan3adi/auction_app_api_ci4","owner":"ikhsan3adi","description":"RESTful API service for Flutter-Auction-App using CodeIgniter 4","archived":false,"fork":false,"pushed_at":"2024-05-15T03:14:50.000Z","size":267,"stargazers_count":17,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T00:03:15.088Z","etag":null,"topics":["codeigniter","codeigniter4","jwt","jwt-authentication","php","rest-api","restful-api"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ikhsan3adi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-09T06:33:29.000Z","updated_at":"2025-04-09T10:24:47.000Z","dependencies_parsed_at":"2024-05-14T09:47:55.012Z","dependency_job_id":"539f2fb9-c858-487d-8844-a44d97ee67bc","html_url":"https://github.com/ikhsan3adi/auction_app_api_ci4","commit_stats":{"total_commits":91,"total_committers":6,"mean_commits":"15.166666666666666","dds":0.6373626373626373,"last_synced_commit":"7b7f45933a80725816254c71154e8589cedbea79"},"previous_names":["ikhsan3adi/auction-app-restful-api","ikhsan3adi/ci4_online_auction_api","ikhsan3adi/auction_app_api_ci4"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikhsan3adi%2Fauction_app_api_ci4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikhsan3adi%2Fauction_app_api_ci4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikhsan3adi%2Fauction_app_api_ci4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikhsan3adi%2Fauction_app_api_ci4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikhsan3adi","download_url":"https://codeload.github.com/ikhsan3adi/auction_app_api_ci4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248497803,"owners_count":21113984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeigniter","codeigniter4","jwt","jwt-authentication","php","rest-api","restful-api"],"created_at":"2024-09-24T14:14:30.633Z","updated_at":"2025-04-12T00:03:21.850Z","avatar_url":"https://github.com/ikhsan3adi.png","language":"PHP","funding_links":["https://paypal.me/xannxett?country.x=ID\u0026locale.x=en_US"],"categories":[],"sub_categories":[],"readme":"# Flutter Auction App RESTful API Service\n\n[![Continuous Integration](https://github.com/ikhsan3adi/auction_app_api_ci4/actions/workflows/ci.yml/badge.svg)](https://github.com/ikhsan3adi/auction_app_api_ci4/actions/workflows/ci.yml)\n\n REST API for [Flutter Auction App](https://github.com/ikhsan3adi/flutter-auction-app) using Codeigniter 4\n\n\n## Requirement\n\n- Composer\n- **PHP 8.1+ \u0026 MySQL** or **XAMPP** with `-intl` extension enable\n\n## Configuration\n\n1.  Rename `.env.example` file to `.env`.\n2.  Set the jwt secretkey and token expiration in the `.env` file if you want to change them.\n3.  Install dependencies:\n```shell\n    composer install\n```\n4. Create `db_online_auction` database\n5.  Ensure your database is setup correctly, then run the migrations: \n```shell\n    php spark migrate -all  \n```\n6.  Run the app: \n```shell\n    php spark serve  \n```\n\n\u003e http://localhost:8080\n\n## API Reference\n\n#### Login\n\n```\nPOST   /api/login\n```\n\n| Parameter  | Type     | Description                 |\n| :--------  | :------- | :-------------------------  |\n| `username` | `string` | **Required**. Your username |\n| `password` | `string` | **Required**. Your password |\n\n\n#### Register user\n\n```\nPOST   /api/users\n```\n\n| Parameter      | Type     | Description    |\n| :--------      | :------- | :--------------|\n| `username`     | `string` | **Required**.  |\n| `password`     | `string` | **Required**.  |\n| `name`         | `string` | **Required**.  |\n| `email`        | `string` | **Required**.  |\n| `phone`        | `string` |                |\n\n---\nWarning :warning: Make sure to add authorization header (Bearer token)\n\n#### Get auction\n\n```\nGET    /api/auctions\n```\n```\nGET    /api/auctions/{id}\n```\n#### Get user/my auctions\n```\nGET    /api/users/auctions\n```\n#### Get auction bids\n```\nGET    /api/auctions/{id}/bids\n```\n---\n#### Create an auction\n```\nPOST   /api/auctions\n```\n#### Update an auction\n```\nPATCH  /api/auctions/{id}\n```\n#### Set winner \u0026 close auction\n```\nPATCH  /api/auctions/{id}/winner\n```\n```\nPATCH  /api/auctions/{id}/close\n```\n#### Delete an auction\n```\nDELETE /api/auctions/{id}\n```\n---\n#### Get bid\n```\nGET    /api/bids\n```\n```\nGET    /api/bids/{id}\n```\n#### Get user/my bids\n```\nGET    /api/users/bids\n```\n---\n#### Create/place a bid\n```\nPOST   /api/bids\n```\n#### Update bid\n```\nPATCH  /api/bids/{id}\n```\n#### Delete bid\n```\nDELETE /api/bids/{id}\n```\n---\n#### Get item\n```\nGET    /api/items\n```\n```\nGET    /api/items/{id}\n```\n#### Create an item\n```\nPOST   /api/items\n```\n#### Update an item\n```\nPATCH  /api/items/{id}\n```\n#### Delete an item\n```\nDELETE /api/items{id}\n```\n---\n#### Get user\n```\nGET    /api/users\n```\n```\nGET    /api/users/{id}\n```\n#### Update user\n```\nPATCH  /api/users/{id}\n```\n#### Delete user\n```\nDELETE /api/users/{id}\n```\n\nStill need more improvement\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\n\n## Donation\n\n[![Donate paypal](https://img.shields.io/badge/Donate-PayPal-green.svg?style=for-the-badge)](https://paypal.me/xannxett?country.x=ID\u0026locale.x=en_US)\n[![Donate saweria](https://img.shields.io/badge/Donate-Saweria-red?style=for-the-badge\u0026link=https%3A%2F%2Fsaweria.co%2Fxiboxann)](https://saweria.co/xiboxann)\n\n## License\n\n![GitHub license](https://img.shields.io/github/license/ikhsan3adi/ci4_online_auction_api?style=for-the-badge)\n\n## Authors\n\n- [@ikhsan3adi](https://www.github.com/ikhsan3adi)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikhsan3adi%2Fauction_app_api_ci4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikhsan3adi%2Fauction_app_api_ci4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikhsan3adi%2Fauction_app_api_ci4/lists"}