90minsGOexp

module
v0.0.0-...-6bdd1f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2021 License: MIT

README

90minsGOexp

useless experiment

Before clock start

Initial version of swagger/swagger.yaml

After clock ends (90 mins)

  • The final commit and push
  • Added forgoten go.mod
  • This doc

Not done, known defects, etc

  • List available appointments not implemented
  • Forgot to convert Conflict storage response to 409 response, so will give 500 or 503
  • MySQL or other types of persistent storage not implemented
  • Should have a service per route
  • Not enough unit tests
  • Consts should come from config
  • Error codes must be introduced via swagger
  • Times in error attributes must be in the same format as in input/output
  • Throttling and limit on number of user's appointments not implemented

Instruction

  • make swagger - generate server code
  • make build - builds the service
  • make start - starts the service on 8080 port
  • make live-test - is supposed to send some queries and validate responses

Assumptions

The server resides behid API GW which terminates TLS, performs auth (e.g. JWT or oauth2) and pushed authenticated user/trainer/admin ids to the backend via headers.

Directories

Path Synopsis
data
server
restapi
Package restapi An experimental server
Package restapi An experimental server

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL