We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14f6ff7 commit 2372986Copy full SHA for 2372986
syncano/models/custom_sockets.py
@@ -109,7 +109,7 @@ class SocketEndpoint(Model):
109
:ivar links: :class:`~syncano.models.fields.LinksField`
110
"""
111
name = fields.StringField(max_length=64, primary_key=True)
112
- calls = fields.JSONField()
+ allowed_methods = fields.JSONField()
113
links = fields.LinksField()
114
115
class Meta:
@@ -126,7 +126,7 @@ class Meta:
126
}
127
128
def run(self, method='GET', data=None):
129
- endpoint_path = self.links.endpoint
+ endpoint_path = self.links.self
130
connection = self._get_connection()
131
if not self._validate_method(method):
132
raise SyncanoValueError('Method: {} not specified in calls for this custom socket.'.format(method))
0 commit comments