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

corr
Marc CHEVALDONNE 2 years ago
parent 852a6b795d
commit f372b89663

@ -1,35 +1,33 @@
{ {
"iisSettings": { "iisSettings": {
"windowsAuthentication": false, "windowsAuthentication": false,
"anonymousAuthentication": true, "anonymousAuthentication": true,
"iisExpress": { "iisExpress": {
"applicationUrl": "http://localhost:6913", "applicationUrl": "http://localhost:6913",
"sslPort": 44309 "sslPort": 44309
} }
}, },
"profiles": { "profiles": {
"Blazor": { "Blazor": {
"commandName": "Project", "commandName": "Project",
"launchBrowser": true, "launchBrowser": true,
"environmentVariables": { "applicationUrl": "https://localhost:7027;http://localhost:5027",
"ASPNETCORE_ENVIRONMENT": "Development" "environmentVariables": {
}, "ASPNETCORE_ENVIRONMENT": "Development"
"applicationUrl": "https://localhost:7027;http://localhost:5027", }
"dotnetRunMessages": true },
}, "IIS Express": {
"IIS Express": { "commandName": "IISExpress",
"commandName": "IISExpress", "launchBrowser": true,
"launchBrowser": true, "environmentVariables": {
"environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development"
"ASPNETCORE_ENVIRONMENT": "Development" }
} },
}, "Docker": {
"Docker": { "commandName": "Docker",
"commandName": "Docker", "launchBrowser": true,
"launchBrowser": true, "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}", "environmentVariables": {}
"publishAllPorts": true, }
"useSSL": true }
}
}
} }

@ -30,7 +30,7 @@ namespace Blazor.Services
var item = ItemFactory.Create(model); var item = ItemFactory.Create(model);
// Save the data // 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> /// <summary>
@ -39,7 +39,7 @@ namespace Blazor.Services
/// <returns>Task representing the asynchronous operation, returning the number of items.</returns> /// <returns>Task representing the asynchronous operation, returning the number of items.</returns>
public async Task<int> Count() 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> /// <summary>
@ -50,7 +50,7 @@ namespace Blazor.Services
/// <returns>Task representing the asynchronous operation, returning a list of items.</returns> /// <returns>Task representing the asynchronous operation, returning a list of items.</returns>
public async Task<List<Item>> List(int currentPage, int pageSize) 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> /// <summary>
@ -59,7 +59,7 @@ namespace Blazor.Services
/// <returns>Task representing the asynchronous operation, returning a list of items.</returns> /// <returns>Task representing the asynchronous operation, returning a list of items.</returns>
public async Task<List<Item>> getAll() 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> /// <summary>
@ -69,7 +69,7 @@ namespace Blazor.Services
/// <returns>Task representing the asynchronous operation, returning the item with the specified ID.</returns> /// <returns>Task representing the asynchronous operation, returning the item with the specified ID.</returns>
public async Task<Item> GetById(int id) 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> /// <summary>
@ -82,7 +82,7 @@ namespace Blazor.Services
// Get the item // Get the item
var item = ItemFactory.Create(model); 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> /// <summary>
@ -91,7 +91,7 @@ namespace Blazor.Services
/// <param name="id">The ID of the item to delete.</param> /// <param name="id">The ID of the item to delete.</param>
public async Task Delete(int id) 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> /// <summary>
@ -100,7 +100,7 @@ namespace Blazor.Services
/// <returns>Task representing the asynchronous operation, returning a list of crafting recipes.</returns> /// <returns>Task representing the asynchronous operation, returning a list of crafting recipes.</returns>
public async Task<List<CraftingRecipe>> GetRecipes() 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