Skip to content
Snippets Groups Projects
README.md 1.19 KiB
Newer Older
Benjamin skinstad's avatar
Benjamin skinstad committed
# Assignment 1 imt2681 cloud 

Read me for Benjamin Skinstads 470918 cloud 1 assigment 

this assigment follows all set requirements for this assigment

I have added tests and redudnacy for most possible errors in my project, and input validation and checks where ever needed, there is to many 
of these to list here but they are documented in the program 

I was unsure where the "status code 200 if everything is okay" should be printed out so i just printline the status code to the cl after every get


I used 503 as the error code for diag on the api check, this is called if the server is whatever reason unreachable 

Benjamin skinstad's avatar
Benjamin skinstad committed
I was not entierly sure what to put under version in diag so i put in current go verison of the server 

missing error checks: 
if country is given more than one letter it breaks, this is due to the limitations of my hard coded formatting

if species is given a code like 696 it breaks, this is because this is another type of json request, i was unable to find a work around here. 

im not enterily happy with how i call my 404 pages and the chekcs can be a bit extreme if there are many 

what i would add in the future: rate limiting, fix the json to be proper, and proper input handling