Rahul Singh acd092fc90
Added GTIN and Condition to variant for structured data use (#6097)
* Adding Conditions and GTIN to products and variant

Summary

This commit adds GTIN and Conditions to products to allow a
more efficient integration of structured data and the related
services such as Google Shopping or Facebook Marketplaces.

Changes

- Add Conditions and GTIN to products and variants
- Added the fields to the Admin Interface
- Add the values to API
- Provides samples for GTIN (format EAN 8) and Condition (New) to all
sample products.
- Added Testing of the related fields
- feat(i18n): Differentiate GTIN and Condition labels for product and
variant forms.

* Update solidus-api.oas.yml

Reflect the changes to the conditions values.

---------

Co-authored-by: Thomas von Deyen <thomas@vondeyen.com>
2025-02-19 12:18:34 +01:00
..

solidus_api

API contains the controllers and Jbuilder views implementing the REST API of Solidus.

Testing

Run the API tests:

bundle exec rspec

Documentation

The API documentation is in the openapi directory. It follows the OpenAPI specification and it is hosted on Stoplight Docs.

If you want to contribute, you can use Stoplight Studio. Simply follow these steps:

  1. Create a new Stoplight Studio project
  2. Copy-paste the content of openapi/solidus-api.oas.yml into your project
  3. Edit the endpoints and models as needed
  4. Copy-paste the result back into openapi/solidus-api.oas.yml
  5. Open a PR!

Note: Only use embedded models in Stoplight Studio, as Stoplight Docs is not compatible with externally-defined models!

CircleCI automatically syncs our Git repo with Stoplight Docs when a PR is merged, and automatically publishes a new version on Docs when a new Solidus version is released.

  • solidus-sdk: created by Joel Saupe at Deseret Book, this is a JS SDK that allows you to use the Solidus API. It even supports plug-ins, so you can easily extend it with the endpoints provided by your Solidus extensions!