added more fitting example for endpoints.

This commit is contained in:
puckoprutt 2025-03-01 15:55:12 +01:00
parent 478456da15
commit c8898fe926

View File

@ -24,14 +24,14 @@ class PuckignationMixin(LimitOffsetPagination):
'type': 'string',
'nullable': True,
'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),
},
'previous': {
'type': 'string',
'nullable': True,
'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),
},
'results': schema,