Categorygithub.com/HYCJX/Golang_RestfulAPI
modulepackage
0.0.0-20201207034033-12178d899b0d
Repository: https://github.com/hycjx/golang_restfulapi.git
Documentation: pkg.go.dev

# README

Golang_RestfulAPI

To run this golang restful api, use the following command:
go run main.go $string_of_url_to_crew_json_file
This api server runs on PORT 8080.

This api handles the following requests:
GET pilot with pilot ID.
GET all pilots.
GET available pilots with a query.
GET flight with pilot ID.
GET all flights.
POST flight handled according to pilot availability.

The codebase is divided into 3 packages besides the main package:
utils package which provides utilities
controller package which handles http requests
model package which connects controller package to database with logic

# Packages

Package controller contains functions that handles http requests by connecting to package model.
Package model directly interacts with database to handle requests from package controller.
No description provided by the author