Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/spacebagel/randomdudeapi

Small API for generating random user data
https://github.com/spacebagel/randomdudeapi

api asp-net-core csharp webapi

Last synced: about 1 month ago
JSON representation

Small API for generating random user data

Awesome Lists containing this project

README

        

# πŸ“ƒ Random Person Info GET API
Small API for generating random user data.

## ▢️ How to Run
1. Execute the script from [Database.sql](https://github.com/spacebagel/RandomDudeAPI/blob/master/Database.sql) in MSSQL.
2. Change `"ConnectionString": ""` in the appsettings.json file.

![ConnectionString](https://github.com/spacebagel/RandomDudeAPI/assets/165411846/031f83ba-cc81-443e-8362-08a487175359)

3. (optional) Install and use HttpRepl

```powershell
dotnet tool install -g Microsoft.dotnet-httprepl
```
```powershell
dotnet run --urls=https://localhost:PORT
```
## 🎊 Examples
```json
[
{
"lastName": "НСчаСв",
"firstName": "Клим",
"middleName": "ΠŸΠΎΡ€Ρ„ΠΈΡ€ΠΈΠ΅Π²ΠΈΡ‡",
"gender": "ΠœΡƒΠΆΡΠΊΠΎΠΉ",
"birthdate": "27.08.1957",
"phoneNumber": "+79564001617",
"email": "[email protected]",
"adress": {
"city": "ΠΠ°Ρ…ΠΈΡ‡Π΅Π²Π°Π½ΡŒ",
"region": "ΠšΠ°Π»ΠΌΡ‹ΠΊΠΈΡ",
"country": "Россия"
}
},
{
"lastName": "Π“ΠΎΠ½Ρ‡Π°Ρ€ΠΎΠ²",
"firstName": "ΠšΠ»ΠΈΠΌΠ΅Π½Ρ‚ΠΈΠΉ",
"middleName": "Бтаниславович",
"gender": "ΠœΡƒΠΆΡΠΊΠΎΠΉ",
"birthdate": "18.01.1945",
"phoneNumber": "+79514198048",
"email": "[email protected]",
"adress": {
"city": "ДТСймстаун",
"region": "Bistrita-Nasaud",
"country": "Румыния"
}
},
{
"lastName": "Акимов",
"firstName": "Π€Π°Π΄Π΅ΠΉ",
"middleName": "АндрониСвич",
"gender": "ΠœΡƒΠΆΡΠΊΠΎΠΉ",
"birthdate": "30.04.1989",
"phoneNumber": "+79754639074",
"email": "[email protected]",
"adress": {
"city": "Baexem",
"region": "Нарынская ΠΎΠ±Π».",
"country": "ΠšΡ‹Ρ€Π³Ρ‹Π·ΡΡ‚Π°Π½"
}
}
]
```