Releases: aliosmanyuksel/bugloosLaravel
Release v1.0.2: API Fetch Optimization and Interface Compatibility Fix
We are excited to present version v1.0.2 of our project! This release comes with important improvements and a critical bug fix that enhance the efficiency and reliability of our system.
Here's what's new in v1.0.2:
-
Single HTTP Request for Data Fetching: We've optimized our API fetch method to retrieve both the data and the content type in a single HTTP request instead of two. This not only speeds up the process but also reduces server load, making our application more efficient and resilient.
-
Interface Compatibility Issue Resolved: We have fixed a major bug related to the return type of the
fetch
method in ourAPIService
class andAPIServiceInterface
. The consistency between the interface and its implementation has been ensured, thus eliminating the PHP error that was previously caused by this discrepancy.
The updates in v1.0.2 make our application more reliable and high-performing. We value your feedback, so please don't hesitate to reach out with any comments, questions, or concerns. We hope you enjoy this new and improved version of our project!
v1.0.1
Fixed some bugs and improved code's documentation.
First Release
Laravel Product API
This is a Laravel-based API that fetches, parses, maps, and stores product data from an external API into a local database. The data can then be retrieved in either JSON or XML format.
Features
- Fetches data from an external API
- Parses the fetched data based on its content type (XML or JSON)
- Maps the parsed data to match the fields of the local database
- Stores the mapped data in the database
- Retrieves all stored products in either JSON or XML format
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
- PHP >= 7.4
- Composer
- Laravel >= 8.x
- A SQL database
Installing
- Clone the repository:
git clone https://github.com/aliosmanyuksel/bugloosLaravel.git
- Navigate to the project directory:
cd bugloosLaravel
- Install Composer dependencies:
composer install
- Create a
.env
file by copying the example file:cp .env.example .env
- Add to .env file this lines.
API_URL=https://aliosmanyuksel.com.tr/wp-content/uploads/products.json CONFIG_PATH=/products.yml
- Generate an app key:
php artisan key:generate
- Set up your database and fill in the database information in the
.env
file - Migrate the database:
php artisan migrate
- Run the server:
php artisan serve
- The application should now be running at
http://localhost:8000
Usage
The application currently supports two endpoints:
GET /fetch
: Fetches, parses, maps, and stores product data from the external APIGET /products
: Retrieves all stored products in the format specified by theAccept
header of the request