Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radyai/student-api-fastify
This API was created for learning purposes only. This API provides CRUD (Create, Read, Update, Delete) operations for the student entity.
https://github.com/radyai/student-api-fastify
api fastify firebase
Last synced: about 1 month ago
JSON representation
This API was created for learning purposes only. This API provides CRUD (Create, Read, Update, Delete) operations for the student entity.
- Host: GitHub
- URL: https://github.com/radyai/student-api-fastify
- Owner: RadyaI
- Created: 2024-07-05T14:00:15.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-03T15:46:30.000Z (5 months ago)
- Last Synced: 2024-08-03T16:36:25.812Z (5 months ago)
- Topics: api, fastify, firebase
- Language: JavaScript
- Homepage: https://api.radya.fun
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API untuk Latihan
API ini dibuat untuk keperluan belajar saja. API ini menyediakan operasi CRUD (Create, Read, Update, Delete) untuk entitas student/siswa.
## List API
- **GET** `api.radya.fun/student` - Mengambil daftar semua siswa
- **POST** `api.radya.fun/student` - Menambahkan data siswa baru
- **PUT** `api.radya.fun/student/:id` - Memperbarui data siswa berdasarkan ID
- **DELETE** `api.radya.fun/student/:id` - Menghapus data siswa berdasarkan ID## Contoh Penggunaan Fetch API
```javascript
async function fetchStudents() {
try {
const response = await fetch('https://api.radya.fun/student');
const students = await response.json();
console.log(students);
} catch (error) {
console.error('Error fetching students:', error);
}
}fetchStudents();
```Made by [Radya](https://radya.fun)