demo-marco

Détails du dépôt
| Dépôt #1050407427 | |
|---|---|
| Auteur | Lorenzo Rottigni |
| Créé le | 2025-09-04 |
| Mis à jour le | 2025-09-04 |
| Dernier push | 2025-09-04 |
| Taille | 13 MB |
| Langage principal | JavaScript |
| Nombre d’étoiles | 0 |
| Branche par défaut | main |
Compétences du dépôt
README.md
Simple Token-Protected API
A lightweight Express.js API with a fixed bearer token for authentication, designed to be deployed on Render.com.
Endpoints
| Method | Endpoint | Auth Required | Description |
|---|---|---|---|
| GET | /ping | ❌ | Health check |
| GET | /carlist | ✅ | Returns a list of cars |
| POST | /submit | ✅ | Accepts and returns JSON |
| GET | /status | ❌ | Returns API status |
| POST | /echo | ✅ | Echoes back posted JSON |
Authentication
Use a fixed bearer token: