Elf M. Sternberg 
							
						 
						
							
								406fee5458 
								
							 
						 
						
							
							
								
								Finishing up the documentation.  Next step: Blogging.  
							
							
							
						 
						
							2018-03-30 20:00:15 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								d51670d7ad 
								
							 
						 
						
							
							
								
								Merge tag '0.4.0' into develop  
							
							... 
							
							
							
							This is the version with the CLI thing.
* tag '0.4.0': 
							
						 
						
							2018-03-30 19:08:58 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								6f1bb716b6 
								
							 
						 
						
							
							
								
								Merge branch 'release/0.4.0'  
							
							... 
							
							
							
							* release/0.4.0:
  Keeping track of the new shit.
  FINAL: CLI model.  Also: changed 'clock' to 'time' or 'timeofday', depending. 
							
						 
						
							2018-03-30 19:08:47 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								bee150dcad 
								
							 
						 
						
							
							
								
								Keeping track of the new shit.  
							
							
							
						 
						
							2018-03-30 19:05:11 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								7ed37720fc 
								
							 
						 
						
							
							
								
								FINAL: CLI model.  Also: changed 'clock' to 'time' or 'timeofday', depending.  
							
							
							
						 
						
							2018-03-30 16:04:48 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								24e408b58f 
								
							 
						 
						
							
							
								
								Merge tag '0.2.0' into develop  
							
							... 
							
							
							
							This is the final release before the CLI modifications.
* tag '0.2.0':
  Renamed to be timeofday. 
							
						 
						
							2018-03-30 15:42:55 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								06df4d78a1 
								
							 
						 
						
							
							
								
								Merge branch 'release/0.2.0'  
							
							... 
							
							
							
							* release/0.2.0:
  FINAL Renamed to be timeofday. 
							
						 
						
							2018-03-30 15:42:37 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								42fc54e356 
								
							 
						 
						
							
							
								
								FINAL Renamed to be timeofday.  
							
							
							
						 
						
							2018-03-30 15:41:53 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								c28c24d13f 
								
							 
						 
						
							
							
								
								Renamed to be timeofday.  
							
							
							
						 
						
							2018-03-30 15:39:08 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								bd340e4432 
								
							 
						 
						
							
							
								
								Changing the swagger.yml file to be less verbose.  
							
							
							
						 
						
							2018-03-29 07:28:01 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								e065a61e32 
								
							 
						 
						
							
							
								
								Updating License and gitignore.  
							
							
							
						 
						
							2018-03-28 16:29:57 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								26a714a7dc 
								
							 
						 
						
							
							
								
								Our business logic.  
							
							
							
						 
						
							2018-03-28 16:22:08 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								f4945676fd 
								
							 
						 
						
							
							
								
								The final swagger.yml and the built files that go with it.  
							
							
							
						 
						
							2018-03-28 16:21:57 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								013ae484ad 
								
							 
						 
						
							
							
								
								MOVE the functions from configure_timeofday.go into its own directory/  
							
							... 
							
							
							
							package, where we will contain our business logic. 
							
						 
						
							2018-03-28 12:32:19 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								a27ae64d92 
								
							 
						 
						
							
							
								
								Adding all features provided by swagger generate and dep init.  
							
							... 
							
							
							
							At thing point, we've configued the swagger file and run 'dep init', which
goes out and finds all the libraries in use by the swagger runtime, downloads
them, and incorporates them into the build process.
We can run `go build ./cmd/timeofday-server` and the server will show
up in our project's base directory.  We can run the server:
`./timeofday-server --port=8020`, and then ping the endpoints:
curl http://localhost:8020 
{"code":404,"message":"path / was not found"}
curl http://localhost:8020/timeofday/v1/ 
"operation .ClockGet has not yet been implemented"
Note that one returns an object, and the other returns a string.
Both are valid JSON objects. 
							
						 
						
							2018-03-28 12:23:24 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								5ddc7c6a79 
								
							 
						 
						
							
							
								
								ADD The API that the server will support.  
							
							
							
						 
						
							2018-03-28 12:20:20 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								7d5d030960 
								
							 
						 
						
							
							
								
								GENERATE swagger.yml file.  
							
							... 
							
							
							
							$ swagger init spec --format=yaml --title=timeofday --description="Return the time of day. Timezone optional."  --contact.name="Elf Sternberg" \
  --contact.url="https://github.com/elfsternberg/go-timeofday " --contact.email="elf.sternberg@gmail.com" --license.name="apache-2.0" 
							
						 
						
							2018-03-28 11:33:41 -07:00  
				
					
						
							
							
								
									
								
								Elf M. Sternberg 
							
						 
						
							
								51296cb94c 
								
							 
						 
						
							
							
								
								Initial commit  
							
							
							
						 
						
							2018-03-28 11:33:21 -07:00