Bruno - Remplacement open source de Postman
Bruno :
- est libre de droit
- utilise des formats standards de données
- fonctionne 100% hors ligne
- compatible avec git
Installation de Bruno
Téléchargez Bruno ici : Page de téléchargement
Utilisation de Bruno
1- Créer un dossier bruno
à la racine de votre projet.
2- Ajouter tous les appels à votre API dans le dossier bruno
. (Soit par l'IDE, soit en créant des fichiers .bru
)
Exemple de fichier .bru
pour un GET
bruno/hotel/Get All.bru
meta {
name: Get all Reservations
type: http
seq: 2
}
get {
url: http://localhost:3000/api/reservations/all
body: none
auth: none
}
Exemple de fichier .bru
pour un POST
bruno/hotel/Ajout Réservation.bru
meta {
name: Ajout Réservation
type: http
seq: 1
}
post {
url: http://localhost:3000/api/reservations/add
body: json
auth: none
}
body:json {
{
"reservation":
{
"id": "9",
"nom": "Kamala Harris",
"courriel": "kamala@profinfo.ca",
"dateDebut": "2025-01-06",
"dateFin": "2025-01-08",
"typeChambre": "Deluxe",
"prixParNuit": 150,
"created": "2025-08-11"
}
}
}