- Accounts
- Authentication
- Exams
- Levels
List
GET
/api/accounts/students/
Request
None
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:80/api/accounts/students/'
Responses
🟢200List_Ex01
application/json
Body
count
integer
required
next
null
required
previous
null
required
results
array [object {22}]
required
url
string
required
id
integer
required
username
string
required
email
string
required
first_name
string
required
second_name
string
required
third_name
string
required
fourth_name
string
required
last_name
string
required
gender
string
required
birth_date
string
required
city
string
required
address
string
required
phone
string
required
department
object
required
level
integer
required
courses
array [object {2}]
required
is_active
boolean
required
is_staff
boolean
required
is_superuser
boolean
required
date_joined
string
required
user_type
integer
required
Example
{
"count": 2,
"next": null,
"previous": null,
"results": [
{
"url": "http://127.0.0.1:80/api/accounts/students/6/",
"id": 6,
"username": "student1",
"email": "student1@gmail.com",
"first_name": "student1",
"second_name": "student1",
"third_name": "student1",
"fourth_name": "student1",
"last_name": "student1",
"gender": "m",
"birth_date": "2002-02-02",
"city": "Cairo",
"address": "Address",
"phone": "+201111111111",
"department": {
"id": 1,
"title": "Network"
},
"level": 1,
"courses": [
{
"id": 1,
"title": "django"
}
],
"is_active": true,
"is_staff": false,
"is_superuser": false,
"date_joined": "2024-03-16T20:56:46.449109Z",
"user_type": 3
},
{
"url": "http://127.0.0.1:80/api/accounts/students/7/",
"id": 7,
"username": "student2",
"email": "student2@gmail.com",
"first_name": "student2",
"second_name": "student2",
"third_name": "student2",
"fourth_name": "student2",
"last_name": "student2",
"gender": "m",
"birth_date": "2002-02-02",
"city": "Cairo",
"address": "Address",
"phone": "+201111111111",
"department": {
"id": 1,
"title": "Network"
},
"level": 1,
"courses": [
{
"id": 1,
"title": "django"
}
],
"is_active": true,
"is_staff": false,
"is_superuser": false,
"date_joined": "2024-03-16T20:59:12.492836Z",
"user_type": 2
}
]
}
Modified at 2024-03-16 21:19:13