This repository has been archived on 2026-04-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Inventory_backend/test-api-simple.sh

17 lines
439 B
Bash
Executable File

#!/bin/bash
echo "🔍 Test de l'API backend..."
# Test de base
echo "📡 Test GET /api/sites"
curl -X GET http://localhost:3000/api/sites -H "Content-Type: application/json"
echo -e "\n\n📡 Test POST /api/sites"
curl -X POST http://localhost:3000/api/sites \
-H "Content-Type: application/json" \
-d '{
"name": "Site de test",
"description": "Site de test pour vérification API"
}'
echo -e "\n\n✅ Tests terminés"