update api path
continuous-integration/drone/push Build is passing Details

corr
Marc CHEVALDONNE 2 years ago
parent 852a6b795d
commit f372b89663

@ -11,11 +11,10 @@
"Blazor": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "https://localhost:7027;http://localhost:5027",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:7027;http://localhost:5027",
"dotnetRunMessages": true
}
},
"IIS Express": {
"commandName": "IISExpress",
@ -28,8 +27,7 @@
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
"publishAllPorts": true,
"useSSL": true
"environmentVariables": {}
}
}
}

@ -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);
}
/// <summary>
@ -39,7 +39,7 @@ namespace Blazor.Services
/// <returns>Task representing the asynchronous operation, returning the number of items.</returns>
public async Task<int> Count()
{
return await _http.GetFromJsonAsync<int>("https://codefirst.iut.uca.fr/containers/container-blazor-web-api-marcchevaldonne/api/Crafting/count");
return await _http.GetFromJsonAsync<int>("https://codefirst.iut.uca.fr/containers/julienriboulet-container-blazor-web-api/api/Crafting/count");
}
/// <summary>
@ -50,7 +50,7 @@ namespace Blazor.Services
/// <returns>Task representing the asynchronous operation, returning a list of items.</returns>
public async Task<List<Item>> List(int currentPage, int pageSize)
{
return await _http.GetFromJsonAsync<List<Item>>($"https://codefirst.iut.uca.fr/containers/container-blazor-web-api-marcchevaldonne/api/Crafting/?currentPage={currentPage}&pageSize={pageSize}");
return await _http.GetFromJsonAsync<List<Item>>($"https://codefirst.iut.uca.fr/containers/julienriboulet-container-blazor-web-api/api/Crafting/?currentPage={currentPage}&pageSize={pageSize}");
}
/// <summary>
@ -59,7 +59,7 @@ namespace Blazor.Services
/// <returns>Task representing the asynchronous operation, returning a list of items.</returns>
public async Task<List<Item>> getAll()
{
return await _http.GetFromJsonAsync<List<Item>>($"https://codefirst.iut.uca.fr/containers/container-blazor-web-api-marcchevaldonne/api/Crafting/all");
return await _http.GetFromJsonAsync<List<Item>>($"https://codefirst.iut.uca.fr/containers/julienriboulet-container-blazor-web-api/api/Crafting/all");
}
/// <summary>
@ -69,7 +69,7 @@ namespace Blazor.Services
/// <returns>Task representing the asynchronous operation, returning the item with the specified ID.</returns>
public async Task<Item> GetById(int id)
{
return await _http.GetFromJsonAsync<Item>($"https://codefirst.iut.uca.fr/containers/container-blazor-web-api-marcchevaldonne/api/Crafting/{id}");
return await _http.GetFromJsonAsync<Item>($"https://codefirst.iut.uca.fr/containers/julienriboulet-container-blazor-web-api/api/Crafting/{id}");
}
/// <summary>
@ -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);
}
/// <summary>
@ -91,7 +91,7 @@ namespace Blazor.Services
/// <param name="id">The ID of the item to delete.</param>
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}");
}
/// <summary>
@ -100,7 +100,7 @@ namespace Blazor.Services
/// <returns>Task representing the asynchronous operation, returning a list of crafting recipes.</returns>
public async Task<List<CraftingRecipe>> GetRecipes()
{
return await _http.GetFromJsonAsync<List<CraftingRecipe>>("https://codefirst.iut.uca.fr/containers/container-blazor-web-api-marcchevaldonne/api/Crafting/recipe");
return await _http.GetFromJsonAsync<List<CraftingRecipe>>("https://codefirst.iut.uca.fr/containers/julienriboulet-container-blazor-web-api/api/Crafting/recipe");
}
}
}

Loading…
Cancel
Save