Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • portal.desettisickroku.cz portal.desettisickroku.cz
  • Project information
    • Project information
    • Activity
    • Members
  • Wiki
    • Wiki
  • Activity
Collapse sidebar
  • api-docs
  • portal.desettisickroku.czportal.desettisickroku.cz
  • Wiki
  • Teams List

Teams List · Changes

Page history
Create Teams List authored Mar 08, 2024 by Jakub Valo's avatar Jakub Valo
Hide whitespace changes
Inline Side-by-side
Teams-List.md 0 → 100644
View page @ ea3e0a2c
_Seznam týmů se stránkováním_
**URL:** /api/v2/teams
**Method:** GET
**Headers:**
- Accept: application/json
- Authorization: Auth User Bearer Token nebo API Bearer Token
**Vstupní data:**
| Parametr | Typ | Povinný | Popis |
|----------|-----|---------|-------|
| company_id | int | N | Filtrace podle ID firmy |
| school_id | int | N | Filtrace podle ID školy |
_Filtrace podle ID firmy / školy: zobrazí pouze týmy dané firmy / školy._
**Vrací JSON:**
```json
{
"data": [
{
"id": 136,
"title": "HUBERO KORORO",
"image": "http:\/\/portal.desettisickroku.local\/storage\/team-images\/BiQ51yCKXX2SopOPiMEf1V7qjaZWZtpbCNEuWTR1.jpg",
"district": {
"id": 7,
"title": "Dobříš"
},
"points": "10600.79",
"distance": 10231744
},
...
],
"links": {
"first": "http:\/\/portal.desettisickroku.local\/api\/v2\/teams?page=1",
"last": "http:\/\/portal.desettisickroku.local\/api\/v2\/teams?page=59",
"prev": null,
"next": "http:\/\/portal.desettisickroku.local\/api\/v2\/teams?page=2"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 59,
"links": [
{
"url": null,
"label": "« Předchozí",
"active": false
},
{
"url": "http:\/\/portal.desettisickroku.local\/api\/v2\/teams?page=1",
"label": "1",
"active": true
},
...
],
"path": "http:\/\/portal.desettisickroku.local\/api\/v2\/teams",
"per_page": 25,
"to": 25,
"total": 1456
}
}
```
V parametrech `links` a `meta` jsou údaje pro stránkování.
\ No newline at end of file
Clone repository

Home

All Pages