{
  "info": {
    "_postman_id": "806f25d4-8cc4-45b7-a10e-c30702ac1c72",
    "name": "NameGender API",
    "description": "Official NameGender API collection. Set baseUrl and apiKey in the included environment. Canonical endpoints are used; /api/v1 aliases expose the same behavior.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [{ "key": "token", "value": "{{apiKey}}", "type": "string" }]
  },
  "variable": [
    { "key": "baseUrl", "value": "http://127.0.0.1:8901", "type": "string" },
    { "key": "apiKey", "value": "ng_live_replace_me", "type": "string" }
  ],
  "item": [
    {
      "name": "Gender",
      "item": [
        {
          "name": "Resolve name",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": { "raw": "{{baseUrl}}/api?name=Ay%C5%9Fe&country=TR", "host": ["{{baseUrl}}"], "path": ["api"], "query": [{ "key": "name", "value": "Ayşe" }, { "key": "country", "value": "TR" }] },
            "description": "Resolve a first or full name. One credit is used."
          }
        },
        {
          "name": "Resolve name with JSON",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\n  \"name\": \"Ayşe\",\n  \"country\": \"TR\"\n}", "options": { "raw": { "language": "json" } } },
            "url": { "raw": "{{baseUrl}}/api", "host": ["{{baseUrl}}"], "path": ["api"] }
          }
        },
        {
          "name": "Resolve email",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\n  \"email\": \"ayse.yilmaz@example.com\",\n  \"country\": \"TR\"\n}", "options": { "raw": { "language": "json" } } },
            "url": { "raw": "{{baseUrl}}/api/email", "host": ["{{baseUrl}}"], "path": ["api", "email"] }
          }
        },
        {
          "name": "Resolve username",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\n  \"username\": \"AyseYilmaz84\",\n  \"country\": \"TR\"\n}", "options": { "raw": { "language": "json" } } },
            "url": { "raw": "{{baseUrl}}/api/username", "host": ["{{baseUrl}}"], "path": ["api", "username"] }
          }
        }
      ]
    },
    {
      "name": "Bulk",
      "item": [
        {
          "name": "Resolve multiple names",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" }],
            "body": { "mode": "raw", "raw": "{\n  \"names\": [\"Ayşe\", \"Mehmet\", \"Jordan\"],\n  \"country\": \"TR\",\n  \"type\": \"name\"\n}", "options": { "raw": { "language": "json" } } },
            "url": { "raw": "{{baseUrl}}/api/bulk", "host": ["{{baseUrl}}"], "path": ["api", "bulk"] },
            "description": "Resolve 1–100 inputs in one atomic request. Results preserve input order."
          }
        }
      ]
    },
    {
      "name": "Account",
      "item": [
        {
          "name": "Get credits and usage",
          "request": {
            "method": "GET",
            "header": [{ "key": "Accept", "value": "application/json" }],
            "url": { "raw": "{{baseUrl}}/api/me", "host": ["{{baseUrl}}"], "path": ["api", "me"] },
            "description": "Inspect credit balance and lifetime usage without consuming a credit."
          }
        }
      ]
    }
  ],
  "event": [
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          "pm.test('Returns JSON', function () {",
          "  pm.response.to.be.json;",
          "});",
          "pm.test('Returns a documented status code', function () {",
          "  pm.expect([200, 400, 401, 402, 403, 422, 429, 500, 503]).to.include(pm.response.code);",
          "});"
        ]
      }
    }
  ]
}
