Skip to content
Snippets Groups Projects
Commit a94c01bb authored by Tomáš Čejka's avatar Tomáš Čejka
Browse files

restapi: extended results (url)

Added `id` and `url` keys into results of REST API queries.
parent a17af8ac
Branches
Tags
No related merge requests found
...@@ -126,16 +126,16 @@ class PortSerializer(serializers.HyperlinkedModelSerializer): ...@@ -126,16 +126,16 @@ class PortSerializer(serializers.HyperlinkedModelSerializer):
class ThenActionSerializer(serializers.HyperlinkedModelSerializer): class ThenActionSerializer(serializers.HyperlinkedModelSerializer):
class Meta: class Meta:
model = ThenAction model = ThenAction
fields = ('action', 'action_value') fields = ('action', 'action_value', 'id', 'url')
class FragmentTypeSerializer(serializers.HyperlinkedModelSerializer): class FragmentTypeSerializer(serializers.HyperlinkedModelSerializer):
class Meta: class Meta:
model = FragmentType model = FragmentType
fields = ('fragmenttype', ) fields = ('fragmenttype', 'id', 'url')
class MatchProtocolSerializer(serializers.HyperlinkedModelSerializer): class MatchProtocolSerializer(serializers.HyperlinkedModelSerializer):
class Meta: class Meta:
model = MatchProtocol model = MatchProtocol
fields = ('protocol', ) fields = ('protocol', 'id', 'url')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment