How to find valid values for fields in the REST API The Next CEO of Stack OverflowGetting...

Is HostGator storing my password in plaintext?

How to use tikz in fbox?

Term for the "extreme-extension" version of a straw man fallacy?

What is the point of a new vote on May's deal when the indicative votes suggest she will not win?

How to start emacs in "nothing" mode (`fundamental-mode`)

Can a caster that cast Polymorph on themselves stop concentrating at any point even if their Int is low?

Go Pregnant or Go Home

Why were Madagascar and New Zealand discovered so late?

What does "Its cash flow is deeply negative" mean?

Only print output after finding pattern

What does this shorthand mean?

Should I tutor a student who I know has cheated on their homework?

Robert Sheckley short story about vacation spots being overwhelmed

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Are there languages with no euphemisms?

Why does C# sound extremely flat when saxophone is tuned to G?

Why didn't Khan get resurrected in the Genesis Explosion?

Anatomically Correct Mesopelagic Aves

Why doesn't a table tennis ball float on the surface? How do we calculate buoyancy here?

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

How to make a software documentation "officially" citable?

How to make a variable always equal to the result of some calculations?

Visit to the USA with ESTA approved before trip to Iran

Why here is plural "We went to the movies last night."



How to find valid values for fields in the REST API



The Next CEO of Stack OverflowGetting started with Magento REST APIREST API creating more than one media entry for productIs there a Magento API reference?What's the difference between _create() and _multiCreate() in the REST API methods?Passing Array in REST Api Magento2 (Post Method)Magento REST API Example ErrorsMagento 2 Rest API - how do I add values to dropdown product attributeWhere to find a solid Magento 2 SOAP-API Documentationwhere to find Magento 2 API docs?












0















I have been searching for documentation regarding the REST API. All I have found is the Swagger page. It gives a good overview but it doesn't provide any information about valid values for individual fields.

From what I have found there is no such documentation available.



How can I find out what values are valid for all different fields in the API?



Example:

For a POST to /V1/coupons (salesRuleCouponRepositoryV1), how do I find out what the valid values for "type" are and what they mean?










share|improve this question

























  • hello! did you find any response to this? thanks

    – mxb
    Nov 28 '17 at 12:25
















0















I have been searching for documentation regarding the REST API. All I have found is the Swagger page. It gives a good overview but it doesn't provide any information about valid values for individual fields.

From what I have found there is no such documentation available.



How can I find out what values are valid for all different fields in the API?



Example:

For a POST to /V1/coupons (salesRuleCouponRepositoryV1), how do I find out what the valid values for "type" are and what they mean?










share|improve this question

























  • hello! did you find any response to this? thanks

    – mxb
    Nov 28 '17 at 12:25














0












0








0








I have been searching for documentation regarding the REST API. All I have found is the Swagger page. It gives a good overview but it doesn't provide any information about valid values for individual fields.

From what I have found there is no such documentation available.



How can I find out what values are valid for all different fields in the API?



Example:

For a POST to /V1/coupons (salesRuleCouponRepositoryV1), how do I find out what the valid values for "type" are and what they mean?










share|improve this question
















I have been searching for documentation regarding the REST API. All I have found is the Swagger page. It gives a good overview but it doesn't provide any information about valid values for individual fields.

From what I have found there is no such documentation available.



How can I find out what values are valid for all different fields in the API?



Example:

For a POST to /V1/coupons (salesRuleCouponRepositoryV1), how do I find out what the valid values for "type" are and what they mean?







api rest documentation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 52 mins ago









Shoaib Munir

2,2991829




2,2991829










asked Aug 16 '17 at 12:34









Björn JanssonBjörn Jansson

1




1













  • hello! did you find any response to this? thanks

    – mxb
    Nov 28 '17 at 12:25



















  • hello! did you find any response to this? thanks

    – mxb
    Nov 28 '17 at 12:25

















hello! did you find any response to this? thanks

– mxb
Nov 28 '17 at 12:25





hello! did you find any response to this? thanks

– mxb
Nov 28 '17 at 12:25










1 Answer
1






active

oldest

votes


















0














You can get it from here



REST APIs



You can check salesRuleCouponRepositoryV1 all actions and valid values from here.






