Skip to content

Releases: milantarami/laravel-api-response-builder

v1.1.x

25 Jun 12:35
1a9ae95
Compare
Choose a tag to compare

Update in api response meta data keys

  1. current_page to page

Remove api response meta data keys

  1. previous
  2. next

v1.0.0

19 Jan 16:16
Compare
Choose a tag to compare

Breaking Changes

feat:

  • add a meta property for a pagination data for LengthAwarePaginator

example

{
    "success": true,
    "code": 200,
    "message": "OK",
    "data": [
          {
                "id": 3,
                "name": "Dr. Enos Rowe",
                "email": "[email protected]",
                "email_verified_at": "2023-01-19T10:16:53.000000Z",
                "created_at": "2023-01-19T10:16:53.000000Z",
                "updated_at": "2023-01-19T10:16:53.000000Z",
                "address": "5581 Rosalee Lakes Apt. 063\nSatterfieldburgh, MD 32509",
                "nickname": "Adele"
          },
          {
              "id": 4,
              "name": "Jess Morissette",
              "email": "[email protected]",
              "email_verified_at": "2023-01-19T10:17:24.000000Z",
              "created_at": "2023-01-19T10:17:24.000000Z",
              "updated_at": "2023-01-19T10:17:24.000000Z",
              "address": "740 Norbert Plain\nSwiftbury, RI 57672",
              "nickname": "Taryn"
          }
    ],
    "meta": {
          "previous": ["http://127.0.0.1:8000/users?page=1"](http://127.0.0.1:8000/users?page=1),
          "next": ["http://127.0.0.1:8000/users?page=3"](http://127.0.0.1:8000/users?page=3),
          "total": 103,
          "count": 2,
          "per_page": 2,
          "current_page": 2,
          "total_pages": 52
    }
}

v0.2.0 support localization

17 Jan 18:18
Compare
Choose a tag to compare

feat: support localization

😊 Initial Release

22 Nov 15:08
Compare
Choose a tag to compare
v0.0.1

📝 docs: update docs