Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/titobrian97/Prueba-tecnica-ts-node---gestion-de-csv/llms.txt

Use this file to discover all available pages before exploring further.

The CSV Manager REST API is a lightweight Express 5 service that lets you upload a CSV file and immediately query its contents. It exposes two endpoints: one for uploading a CSV file and one for searching the parsed data. All responses are returned as JSON, and no authentication is required to use any endpoint.

Base URL

http://localhost:3000
The server listens on port 3000 by default. You can override this by setting the PORT environment variable before starting the server:
PORT=8080 ts-node server.ts

Authentication

No authentication is required. The API is open by default — any client can call either endpoint without credentials or tokens.

CORS

Cross-Origin Resource Sharing (CORS) is enabled for all origins. You can call this API directly from a browser application on any domain without additional configuration.

Content Types

DirectionContent-Type
Upload request bodymultipart/form-data
Search requestNo body — uses query parameter q
All responsesapplication/json

Endpoints

MethodPathDescription
POST/api/filesUpload a CSV file and parse it into memory
GET/api/usersSearch the parsed CSV data by query string

POST /api/files

Upload a CSV file via multipart form-data. The parsed rows are stored in memory and ready to search immediately.

GET /api/users

Search the in-memory CSV data with a case-insensitive substring query across all column values.
Data is stored in memory on the server. It resets to an empty state whenever the server process restarts. Additionally, uploading a new CSV file via POST /api/files replaces all existing data — there is no way to append rows to a previous upload.

Build docs developers (and LLMs) love