Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/spacebagel/randomdudeapi
- Owner: spacebagel
- Created: 2024-06-19T18:16:59.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-06-19T18:32:02.000Z (7 months ago)
- Last Synced: 2024-06-20T08:45:49.897Z (7 months ago)
- Topics: api, asp-net-core, csharp, webapi
- Language: C#
- Homepage:
- Size: 235 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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": "ΠΡΡΠ³ΡΠ·ΡΡΠ°Π½"
}
}
]
```