feat: ajustes

This commit is contained in:
Jean Gatto
2023-06-24 15:29:30 -03:00
parent f3bf9c6975
commit 8c7b7e015e
3 changed files with 7 additions and 29 deletions
+1
View File
@@ -5,6 +5,7 @@
.DS_Store
*/.DS_Store
.run/
.vscode/
-26
View File
@@ -1,26 +0,0 @@
@baseUrl = http://localhost:5072/api
### Cadastrar um novo cliente
# @name createCustomer
POST {{baseUrl}}/customers HTTP/1.1
content-type: application/json
{
"firstName": "Jean",
"lastName": "Gatto",
"gender": "Male",
"email": "jean_gatto@hotmail.com",
"dateOfBirth": "1990-04-27"
}
@customerId = {{createCustomer.response.body.result.id}}
### Obter cliente por id
# @name getCustomersById
GET {{baseUrl}}/customers/{{customerId}} HTTP/1.1
content-type: application/json
### Obter todos os clientes
# @name getCustomers
GET {{baseUrl}}/customers HTTP/1.1
content-type: application/json
@@ -9,9 +9,12 @@ public sealed class ConnectionOptions : IAppOptions
{
public const string ConfigSectionPath = "ConnectionStrings";
[Required] public string SqlConnection { get; private init; }
[Required]
public string SqlConnection { get; private init; }
[Required] public string NoSqlConnection { get; private init; }
[Required]
public string NoSqlConnection { get; private init; }
[Required] public string CacheConnection { get; private init; }
[Required]
public string CacheConnection { get; private init; }
}