first commit
This commit is contained in:
59
client.http
Normal file
59
client.http
Normal file
@@ -0,0 +1,59 @@
|
||||
@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}}
|
||||
Reference in New Issue
Block a user