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

How seriously should I take size and weight limits of hand luggage?

Can a virus destroy the BIOS of a modern computer?

Can I hook these wires up to find the connection to a dead outlet?

How to keep a dark protagonist who wants to keep his humanity dark?

How does a dynamic QR code work?

My singleton can be called multiple times

How to detect integer overflow in C?

Can a PhD from a non-TU9 German university become a professor in a TU9 university?

How to travel Japan while expressing milk?

Is it a bad idea to plug the other end of ESD strap to wall ground?

How to show a landlord what we have in savings?

Can someone clarify Hamming's notion of important problems in relation to modern academia?

Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact

Gauss' Posthumous Publications?

Does int main() need a declaration on C++?

Scale won't save

Incomplete cube

How to compactly explain secondary and tertiary characters without resorting to stereotypes?

Spam email "via" my domain, but SPF record exists

Is there any pdf viewer with dark mode?

Can you teleport closer to a creature you are Frightened of?

A hang glider, sudden unexpected lift to 25,000 feet altitude, what could do this?

What steps are necessary to read a Modern SSD in Medieval Europe?

What is the difference between 'contrib' and 'non-free' packages repositories?



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



The Next CEO of Stack OverflowCreate Custom Rest Api in Magento2 and solution for “InvalidArgumentException” errorMagento2 add custom address attribute{“message”:“%fieldName is a required field.”,“parameters”:{“fieldName”:“criteria”}}Magento 2 - Best approach for retrieving product data - REST API or Custom Endpoint?Magento2 customer register event for rest callMagento2: REST API GET all OrdersAPI to add an option gives me an error: {“message”:“%fieldName is a required field.”,“parameters”:{“fieldName”:“option”}}Consumer is not authorized to access %resources Magento_Sales::salesWhat is the correct way to create Mock input interface in Web-Api functional test?Magento 2.3 Can't view module's front end page output?












0















Calling this http://localhost/XXX/rest/V1/XXX/uid/2



and My Model Code is



/**
* Returns greeting message to user
*
* @api
* @param int $uid User Id.
* @return string Greeting message with users name.
*/

public function test($uid)
{
return $uid;
}


and My Interface like



/**
* Returns greeting message to user
*
* @api
* @param int $uid.
* @return string Greeting message with users name.
*/
public function test($uid);


In webApi.xml



 <route url="/V1/XXX/uid/:id" method="GET">
<service class="XXXXXXApiXApiInterface" method="XXX"/>
<resources>
<resource ref="anonymous"/>
</resources>
</route>









share|improve this question



























    0















    Calling this http://localhost/XXX/rest/V1/XXX/uid/2



    and My Model Code is



    /**
    * Returns greeting message to user
    *
    * @api
    * @param int $uid User Id.
    * @return string Greeting message with users name.
    */

    public function test($uid)
    {
    return $uid;
    }


    and My Interface like



    /**
    * Returns greeting message to user
    *
    * @api
    * @param int $uid.
    * @return string Greeting message with users name.
    */
    public function test($uid);


    In webApi.xml



     <route url="/V1/XXX/uid/:id" method="GET">
    <service class="XXXXXXApiXApiInterface" method="XXX"/>
    <resources>
    <resource ref="anonymous"/>
    </resources>
    </route>









    share|improve this question

























      0












      0








      0








      Calling this http://localhost/XXX/rest/V1/XXX/uid/2



      and My Model Code is



      /**
      * Returns greeting message to user
      *
      * @api
      * @param int $uid User Id.
      * @return string Greeting message with users name.
      */

      public function test($uid)
      {
      return $uid;
      }


      and My Interface like



      /**
      * Returns greeting message to user
      *
      * @api
      * @param int $uid.
      * @return string Greeting message with users name.
      */
      public function test($uid);


      In webApi.xml



       <route url="/V1/XXX/uid/:id" method="GET">
      <service class="XXXXXXApiXApiInterface" method="XXX"/>
      <resources>
      <resource ref="anonymous"/>
      </resources>
      </route>









      share|improve this question














      Calling this http://localhost/XXX/rest/V1/XXX/uid/2



      and My Model Code is



      /**
      * Returns greeting message to user
      *
      * @api
      * @param int $uid User Id.
      * @return string Greeting message with users name.
      */

      public function test($uid)
      {
      return $uid;
      }


      and My Interface like



      /**
      * Returns greeting message to user
      *
      * @api
      * @param int $uid.
      * @return string Greeting message with users name.
      */
      public function test($uid);


      In webApi.xml



       <route url="/V1/XXX/uid/:id" method="GET">
      <service class="XXXXXXApiXApiInterface" method="XXX"/>
      <resources>
      <resource ref="anonymous"/>
      </resources>
      </route>






      magento2 rest-api






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 10 mins ago









      Purnendar GattuPurnendar Gattu

      636




      636






















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


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268353%2ffieldname-is-a-required-field-in-magento2-rest-api-call-for-get-method-type%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
















          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%2f268353%2ffieldname-is-a-required-field-in-magento2-rest-api-call-for-get-method-type%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

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

          夢乃愛華...