share|improve this answer


























  • Thanks. I have seen the Swagger page as I wrote in my question. But what I can't find is the valid values for each field. If i look at "POST salesRuleCouponRepositoryV1" it says that the field "type" is a numeric field. But how do I know what values are valid? Is it 1, 67 or 39774? And what do each number mean?

    – Björn
    Aug 17 '17 at 6:54











  • Have you study post example from given example?

    – Suresh Chikani
    Aug 17 '17 at 6:56











  • Yes, I have. I can't find any information about each individual field, more than the data type.

    – Björn
    Aug 17 '17 at 7:39












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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f189322%2fhow-to-find-valid-values-for-fields-in-the-rest-api%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You can get it from here



REST APIs



You can check salesRuleCouponRepositoryV1 all actions and valid values from here.






share|improve this answer


























  • Thanks. I have seen the Swagger page as I wrote in my question. But what I can't find is the valid values for each field. If i look at "POST salesRuleCouponRepositoryV1" it says that the field "type" is a numeric field. But how do I know what values are valid? Is it 1, 67 or 39774? And what do each number mean?

    – Björn
    Aug 17 '17 at 6:54











  • Have you study post example from given example?

    – Suresh Chikani
    Aug 17 '17 at 6:56











  • Yes, I have. I can't find any information about each individual field, more than the data type.

    – Björn
    Aug 17 '17 at 7:39
















0














You can get it from here



REST APIs



You can check salesRuleCouponRepositoryV1 all actions and valid values from here.






share|improve this answer


























  • Thanks. I have seen the Swagger page as I wrote in my question. But what I can't find is the valid values for each field. If i look at "POST salesRuleCouponRepositoryV1" it says that the field "type" is a numeric field. But how do I know what values are valid? Is it 1, 67 or 39774? And what do each number mean?

    – Björn
    Aug 17 '17 at 6:54











  • Have you study post example from given example?

    – Suresh Chikani
    Aug 17 '17 at 6:56











  • Yes, I have. I can't find any information about each individual field, more than the data type.

    – Björn
    Aug 17 '17 at 7:39














0












0








0







You can get it from here



REST APIs



You can check salesRuleCouponRepositoryV1 all actions and valid values from here.






share|improve this answer















You can get it from here



REST APIs



You can check salesRuleCouponRepositoryV1 all actions and valid values from here.







share|improve this answer














share|improve this answer



share|improve this answer








edited Aug 17 '17 at 6:42

























answered Aug 17 '17 at 6:36









Suresh ChikaniSuresh Chikani

10.4k53371




10.4k53371













  • Thanks. I have seen the Swagger page as I wrote in my question. But what I can't find is the valid values for each field. If i look at "POST salesRuleCouponRepositoryV1" it says that the field "type" is a numeric field. But how do I know what values are valid? Is it 1, 67 or 39774? And what do each number mean?

    – Björn
    Aug 17 '17 at 6:54











  • Have you study post example from given example?

    – Suresh Chikani
    Aug 17 '17 at 6:56











  • Yes, I have. I can't find any information about each individual field, more than the data type.

    – Björn
    Aug 17 '17 at 7:39



















  • Thanks. I have seen the Swagger page as I wrote in my question. But what I can't find is the valid values for each field. If i look at "POST salesRuleCouponRepositoryV1" it says that the field "type" is a numeric field. But how do I know what values are valid? Is it 1, 67 or 39774? And what do each number mean?

    – Björn
    Aug 17 '17 at 6:54











  • Have you study post example from given example?

    – Suresh Chikani
    Aug 17 '17 at 6:56











  • Yes, I have. I can't find any information about each individual field, more than the data type.

    – Björn
    Aug 17 '17 at 7:39

















Thanks. I have seen the Swagger page as I wrote in my question. But what I can't find is the valid values for each field. If i look at "POST salesRuleCouponRepositoryV1" it says that the field "type" is a numeric field. But how do I know what values are valid? Is it 1, 67 or 39774? And what do each number mean?

– Björn
Aug 17 '17 at 6:54





Thanks. I have seen the Swagger page as I wrote in my question. But what I can't find is the valid values for each field. If i look at "POST salesRuleCouponRepositoryV1" it says that the field "type" is a numeric field. But how do I know what values are valid? Is it 1, 67 or 39774? And what do each number mean?

– Björn
Aug 17 '17 at 6:54













Have you study post example from given example?

– Suresh Chikani
Aug 17 '17 at 6:56





Have you study post example from given example?

– Suresh Chikani
Aug 17 '17 at 6:56













Yes, I have. I can't find any information about each individual field, more than the data type.

– Björn
Aug 17 '17 at 7:39





Yes, I have. I can't find any information about each individual field, more than the data type.

– Björn
Aug 17 '17 at 7:39


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f189322%2fhow-to-find-valid-values-for-fields-in-the-rest-api%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

“%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

夢乃愛華...