10. Bài tập
Thực hiện các bài tập
API: Get all users (Authentication Basic)
REQUEST
- Url: https://server.aptech.io/auth/basic
- Authorization: Basic (username, password)
- Username: aptech
- Password: aptech
- Method: GET
RESPONSE
[
{
"_id": "628395a6effcfb0ae4fd1c25",
"username": "tungnt",
"password": "123456789",
"email": "tungnt@softech.com",
"fullName": "Ngô Thanh Tùng"
}
]
API: Get all users (Authentication API-KEY)
REQUEST
- Url: https://server.aptech.io/auth/x-api-key
- Authorization:
- Type: API KEY
- Key: x-api-key
- Value: aptech-tester-pro
- Add to: Header
- Method: GET
RESPONSE
[
{
"_id": "628395a6effcfb0ae4fd1c25",
"username": "tungnt",
"password": "123456789",
"email": "tungnt@softech.com",
"fullName": "Ngô Thanh Tùng"
}
]
Các bài tập mở rộng
Bài tập luyện tập với FPT AI (Text to speech)
- Đăng ký tài khoản tại (https://fpt.ai/tts) và thực hiện lệnh gọi API Text to Speech theo hướng dẫn
Bài tập luyện tập với Open Weather
- Đăng ký tài khoản tại (https://openweathermap.org/api) và thực hiện lệnh gọi API theo hướng dẫn
Bài tập luyện tập với The Movie DB
- Tham khảo tại (https://www.themoviedb.org)