Persona Generator

Persona Generator · Ações GPT

Random User API

  • GET /api/Get random user data
Esquema API original
{
  "openapi": "3.0.0",
  "info": {
    "title": "Random User API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://randomuser.me/"
    }
  ],
  "paths": {
    "/api/": {
      "get": {
        "summary": "Get random user data",
        "operationId": "getRandomUserData",
        "responses": {
          "200": {
            "description": "A random user",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/User"
                      }
                    },
                    "info": {
                      "$ref": "#/components/schemas/Info"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "User": {
        "type": "object",
        "properties": {
          "gender": {
            "type": "string"
          },
          "name": {
            "$ref": "#/components/schemas/Name"
          },
          "location": {
            "$ref": "#/components/schemas/Location"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "login": {
            "$ref": "#/components/schemas/Login"
          },
          "dob": {
            "$ref": "#/components/schemas/DOB"
          },
          "registered": {
            "$ref": "#/components/schemas/Registered"
          },
          "phone": {
            "type": "string"
          },
          "cell": {
            "type": "string"
          },
          "id": {
            "$ref": "#/components/schemas/ID"
          },
          "picture": {
            "$ref": "#/components/schemas/Picture"
          },
          "nat": {
            "type": "string"
          }
        }
      },
      "Name": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "first": {
            "type": "string"
          },
          "last": {
            "type": "string"
          }
        }
      },
      "Location": {
        "type": "object",
        "properties": {
          "street": {
            "$ref": "#/components/schemas/Street"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "postcode": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              }
            ]
          },
          "coordinates": {
            "$ref": "#/components/schemas/Coordinates"
          },
          "timezone": {
            "$ref": "#/components/schemas/Timezone"
          }
        }
      },
      "Street": {
        "type": "object",
        "properties": {
          "number": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "Coordinates": {
        "type": "object",
        "properties": {
          "latitude": {
            "type": "string"
          },
          "longitude": {
            "type": "string"
          }
        }
      },
      "Timezone": {
        "type": "object",
        "properties": {
          "offset": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      },
      "Login": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "format": "uuid"
          },
          "username": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "salt": {
            "type": "string"
          },
          "md5": {
            "type": "string"
          },
          "sha1": {
            "type": "string"
          },
          "sha256": {
            "type": "string"
          }
        }
      },
      "DOB": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "age": {
            "type": "integer"
          }
        }
      },
      "Registered": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "age": {
            "type": "integer"
          }
        }
      },
      "ID": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "Picture": {
        "type": "object",
        "properties": {
          "large": {
            "type": "string",
            "format": "uri"
          },
          "medium": {
            "type": "string",
            "format": "uri"
          },
          "thumbnail": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Info": {
        "type": "object",
        "properties": {
          "seed": {
            "type": "string"
          },
          "results": {
            "type": "integer"
          },
          "page": {
            "type": "integer"
          },
          "version": {
            "type": "string"
          }
        }
      }
    }
  }
}