thevahidal / soul

🕉 A SQLite REST and realtime server
https://thevahidal.github.io/soul/
MIT License
1.45k stars 50 forks source link

Fix incorrect URLs for next/previous URLs #110

Closed AbegaM closed 12 months ago

AbegaM commented 1 year ago

Purpose of PR

Example response:

  {
    "data": [
        {
            "InvoiceId": 1,
            "CustomerId": 2,
            "InvoiceDate": "2009-01-01 00:00:00",
            "BillingAddress": "Theodor-Heuss-Straße 34",
            "BillingCity": "Stuttgart",
            "BillingState": null,
            "BillingCountry": "Germany",
            "BillingPostalCode": "70174",
            "Total": 1.98
        }
    ],
    "total": 412,
    "next": "/tables/invoices?page=2",
    "previous": null
}

Modification

AbegaM commented 1 year ago

@thevahidal and @IanMayo Please review this PR, i have fixed the errors in the next/prev fields

AbegaM commented 12 months ago

@IanMayo can you please retest it now?