You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there more detailed documentation about HTTPModule? I absolutely do not understand how to make a post request
Why is url, data and config required in brackets if url and data are in config?
the referenced doc page states "Axios is richly featured HTTP client package that is widely used. Nest wraps Axios and exposes it via the built-in HttpModule. The HttpModule exports the HttpService class, which exposes Axios-based methods to perform HTTP requests."
This means that the HttpService class has the axios library methods that have the same signature. So as showed in the docs, you can just inject the HttpService and call axios methods on it. As this is a wrapper (as many components of nest are), the docs don't copy the full documentation of the wrapped library, but just a simple example leaving the rest of the docs to be read on the wrapped library's docs (axios in this case)
Is there an existing issue for this?
Current behavior
Is there more detailed documentation about HTTPModule? I absolutely do not understand how to make a post request
Why is url, data and config required in brackets if url and data are in config?
https://docs.nestjs.com/techniques/http-module
The standard Axios just doesn't work...
Node-fetch is still experimental and constantly bugs...
In short - I'm building a service that makes a request to someone else's api and writes the received data to the database
Minimum reproduction code
https://docs.nestjs.com/techniques/http-module
Steps to reproduce
Expected behavior
Full documentation with an example of using all query methods
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
9.2.0
Packages versions
Node.js version
18.12.1
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: