diff --git a/Blazor/Blazor/Properties/launchSettings.json b/Blazor/Blazor/Properties/launchSettings.json index dcf4542..89bbeb7 100644 --- a/Blazor/Blazor/Properties/launchSettings.json +++ b/Blazor/Blazor/Properties/launchSettings.json @@ -1,35 +1,33 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:6913", - "sslPort": 44309 - } - }, - "profiles": { - "Blazor": { - "commandName": "Project", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - }, - "applicationUrl": "https://localhost:7027;http://localhost:5027", - "dotnetRunMessages": true - }, - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "Docker": { - "commandName": "Docker", - "launchBrowser": true, - "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}", - "publishAllPorts": true, - "useSSL": true - } - } +{ + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:6913", + "sslPort": 44309 + } + }, + "profiles": { + "Blazor": { + "commandName": "Project", + "launchBrowser": true, + "applicationUrl": "https://localhost:7027;http://localhost:5027", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "Docker": { + "commandName": "Docker", + "launchBrowser": true, + "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}", + "environmentVariables": {} + } + } } \ No newline at end of file diff --git a/Blazor/Blazor/Services/DataApiService.cs b/Blazor/Blazor/Services/DataApiService.cs index ca08edb..d32d1cd 100644 --- a/Blazor/Blazor/Services/DataApiService.cs +++ b/Blazor/Blazor/Services/DataApiService.cs @@ -30,7 +30,7 @@ namespace Blazor.Services var item = ItemFactory.Create(model); // Save the data - await _http.PostAsJsonAsync("https://codefirst.iut.uca.fr/containers/container-blazor-web-api-marcchevaldonne/api/Crafting/", item); + await _http.PostAsJsonAsync("https://codefirst.iut.uca.fr/containers/julienriboulet-container-blazor-web-api/api/Crafting/", item); } /// @@ -39,7 +39,7 @@ namespace Blazor.Services /// Task representing the asynchronous operation, returning the number of items. public async Task Count() { - return await _http.GetFromJsonAsync("https://codefirst.iut.uca.fr/containers/container-blazor-web-api-marcchevaldonne/api/Crafting/count"); + return await _http.GetFromJsonAsync("https://codefirst.iut.uca.fr/containers/julienriboulet-container-blazor-web-api/api/Crafting/count"); } /// @@ -50,7 +50,7 @@ namespace Blazor.Services /// Task representing the asynchronous operation, returning a list of items. public async Task> List(int currentPage, int pageSize) { - return await _http.GetFromJsonAsync>($"https://codefirst.iut.uca.fr/containers/container-blazor-web-api-marcchevaldonne/api/Crafting/?currentPage={currentPage}&pageSize={pageSize}"); + return await _http.GetFromJsonAsync>($"https://codefirst.iut.uca.fr/containers/julienriboulet-container-blazor-web-api/api/Crafting/?currentPage={currentPage}&pageSize={pageSize}"); } /// @@ -59,7 +59,7 @@ namespace Blazor.Services /// Task representing the asynchronous operation, returning a list of items. public async Task> getAll() { - return await _http.GetFromJsonAsync>($"https://codefirst.iut.uca.fr/containers/container-blazor-web-api-marcchevaldonne/api/Crafting/all"); + return await _http.GetFromJsonAsync>($"https://codefirst.iut.uca.fr/containers/julienriboulet-container-blazor-web-api/api/Crafting/all"); } /// @@ -69,7 +69,7 @@ namespace Blazor.Services /// Task representing the asynchronous operation, returning the item with the specified ID. public async Task GetById(int id) { - return await _http.GetFromJsonAsync($"https://codefirst.iut.uca.fr/containers/container-blazor-web-api-marcchevaldonne/api/Crafting/{id}"); + return await _http.GetFromJsonAsync($"https://codefirst.iut.uca.fr/containers/julienriboulet-container-blazor-web-api/api/Crafting/{id}"); } /// @@ -82,7 +82,7 @@ namespace Blazor.Services // Get the item var item = ItemFactory.Create(model); - await _http.PutAsJsonAsync($"https://codefirst.iut.uca.fr/containers/container-blazor-web-api-marcchevaldonne/api/Crafting/{id}", item); + await _http.PutAsJsonAsync($"https://codefirst.iut.uca.fr/containers/julienriboulet-container-blazor-web-api/api/Crafting/{id}", item); } /// @@ -91,7 +91,7 @@ namespace Blazor.Services /// The ID of the item to delete. public async Task Delete(int id) { - await _http.DeleteAsync($"https://codefirst.iut.uca.fr/containers/container-blazor-web-api-marcchevaldonne/api/Crafting/{id}"); + await _http.DeleteAsync($"https://codefirst.iut.uca.fr/containers/julienriboulet-container-blazor-web-api/api/Crafting/{id}"); } /// @@ -100,7 +100,7 @@ namespace Blazor.Services /// Task representing the asynchronous operation, returning a list of crafting recipes. public async Task> GetRecipes() { - return await _http.GetFromJsonAsync>("https://codefirst.iut.uca.fr/containers/container-blazor-web-api-marcchevaldonne/api/Crafting/recipe"); + return await _http.GetFromJsonAsync>("https://codefirst.iut.uca.fr/containers/julienriboulet-container-blazor-web-api/api/Crafting/recipe"); } } }