Shows how to use the rest-server library and create REST APIs for your applications.
- simple-server
cd simple-server go run server.go Server Output ---------- [timestamp] INFO Initiating Turbo [timestamp] INFO Registering New Route: /api/v1/healthz Invoke API ---------- curl http://localhost:8080/api/v1/healthz > server is up and running
If you want to contribute any more examples related to turbo, please follow the below guidelines on how to create a module.
- Follow the basec contribution guidelines present in Readme
- Create the
example
folder under therest-server
folder. - Steps to create an individual
go module
cd example go mod init github.com/nandlabs/golly-samples/rest-server/example go get oss.nandlabs.io/golly
- Now you should be able to create your example