added more fitting example for endpoints.
This commit is contained in:
parent
478456da15
commit
c8898fe926
@ -24,14 +24,14 @@ class PuckignationMixin(LimitOffsetPagination):
|
|||||||
'type': 'string',
|
'type': 'string',
|
||||||
'nullable': True,
|
'nullable': True,
|
||||||
'format': 'uri',
|
'format': 'uri',
|
||||||
'example': 'http://pfapi.puckoprutt.tech/actions/?format=yaml&{offset_param}=30&{limit_param}=10'.format(
|
'example': 'http://api.puckoprutt.tech/some_endpoint/?format=json&{offset_param}=30&{limit_param}=10'.format(
|
||||||
offset_param=self.offset_query_param, limit_param=self.limit_query_param),
|
offset_param=self.offset_query_param, limit_param=self.limit_query_param),
|
||||||
},
|
},
|
||||||
'previous': {
|
'previous': {
|
||||||
'type': 'string',
|
'type': 'string',
|
||||||
'nullable': True,
|
'nullable': True,
|
||||||
'format': 'uri',
|
'format': 'uri',
|
||||||
'example': 'http://pfapi.puckoprutt.tech/actions/?format=yaml&{offset_param}=10&{limit_param}=10'.format(
|
'example': 'http://api.puckoprutt.tech/some_endpoint/?format=json&{offset_param}=10&{limit_param}=10'.format(
|
||||||
offset_param=self.offset_query_param, limit_param=self.limit_query_param),
|
offset_param=self.offset_query_param, limit_param=self.limit_query_param),
|
||||||
},
|
},
|
||||||
'results': schema,
|
'results': schema,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user