J
J
jtag2018-09-15 12:36:22
Node.js
jtag, 2018-09-15 12:36:22

How to idle requests with swagger?

there is a swagger file. I need to send information myself when an event happens. those. it turns out I have to build queries? It turns out I am a client ?, which sends requests to the server? if so, how to generate them via swagger?, node.js platform

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2018-09-15
@inoise

Swagger is a tool for designing an interaction protocol (API). It does not implement any client or server logic. Just an agreement that is already under development. What is the client, what is the server must be implemented. If you have built your API based on Swagger, then you are programming both parts. If you were given a Swagger specification for a ready-made API, then your goal is to write a client.
To help, Swagger shows which queries it builds in sandbox mode.

U
unchase, 2019-06-06
@unchase

You can use the Unchase OpenAPI (Swagger) Connected Service extension for Visual Studio 2017/2019 to automatically generate C# or TypeScript code for the client from the specification file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question