Backoffice maintains a product with code as Spring, and the description field is maintained as follows:

Use this API, in response, the description field on filling in the Backoffice see value: jerrywang. Club: 9002 / rest/v2 / ele…

However, when testing with another API that queries based on Product Code, the Description field is found to be empty in the response field. Jerrywang. Club: 9002 / rest/v2 / ele…

In the definition of Swagger, the description field is defined, and we expect the description field to be normally filled in the response returned by the API that queries through product Code.

I would now like to look at the source code for the Web Service implementation to see where the problem lies.

It turns out that this is actually a language problem. Add a parameter called “lang” to postman’s request, and the value equals “en”, and you’re done

More of Jerry’s original articles can be found in “Wang Zixi” :