What's the difference between “extension_attributes” and “custom_attributes” in the products...
I have trouble understanding this fallacy: "If A, then B. Therefore if not-B, then not-A."
Why would space fleets be aligned?
Is there a defined priority for pattern matching?
What is a good reason for every spaceship to carry a weapon on board?
Do "fields" always combine by addition?
Eww, those bytes are gross
Is there any risk in sharing info about technologies and products we use with a supplier?
Identify KNO3 and KH2PO4 at home
Non-Cancer terminal illness that can affect young (age 10-13) girls?
Cat is tipping over bed-side lamps during the night
Looking for a specific 6502 Assembler
Has any human ever had the choice to leave Earth permanently?
What would you call a real market that is close to perfect competition?
Can I announce prefix 161.117.25.0/24 even though I don't have all of /24 IPs?
How should I handle players who ignore the session zero agreement?
How does one write from a minority culture? A question on cultural references
Which communication protocol is used in AdLib sound card?
Why are the books in the Game of Thrones citadel library shelved spine inwards?
GRASS not working with QGIS 3.6
What is the difference between rolling more dice versus fewer dice?
Am I a Rude Number?
TikZ graph edges not drawn nicely
False written accusations not made public - is there law to cover this?
Why zero tolerance on nudity in space?
What's the difference between “extension_attributes” and “custom_attributes” in the products API?
Differences between Magento 1 and Magento 2 REST API?Localization for Cart/Quote APIs doesn't work properly in magento 2base_discount_tax_compensation_amount field in the Order, Invoice, and Credit Memo objects of the Rest API in Magento 2creating categories and subcategories using the api catalogCategoryRepositoryV1Magento2 REST API PRODUCTS “category_links” updatesHow to show the all products by using REST API in magento1.9?Retrieve all the products attribute using rest apiAdd Configurable products using REST APIMagento 2: Is there a way to return custom json response from REST API without building a data interface?Magento2 REST API and mode
I'm looking at the API in magento 2.3 and I'm trying to figure out how they works.
I called a GET on /rest/it/V1/products/:sku and I got a JSON (stripped out for clarity)
{
"extension_attributes": {
"marketing1_title": "This is the marketing title 1",
},
"custom_attributes": [
{
"attribute_code": "marketing1_title",
"value": "This is the marketing title 1"
}
]
}
This product was created in the backend (I'm not familiar at all with it, I only work with the API) so I don't understand if it's a misconfiguration in the backend or if it's supposed to work this way.
Mainly I can't get the difference between "extension_attributes" and "custom_attributes" and I can't find any docs about it.
Can you help me in any way?
rest-api
New contributor
add a comment |
I'm looking at the API in magento 2.3 and I'm trying to figure out how they works.
I called a GET on /rest/it/V1/products/:sku and I got a JSON (stripped out for clarity)
{
"extension_attributes": {
"marketing1_title": "This is the marketing title 1",
},
"custom_attributes": [
{
"attribute_code": "marketing1_title",
"value": "This is the marketing title 1"
}
]
}
This product was created in the backend (I'm not familiar at all with it, I only work with the API) so I don't understand if it's a misconfiguration in the backend or if it's supposed to work this way.
Mainly I can't get the difference between "extension_attributes" and "custom_attributes" and I can't find any docs about it.
Can you help me in any way?
rest-api
New contributor
add a comment |
I'm looking at the API in magento 2.3 and I'm trying to figure out how they works.
I called a GET on /rest/it/V1/products/:sku and I got a JSON (stripped out for clarity)
{
"extension_attributes": {
"marketing1_title": "This is the marketing title 1",
},
"custom_attributes": [
{
"attribute_code": "marketing1_title",
"value": "This is the marketing title 1"
}
]
}
This product was created in the backend (I'm not familiar at all with it, I only work with the API) so I don't understand if it's a misconfiguration in the backend or if it's supposed to work this way.
Mainly I can't get the difference between "extension_attributes" and "custom_attributes" and I can't find any docs about it.
Can you help me in any way?
rest-api
New contributor
I'm looking at the API in magento 2.3 and I'm trying to figure out how they works.
I called a GET on /rest/it/V1/products/:sku and I got a JSON (stripped out for clarity)
{
"extension_attributes": {
"marketing1_title": "This is the marketing title 1",
},
"custom_attributes": [
{
"attribute_code": "marketing1_title",
"value": "This is the marketing title 1"
}
]
}
This product was created in the backend (I'm not familiar at all with it, I only work with the API) so I don't understand if it's a misconfiguration in the backend or if it's supposed to work this way.
Mainly I can't get the difference between "extension_attributes" and "custom_attributes" and I can't find any docs about it.
Can you help me in any way?
rest-api
rest-api
New contributor
New contributor
New contributor
asked 17 mins ago
Federico GranataFederico Granata
11
11
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Federico Granata is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263625%2fwhats-the-difference-between-extension-attributes-and-custom-attributes-in%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Federico Granata is a new contributor. Be nice, and check out our Code of Conduct.
Federico Granata is a new contributor. Be nice, and check out our Code of Conduct.
Federico Granata is a new contributor. Be nice, and check out our Code of Conduct.
Federico Granata is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f263625%2fwhats-the-difference-between-extension-attributes-and-custom-attributes-in%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown