Files
gobeyhan/client.http
Beyhan Oğur f34e54c5a5 first commit
2026-04-26 21:43:40 +03:00

60 lines
1.3 KiB
HTTP

@baseUrl = http://localhost:8080/api/v1
@contentType = application/json
@token = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIyIiwiZW1haWwiOiJiZXloYW5AYmV5aGFuLmRldiIsImlzcyI6ImdhdXRoLWNlbnRyYWwiLCJleHAiOjE3NzA4NTY0MzcsImlhdCI6MTc3MDg0OTIzN30.z5iEjj7rgPy-SODJFN-PeEshAof0hYeqqrCqDUgaUuU
### Register
POST {{baseUrl}}/auth/register
Content-Type: {{contentType}}
{
"email": "beyhan@beyhan.dev",
"password": "1923btO**",
"username": "Beyhan Oğur"
}
### Login (Admin)
# Default Admin Credentials:
# Email: admin@gauth.local
# Password: Admin@123
POST {{baseUrl}}/auth/login
Content-Type: {{contentType}}
{
"email": "admin@gauth.local",
"password": "Admin@123"
}
### Login (User)
POST {{baseUrl}}/auth/login
Content-Type: {{contentType}}
{
"email": "beyhan@beyhan.dev",
"password": "1923btO**"
}
### Login (User)
POST {{baseUrl}}/auth/login
Content-Type: {{contentType}}
{
"email": "ares@ares.com",
"password": "1923btO**"
}
### OAuth Login (Google)
GET {{baseUrl}}/auth/google
### OAuth Login (GitHub)
GET {{baseUrl}}/auth/github
### Logout
POST {{baseUrl}}/auth/logout
Content-Type: {{contentType}}
### Get Categories (Public)
GET {{baseUrl}}/categories
### Get Current User (Protected)
# Replace @token with the actual token received from login
GET {{baseUrl}}/auth/me
Authorization: Bearer {{token}}