Rework API to be more RESTful (references #139)

This commit is contained in:
Bernd Bestel
2019-01-19 14:51:51 +01:00
parent 0ce8d706a6
commit bfa59dd29c
52 changed files with 1110 additions and 1143 deletions

View File

@@ -7,7 +7,7 @@
if (Grocy.EditMode === 'create')
{
Grocy.Api.Post('object/quantity_units', jsonData,
Grocy.Api.Post('objects/quantity_units', jsonData,
function(result)
{
window.location.href = U('/quantityunits');
@@ -21,7 +21,7 @@
}
else
{
Grocy.Api.Put('object/quantity_units/' + Grocy.EditObjectId, jsonData,
Grocy.Api.Put('objects/quantity_units/' + Grocy.EditObjectId, jsonData,
function(result)
{
window.location.href = U('/quantityunits');