Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

1995parham-teaching/students-fall-2021

Repository files navigation

students.go

Introduction

ReSTful API to create, update, retrieve and delete students from a datastore. Requests needs validation, package needs tests, there is an ORM and etc.

Requests with cURL

  • create new student
curl -vvv -X POST -d '{ "first_name": "Parham", "id": "98243032", "last_name": "Alvani" }' -H 'Content-Type: application/json' 127.0.0.1:1373/student
  • get students list
curl -vvv 127.0.0.1:1373/student
  • get student by id
curl -vvv 127.0.0.1:1373/student/98243032

About

Example ReSTFul Server in Golang - SBU-Snapp-School

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published