Skip to content

Releases: aliosmanyuksel/bugloosLaravel

Release v1.0.2: API Fetch Optimization and Interface Compatibility Fix

30 Jul 22:30
c76e24b
Compare
Choose a tag to compare

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:

  1. 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.

  2. Interface Compatibility Issue Resolved: We have fixed a major bug related to the return type of the fetch method in our APIService class and APIServiceInterface. 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

30 Jul 11:00
6d28eda
Compare
Choose a tag to compare

Fixed some bugs and improved code's documentation.

First Release

30 Jul 01:45
2de83bd
Compare
Choose a tag to compare

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

  1. Clone the repository: git clone https://github.com/aliosmanyuksel/bugloosLaravel.git
  2. Navigate to the project directory: cd bugloosLaravel
  3. Install Composer dependencies: composer install
  4. Create a .env file by copying the example file: cp .env.example .env
  5. Add to .env file this lines.
    API_URL=https://aliosmanyuksel.com.tr/wp-content/uploads/products.json CONFIG_PATH=/products.yml
  6. Generate an app key: php artisan key:generate
  7. Set up your database and fill in the database information in the .env file
  8. Migrate the database: php artisan migrate
  9. Run the server: php artisan serve
  10. 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 API
  • GET /products: Retrieves all stored products in the format specified by the Accept header of the request