API'ler

Mock User Generator API

OAS3 v1.0.0 application/json

Genel Bakış

Mock User Generator API, yazılım test süreçleri ve veri simülasyonları için yüksek performanslı ve özelleştirilebilir sahte (mock) kullanıcı verisi üreten bir RESTful servistir. İstemcilere JSON formatında, farklı detay seviyelerinde kullanıcı profilleri sunar ve bu verilerin CSV, Excel, ve PDF formatlarında indirilmesine olanak tanır.

Yapılandırma & Kurallar

Endpoints

GET /api/v1/users/detailed Detaylı Kullanıcı Üretimi (Detailed)

Bir kullanıcının kişisel, iletişim, adres ve iş bilgilerini içeren geniş kapsamlı bir profil döner.

Example Request
curl -X 'GET' \
'https://api.sonercreative.com/api/v1/users/detailed?count=5&locale=tr' \
-H 'accept: application/json'
Responses 200 OK
{
    "status": "success",
    "data": {
        "totalCount": 10,
        "results": [
            {
                "id": "5f4d8...001",
                "name": "..."
            }
        ]
    }
}
GET /api/v1/users/simple Basit Kullanıcı Üretimi (Simple)

Test listeleri için sadece temel adı, soyadı ve e-posta bilgilerini barındıran hafif bir profil döner.

Example Request
curl -X 'GET' \
'https://api.sonercreative.com/api/v1/users/simple?count=50&locale=en' \
-H 'accept: application/json'
Responses 200 OK
{
    "status": "success",
    "data": {
        "totalCount": 10,
        "results": [
            {
                "id": "5f4d8...001",
                "name": "..."
            }
        ]
    }
}
GET /api/v1/users/registration Kayıtlı Kullanıcı Üretimi (Registration)

Yetkilendirme (Auth) testlerinde kullanılmak üzere username, email ve password bilgilerini içeren profil döner.

Example Request
curl -X 'GET' \
'https://api.sonercreative.com/api/v1/users/registration?count=5&locale=tr' \
-H 'accept: application/json'
Responses 200 OK
{
    "status": "success",
    "data": {
        "totalCount": 10,
        "results": [
            {
                "id": "5f4d8...001",
                "name": "..."
            }
        ]
    }
}
GET /api/v1/users/download/{format} Dosya Dışa Aktarma (Download)

Belirtilen profildeki kullanıcı verilerini istenilen dosya formatında bir Attachment (indirilebilir dosya) olarak döner.

Parameters
Name Description
format path / string "csv", "excel", "pdf" değerlerinden birini alabilir.
parameter string Opsiyonel Sorgu 'profile': "detailed", "simple", "registration" olabilir. Varsayılan "detailed"dır.
Example Request
curl -X 'GET' \
'https://api.sonercreative.com/api/v1/users/download/excel?profile=registration&count=100&locale=tr' \
-H 'accept: application/json'
Responses 200 OK
{
    "status": "success",
    "data": {
        "totalCount": 10,
        "results": [
            {
                "id": "5f4d8...001",
                "name": "..."
            }
        ]
    }
}

Hata Kodları (Responses)