This commit is contained in:
7
mobile_api_example.sh
Normal file
7
mobile_api_example.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Пример запроса к мобильному API календарного сервиса
|
||||
curl -v -X POST http://localhost:8004/api/v1/calendar/entries/mobile \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $(cat auth_token.txt)" \
|
||||
-d '{"date": "2025-09-26", "type": "MENSTRUATION", "flow_intensity": 3, "symptoms": ["CRAMPS", "HEADACHE"], "mood": "NORMAL", "notes": "Тестовая запись"}'
|
||||
Reference in New Issue
Block a user