1.36.0 • Published 2 months ago

send-http-axios-doc v1.36.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

Send-http-axios-doc

Send-http-axios-doc is a module for API documentation. It provides functionality to download, import, and generate endpoints for saving API data.

Installation

To use Send-http-axios-doc, follow these steps:

Install the module using npm:

npm install send-http-axios-doc

Usage

Follow the steps below to use Send-http-axios-doc in your API application:

  1. Import the module in your API application:

import { createJsonApi, saveQueryBack } from "send-http-axios-doc";

  1. Add the "send" folder to your static files:

app.use(express.static('send'));

  1. Create the createJsonApi function and pass the app and port:

createJsonApi(app, port);

  1. Create the endpoint to be able to save the objects that will be sent in a request. Remember that every time an object is saved in a specific request, you will have to reload the page.

app.use("/saveQuery",saveQueryBack)

Make sure to replace app with the actual instance of your Express application and port with the desired port number for your API to run on.

Example Here's an example of how you can use Send-http-axios-doc in your API application:

import express from "express";\ import { createJsonApi, saveQueryBack } from "send-http-axios-doc";

const app = express(); \ const port = 3000;

app.use(express.static('send'));\ app.use("/saveQuery", saveQueryBack);

createJsonApi(app, port);

app.listen(port, () => { console.log(API server is running on port ${port}); });

Support For any issues or questions, please open an issue on the GitHub repository.

License This project is licensed under the ISC License.

1.36.0

2 months ago

1.34.0

3 months ago

1.35.0

3 months ago

1.32.0

3 months ago

1.33.0

3 months ago

1.30.0

3 months ago

1.31.0

3 months ago

1.29.0

3 months ago

1.28.0

3 months ago

1.27.0

3 months ago

1.26.0

3 months ago

1.25.0

10 months ago

1.24.0

10 months ago

1.23.0

10 months ago

1.22.0

10 months ago

1.21.0

10 months ago

1.20.0

10 months ago

1.19.0

10 months ago

1.18.0

10 months ago

1.17.0

10 months ago

1.16.0

10 months ago

1.15.0

10 months ago

1.14.0

10 months ago

1.13.0

10 months ago

1.12.0

10 months ago

1.11.0

10 months ago

1.10.0

10 months ago

1.9.0

10 months ago

1.8.0

10 months ago

1.7.0

10 months ago

1.6.0

10 months ago

1.5.0

10 months ago

1.4.0

10 months ago

1.3.0

10 months ago

1.2.0

10 months ago

1.0.0

10 months ago