[TASK] rename produckt attr from title to name (for monolith)
This commit is contained in:
parent
1d72751653
commit
157431d425
|
@ -25,7 +25,7 @@ Die dritte Schnittstelle besteht zu dem Microservice Produktkatalog, von welchem
|
|||
\begin{lstlisting}[caption=Datenabfrage aus dem Produktkatalog]
|
||||
{
|
||||
"id": <<Int>>,
|
||||
"title": "<<Produktname>>"
|
||||
"name": "<<Produktname>>"
|
||||
}
|
||||
\end{lstlisting}
|
||||
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"id": 1,
|
||||
"title": "Kiwi"
|
||||
"name": "Kiwi"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"id": 2,
|
||||
"title": "Blueberries"
|
||||
"name": "Blueberries"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"id": 3,
|
||||
"title": "Cherries"
|
||||
"name": "Cherries"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"id": 4,
|
||||
"title": "Potatoes"
|
||||
"name": "Potatoes"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"id": 5,
|
||||
"title": "Tomatoes"
|
||||
"name": "Tomatoes"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"id": 6,
|
||||
"title": "Rhubarb"
|
||||
"name": "Rhubarb"
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
[
|
||||
{"id":1, "title": "Kiwi"},
|
||||
{"id":2, "title": "Blueberries"},
|
||||
{"id":3, "title": "Cherries"},
|
||||
{"id":4, "title": "Potatoes"},
|
||||
{"id":5, "title": "Tomatoes"},
|
||||
{"id":6, "title": "Rhubarb"}
|
||||
{"id":1, "name": "Kiwi"},
|
||||
{"id":2, "name": "Blueberries"},
|
||||
{"id":3, "name": "Cherries"},
|
||||
{"id":4, "name": "Potatoes"},
|
||||
{"id":5, "name": "Tomatoes"},
|
||||
{"id":6, "name": "Rhubarb"}
|
||||
]
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<h1>
|
||||
{{product.title}}
|
||||
{{product.name}}
|
||||
<a ui-sref="item({productid:product.id})">
|
||||
<i class="icon linkify"></i>
|
||||
</a>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<h1>
|
||||
{{obj.title}}
|
||||
{{obj.name}}
|
||||
<img class="icon" src="/api/good/availablity/{{obj.id}}"/>
|
||||
<a class="ui icon button mini right floated" ui-sref="item-add({productid: obj.id})"><i class="icon plus"></i></a>
|
||||
</h1>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<tbody>
|
||||
<tr ng-repeat="item in list">
|
||||
<td>{{item.id}}</td>
|
||||
<td><a ui-sref="item({productid: item.id})">{{item.title}}</a></td>
|
||||
<td><a ui-sref="item({productid: item.id})">{{item.name}}</a></td>
|
||||
<td>
|
||||
<img class="icon" ng-src="{{'/api/good/availablity/'+item.id| reloadSrc}}"/>
|
||||
</td>
|
||||
|
|
|
@ -14,7 +14,7 @@ angular.module('microStock')
|
|||
$scope.submit = function(){
|
||||
$http.post(config.store.goods.productById.replace("%d",$stateParams.productid)+'?count='+$scope.count,$scope.obj).then(function(){
|
||||
$scope.obj = {};
|
||||
$scope.msg = {type:'success',text:'Saved '+$scope.count+' good(s) from product '+$scope.product.title+'.'};
|
||||
$scope.msg = {type:'success',text:'Saved '+$scope.count+' good(s) from product '+$scope.product.name+'.'};
|
||||
}, function(e){
|
||||
if(e.status == 403){
|
||||
$scope.msg = {type:'error',text:'You are not allowed to add goods, maybe you should login!'};
|
||||
|
|
Reference in New Issue