Skip to main content
GET
/
stocks
List all stocks
curl --request GET \
  --url https://lms.tausi.africa/v1/stocks \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "stock_id": 123,
      "stock_name": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123,
  "page": 123,
  "rowsPerPage": 123,
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

page
integer<int32>
default:1
Required range: x >= 1
rows
integer<int32>
default:100
Required range: 1 <= x <= 100

Response

Successful response with stock list.

items
object[]
required
total
integer
required
page
integer
required
rowsPerPage
integer
required
success
boolean
required
Example:

true