api development
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-08-08 21:58:36 +09:00
parent d58302c2c8
commit cc87dcc0fa
157 changed files with 14629 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# 404, если профиля ещё нет — это корректно
curl -sS http://localhost:8080/profiles/v1/profiles/me \
-H "Authorization: Bearer $ACCESS"
# Создание профиля
printf '%s' \
'{"gender":"female","city":"Moscow","languages":["ru","en"],"interests":["music","travel"]}' \
| POST -H "Authorization: Bearer '"$ACCESS"'" \
-H "Content-Type: application/json" \
http://localhost:8080/profiles/v1/profiles
# Теперь должен отдать ваш профиль
curl -sS http://localhost:8080/profiles/v1/profiles/me \
-H "Authorization: Bearer $ACCESS"