-
Hi, there
How should I modify the code above to directly submit the json file to the server? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I'm not sure I understand the question. The json file you mention contains the OpenAPI specification of the API, its endpoints, parameters, and response messages. The Java example is only that, an example, on how it would look like if you would talk to this API using Java, here with automatically generated client code based on the specification. You can however use pretty much any language you want, as there are OpenAPI code generators for a large range of languages. Just use the code generator to generate client code based on the specification in the json and use that code to communicate with the server. |
Beta Was this translation helpful? Give feedback.
I'm not sure I understand the question. The json file you mention contains the OpenAPI specification of the API, its endpoints, parameters, and response messages. The Java example is only that, an example, on how it would look like if you would talk to this API using Java, here with automatically generated client code based on the specification. You can however use pretty much any language you want, as there are OpenAPI code generators for a large range of languages. Just use the code generator to generate client code based on the specification in the json and use that code to communicate with the server.