Skip to content

Fbulkaya/students-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Student Scheduler API

Bu proje, öğrencilerin ders programlarını oluşturmasına yardımcı olmak için bir API sunar.

Gereksinimler

  • Go 1.20 ve üzeri
  • Sqlite3

Kurulum

  1. Projeyi klonlayın
git clone git@github.com:Fbulkaya/Student_scheduler.git
  1. Projeyi çalıştırın
cd Student_scheduler
go run .

API

Ogrenci

Ogrenci Ekleme

curl -X POST http://localhost:8080/students -d '{"name": "John Doe", "email": "jhon@example.com"}'

Ogrenci Guncelleme

curl -X PUT http://localhost:8080/students/1 -d '{"name": "John Doe", "email": "jhon@example.com"}'

Ogrenci Silme

curl -X DELETE http://localhost:8080/students/1

Ogrenci Listeleme

curl http://localhost:8080/students

Ogrenci Detay

curl http://localhost:8080/students/1

Plan

Plan Ekleme

curl -X POST http://localhost:8080/students/1/plans -d '{"desc": "Math", "start_date": "2021-01-01 10:00", "end_date": "2021-01-01 12:00"}'

Plan Guncelleme

curl -X PUT http://localhost:8080/students/1/plans/1 -d '{"desc": "Math", "start_date": "2021-01-01 10:00", "end_date": "2021-01-01 12:00"}'

Plan Silme

curl -X DELETE http://localhost:8080/students/1/plans/1

Plan Listeleme

curl http://localhost:8080/students/1/plans

Plan Detay

curl http://localhost:8080/students/1/plans/1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages