Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
change port 3000 to 4000 in api docs and store sample (#11846)
Weronika Witek81525b48b998
diff --git a/api/docs/oauth/index.yml b/api/docs/oauth/index.ymlindex d13546f117..36a9ef3dec 100644--- a/api/docs/oauth/index.yml+++ b/api/docs/oauth/index.yml@@ -2,7 +2,7 @@ openapi: 3.0.3servers:- url: 'https://demo.spreecommerce.org'description: demo- - url: 'http://localhost:3000'+ - url: 'http://localhost:4000'description: localhostinfo:version: 1.0.0diff --git a/api/docs/v2/platform/index.yaml b/api/docs/v2/platform/index.yamlindex 13f74c38c4..81092a35fb 100644--- a/api/docs/v2/platform/index.yaml+++ b/api/docs/v2/platform/index.yaml@@ -17675,7 +17675,7 @@ servers:- url: http://{defaultHost}variables:defaultHost:- default: localhost:3000+ default: localhost:4000tags:- name: Addresses- name: Adjustmentsdiff --git a/api/docs/v2/storefront/index.yaml b/api/docs/v2/storefront/index.yamlindex 6374b429ad..4db0ed4f6e 100644--- a/api/docs/v2/storefront/index.yaml+++ b/api/docs/v2/storefront/index.yaml@@ -2,7 +2,7 @@ openapi: 3.0.3servers:- url: 'https://demo.spreecommerce.org'description: demo- - url: 'http://localhost:3000'+ - url: 'http://localhost:4000'description: localhostinfo:version: 2.0.0@@ -2540,7 +2540,7 @@ components:properties:url:type: string- example: 'http://localhost:3000/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJbWQyWVhKcFlXNTBjeTltWm1sMmRURlNORFpZWjJaSFpYUkdZMjk2WWsxM1RHWXZNVGs1T1RCak5XVmlNamN4TlRnd1pqVTBabUpqTWpCbFkyVXhZMlZpTTJFd05ERTJZemMzT0dKaE5tSTFNREkyT0dKaFpqa3paV1JtWTJWaE16aGxaQVk2QmtWVSIsImV4cCI6IjIwMTgtMDYtMjRUMTM6NTk6NTguOTY5WiIsInB1ciI6ImJsb2Jfa2V5In19--5e9ff358dc747f73754e332678c5762114ac6f3f/ror_jr_spaghetti.jpeg?content_type=image%2Fjpeg&disposition=inline%3B+filename%3D%22ror_jr_spaghetti.jpeg%22%3B+filename%2A%3DUTF-8%27%27ror_jr_spaghetti.jpeg'+ example: 'http://localhost:4000/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaEpJbWQyWVhKcFlXNTBjeTltWm1sMmRURlNORFpZWjJaSFpYUkdZMjk2WWsxM1RHWXZNVGs1T1RCak5XVmlNamN4TlRnd1pqVTBabUpqTWpCbFkyVXhZMlZpTTJFd05ERTJZemMzT0dKaE5tSTFNREkyT0dKaFpqa3paV1JtWTJWaE16aGxaQVk2QmtWVSIsImV4cCI6IjIwMTgtMDYtMjRUMTM6NTk6NTguOTY5WiIsInB1ciI6ImJsb2Jfa2V5In19--5e9ff358dc747f73754e332678c5762114ac6f3f/ror_jr_spaghetti.jpeg?content_type=image%2Fjpeg&disposition=inline%3B+filename%3D%22ror_jr_spaghetti.jpeg%22%3B+filename%2A%3DUTF-8%27%27ror_jr_spaghetti.jpeg'description: Absolute URL of the uploaded image in selected style (width/height)width:type: integer@@ -4812,11 +4812,11 @@ components:total_count: 1total_pages: 1links:- self: 'http://localhost:3000/api/v2/storefront/account/orders'- next: 'http://localhost:3000/api/v2/storefront/account/orders?page=1'- prev: 'http://localhost:3000/api/v2/storefront/account/orders?page=1'- last: 'http://localhost:3000/api/v2/storefront/account/orders?page=1'- first: 'http://localhost:3000/api/v2/storefront/account/orders?page=1'+ self: 'http://localhost:4000/api/v2/storefront/account/orders'+ next: 'http://localhost:4000/api/v2/storefront/account/orders?page=1'+ prev: 'http://localhost:4000/api/v2/storefront/account/orders?page=1'+ last: 'http://localhost:4000/api/v2/storefront/account/orders?page=1'+ first: 'http://localhost:4000/api/v2/storefront/account/orders?page=1'Including all related objects:value:data:@@ -5087,11 +5087,11 @@ components:total_count: 1total_pages: 1links:- self: 'http://localhost:3000/api/v2/storefront/account/orders?include=line_items,variants,variants.images,billing_address,shipping_address,user,payments,shipments,promotions'- next: 'http://localhost:3000/api/v2/storefront/account/orders?include=line_items%2Cvariants%2Cvariants.images%2Cbilling_address%2Cshipping_address%2Cuser%2Cpayments%2Cshipments%2Cpromotions&page=1'- prev: 'http://localhost:3000/api/v2/storefront/account/orders?include=line_items%2Cvariants%2Cvariants.images%2Cbilling_address%2Cshipping_address%2Cuser%2Cpayments%2Cshipments%2Cpromotions&page=1'- last: 'http://localhost:3000/api/v2/storefront/account/orders?include=line_items%2Cvariants%2Cvariants.images%2Cbilling_address%2Cshipping_address%2Cuser%2Cpayments%2Cshipments%2Cpromotions&page=1'- first: 'http://localhost:3000/api/v2/storefront/account/orders?include=line_items%2Cvariants%2Cvariants.images%2Cbilling_address%2Cshipping_address%2Cuser%2Cpayments%2Cshipments%2Cpromotions&page=1'+ self: 'http://localhost:4000/api/v2/storefront/account/orders?include=line_items,variants,variants.images,billing_address,shipping_address,user,payments,shipments,promotions'+ next: 'http://localhost:4000/api/v2/storefront/account/orders?include=line_items%2Cvariants%2Cvariants.images%2Cbilling_address%2Cshipping_address%2Cuser%2Cpayments%2Cshipments%2Cpromotions&page=1'+ prev: 'http://localhost:4000/api/v2/storefront/account/orders?include=line_items%2Cvariants%2Cvariants.images%2Cbilling_address%2Cshipping_address%2Cuser%2Cpayments%2Cshipments%2Cpromotions&page=1'+ last: 'http://localhost:4000/api/v2/storefront/account/orders?include=line_items%2Cvariants%2Cvariants.images%2Cbilling_address%2Cshipping_address%2Cuser%2Cpayments%2Cshipments%2Cpromotions&page=1'+ first: 'http://localhost:4000/api/v2/storefront/account/orders?include=line_items%2Cvariants%2Cvariants.images%2Cbilling_address%2Cshipping_address%2Cuser%2Cpayments%2Cshipments%2Cpromotions&page=1'User:description: 200 Success - Returns the `user` object.content:@@ -5262,11 +5262,11 @@ components:total_count: 3total_pages: 1links:- self: 'http://localhost:3000/api/v2/storefront/account/addresses'- next: 'http://localhost:3000/api/v2/storefront/account/addresses?page=1'- prev: 'http://localhost:3000/api/v2/storefront/account/addresses?page=1'- last: 'http://localhost:3000/api/v2/storefront/account/addresses?page=1'- first: 'http://localhost:3000/api/v2/storefront/account/addresses?page=1'+ self: 'http://localhost:4000/api/v2/storefront/account/addresses'+ next: 'http://localhost:4000/api/v2/storefront/account/addresses?page=1'+ prev: 'http://localhost:4000/api/v2/storefront/account/addresses?page=1'+ last: 'http://localhost:4000/api/v2/storefront/account/addresses?page=1'+ first: 'http://localhost:4000/api/v2/storefront/account/addresses?page=1'Address:description: 200 Success - Returns the `address` object.content:@@ -5710,11 +5710,11 @@ components:total_count: 6total_pages: 1links:- self: 'http://localhost:3000/api/v2/storefront/cms_pages'- next: 'http://localhost:3000/api/v2/storefront/cms_pages?page=1'- prev: 'http://localhost:3000/api/v2/storefront/cms_pages?page=1'- last: 'http://localhost:3000/api/v2/storefront/cms_pages?page=1'- first: 'http://localhost:3000/api/v2/storefront/cms_pages?page=1'+ self: 'http://localhost:4000/api/v2/storefront/cms_pages'+ next: 'http://localhost:4000/api/v2/storefront/cms_pages?page=1'+ prev: 'http://localhost:4000/api/v2/storefront/cms_pages?page=1'+ last: 'http://localhost:4000/api/v2/storefront/cms_pages?page=1'+ first: 'http://localhost:4000/api/v2/storefront/cms_pages?page=1'CMS Pages with Included Sections:value:data:@@ -6209,11 +6209,11 @@ components:total_count: 6total_pages: 1links:- self: 'http://localhost:3000/api/v2/storefront/cms_pages?include=cms_sections'- next: 'http://localhost:3000/api/v2/storefront/cms_pages?include=cms_sections&page=1'- prev: 'http://localhost:3000/api/v2/storefront/cms_pages?include=cms_sections&page=1'- last: 'http://localhost:3000/api/v2/storefront/cms_pages?include=cms_sections&page=1'- first: 'http://localhost:3000/api/v2/storefront/cms_pages?include=cms_sections&page=1'+ self: 'http://localhost:4000/api/v2/storefront/cms_pages?include=cms_sections'+ next: 'http://localhost:4000/api/v2/storefront/cms_pages?include=cms_sections&page=1'+ prev: 'http://localhost:4000/api/v2/storefront/cms_pages?include=cms_sections&page=1'+ last: 'http://localhost:4000/api/v2/storefront/cms_pages?include=cms_sections&page=1'+ first: 'http://localhost:4000/api/v2/storefront/cms_pages?include=cms_sections&page=1'CreditCard:description: 200 Success - Returns the `credit_card` object.content:@@ -6323,11 +6323,11 @@ components:total_count: 2total_pages: 1links:- self: 'http://localhost:3000/api/v2/storefront/account/credit_cards'- next: 'http://localhost:3000/api/v2/storefront/account/credit_cards?page=0'- prev: 'http://localhost:3000/api/v2/storefront/account/credit_cards?page=1'- last: 'http://localhost:3000/api/v2/storefront/account/credit_cards?page=0'- first: 'http://localhost:3000/api/v2/storefront/account/credit_cards?page=1'+ self: 'http://localhost:4000/api/v2/storefront/account/credit_cards'+ next: 'http://localhost:4000/api/v2/storefront/account/credit_cards?page=0'+ prev: 'http://localhost:4000/api/v2/storefront/account/credit_cards?page=1'+ last: 'http://localhost:4000/api/v2/storefront/account/credit_cards?page=0'+ first: 'http://localhost:4000/api/v2/storefront/account/credit_cards?page=1'Product:description: 200 Success - Returns the `product` object.content:@@ -8556,11 +8556,11 @@ components:- value: Zetafilter_param: zetalinks:- self: 'http://localhost:3000/api/v2/storefront/products'- next: 'http://localhost:3000/api/v2/storefront/products?page=2'- prev: 'http://localhost:3000/api/v2/storefront/products?page=1'- last: 'http://localhost:3000/api/v2/storefront/products?page=5'- first: 'http://localhost:3000/api/v2/storefront/products?page=1'+ self: 'http://localhost:4000/api/v2/storefront/products'+ next: 'http://localhost:4000/api/v2/storefront/products?page=2'+ prev: 'http://localhost:4000/api/v2/storefront/products?page=1'+ last: 'http://localhost:4000/api/v2/storefront/products?page=5'+ first: 'http://localhost:4000/api/v2/storefront/products?page=1'Store:description: 200 Success - Returns the `store` object.content:@@ -11916,11 +11916,11 @@ components:total_count: 26total_pages: 2links:- self: 'http://localhost:3000/api/v2/storefront/taxons'- next: 'http://localhost:3000/api/v2/storefront/taxons?page=2'- prev: 'http://localhost:3000/api/v2/storefront/taxons?page=1'- last: 'http://localhost:3000/api/v2/storefront/taxons?page=2'- first: 'http://localhost:3000/api/v2/storefront/taxons?page=1'+ self: 'http://localhost:4000/api/v2/storefront/taxons'+ next: 'http://localhost:4000/api/v2/storefront/taxons?page=2'+ prev: 'http://localhost:4000/api/v2/storefront/taxons?page=1'+ last: 'http://localhost:4000/api/v2/storefront/taxons?page=2'+ first: 'http://localhost:4000/api/v2/storefront/taxons?page=1'Country:description: 200 Success - Returns the `country` object.content:@@ -15222,11 +15222,11 @@ components:total_count: 240total_pages: 1links:- self: 'http://localhost:3000/api/v2/storefront/countries'- next: 'http://localhost:3000/api/v2/storefront/countries?page=1&per_page=240'- prev: 'http://localhost:3000/api/v2/storefront/countries?page=1&per_page=240'- last: 'http://localhost:3000/api/v2/storefront/countries?page=1&per_page=240'- first: 'http://localhost:3000/api/v2/storefront/countries?page=1&per_page=240'+ self: 'http://localhost:4000/api/v2/storefront/countries'+ next: 'http://localhost:4000/api/v2/storefront/countries?page=1&per_page=240'+ prev: 'http://localhost:4000/api/v2/storefront/countries?page=1&per_page=240'+ last: 'http://localhost:4000/api/v2/storefront/countries?page=1&per_page=240'+ first: 'http://localhost:4000/api/v2/storefront/countries?page=1&per_page=240'Shipment:description: '200 Success - Returns an array containing several `shipment` objects, along with the included array containing all available `shipping_rate` and `stock_location` objects. 'content:@@ -16229,11 +16229,11 @@ components:total_count: 2total_pages: 1links:- self: 'http://localhost:3000/api/v2/storefront/menus'- next: 'http://localhost:3000/api/v2/storefront/menus?page=1'- prev: 'http://localhost:3000/api/v2/storefront/menus?page=1'- last: 'http://localhost:3000/api/v2/storefront/menus?page=1'- first: 'http://localhost:3000/api/v2/storefront/menus?page=1'+ self: 'http://localhost:4000/api/v2/storefront/menus'+ next: 'http://localhost:4000/api/v2/storefront/menus?page=1'+ prev: 'http://localhost:4000/api/v2/storefront/menus?page=1'+ last: 'http://localhost:4000/api/v2/storefront/menus?page=1'+ first: 'http://localhost:4000/api/v2/storefront/menus?page=1'Wishlist:description: 200 Success - Returns the `wishlist` object.content:@@ -16371,11 +16371,11 @@ components:total_count: 3total_pages: 1links:- self: 'http://localhost:3000/api/v2/storefront/wishlists?is_variant_included=150'- next: 'http://localhost:3000/api/v2/storefront/wishlists?page=1'- prev: 'http://localhost:3000/api/v2/storefront/wishlists?page=1'- last: 'http://localhost:3000/api/v2/storefront/wishlists?page=1'- first: 'http://localhost:3000/api/v2/storefront/wishlists?page=1'+ self: 'http://localhost:4000/api/v2/storefront/wishlists?is_variant_included=150'+ next: 'http://localhost:4000/api/v2/storefront/wishlists?page=1'+ prev: 'http://localhost:4000/api/v2/storefront/wishlists?page=1'+ last: 'http://localhost:4000/api/v2/storefront/wishlists?page=1'+ first: 'http://localhost:4000/api/v2/storefront/wishlists?page=1'WishedItem:description: 200 Success - Returns an array of `wished_item` objects.content:diff --git a/sample/db/samples/stores.rb b/sample/db/samples/stores.rbindex 533e7dd343..e459689a65 100644--- a/sample/db/samples/stores.rb+++ b/sample/db/samples/stores.rb@@ -3,12 +3,12 @@ default_store.checkout_zone = Spree::Zone.find_by(name: 'North America')default_store.default_country = Spree::Country.find_by(iso: 'US')default_store.supported_currencies = 'CAD,USD'default_store.supported_locales = 'en,fr'-default_store.url = Rails.env.development? ? 'localhost:3000' : 'demo.spreecommerce.org'+default_store.url = Rails.env.development? ? 'localhost:4000' : 'demo.spreecommerce.org'default_store.save!eu_store = Spree::Store.find_or_initialize_by(code: 'eustore')eu_store.name = 'EU Store'-eu_store.url = Rails.env.development? ? 'eu.lvh.me:3000' : 'demo-eu.spreecommerce.org'+eu_store.url = Rails.env.development? ? 'eu.lvh.me:4000' : 'demo-eu.spreecommerce.org'eu_store.mail_from_address = '[email protected]'eu_store.default_currency = 'EUR'eu_store.default_locale = 'de'@@ -19,7 +19,7 @@ eu_store.save!uk_store = Spree::Store.find_or_initialize_by(code: 'ukstore')uk_store.name = 'UK Store'-uk_store.url = Rails.env.development? ? 'uk.lvh.me:3000' : 'demo-uk.spreecommerce.org'+uk_store.url = Rails.env.development? ? 'uk.lvh.me:4000' : 'demo-uk.spreecommerce.org'uk_store.mail_from_address = '[email protected]'uk_store.default_currency = 'GBP'uk_store.default_locale = 'en'