#!/bin/bash # Test POST /auth/register/am (ticket #90) # Usage: ./scripts/test-register-am.sh [BASE_URL] # Exemple: ./scripts/test-register-am.sh https://app.ptits-pas.fr/api/v1 # ./scripts/test-register-am.sh http://localhost:3000/api/v1 BASE_URL="${1:-http://localhost:3000/api/v1}" echo "Testing POST $BASE_URL/auth/register/am" echo "---" curl -s -w "\n\nHTTP %{http_code}\n" -X POST "$BASE_URL/auth/register/am" \ -H "Content-Type: application/json" \ -d '{ "email": "marie.dupont.test@ptits-pas.fr", "prenom": "Marie", "nom": "DUPONT", "telephone": "0612345678", "adresse": "1 rue Test", "code_postal": "75001", "ville": "Paris", "consentement_photo": true, "nir": "123456789012345", "numero_agrement": "AGR-2024-001", "capacite_accueil": 4, "acceptation_cgu": true, "acceptation_privacy": true }'