todo-terraform-provider-class

module
v0.0.0-...-07f6758 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0

README

Todo for Terraform

  • Requires (recent versions, but approximate):
    • go 1.13.X (compiling)
    • docker 19.X (build & test scripts)
    • docker-compose 1.24.X (build & test scripts)

Todo Server

Quick Start
docker run --name todo-list -p 8080:80 spkane/todo-list-server:latest
Build Server
./bin/build.sh server
Usage
curl -i http://127.0.0.1:8080/
curl -i http://127.0.0.1:8080/ -d "{\"description\":\"message $RANDOM\"}" -H 'Content-Type: application/spkane.todo-list.v1+json'
curl -i http://127.0.0.1:8080/ -d "{\"description\":\"message $RANDOM\",\"completed\":false}" -H 'Content-Type: application/spkane.todo-list.v1+json'
curl -i http://127.0.0.1:8080/ -d "{\"description\":\"message $RANDOM\",\"completed\":false}" -H 'Content-Type: application/spkane.todo-list.v1+json'
curl -i http://127.0.0.1:8080/3 -X PUT -H 'Content-Type: application/spkane.todo-list.v1+json' -d '{"description":"go shopping",\"completed\":true}'
curl -i http://127.0.0.1:8080/1 -X DELETE -H 'Content-Type: application/spkane.todo-list.v1+json'
curl -i http://127.0.0.1:8080/3 -X DELETE -H 'Content-Type: application/spkane.todo-list.v1+json'
curl -i http://127.0.0.1:8080

Terraform Provider

Build & Test
./bin/build.sh provider

The build script runs the Integration tests. If you want to run real local terraform tests, you can run this script:

./bin/tests_manual.sh

TODOs

  • https setup
  • Setup docker-compose to use pre-built binary

Directories

Path Synopsis
cmd
provider-parts
Package restapi A To Do list application The product of a tutorial on goswagger.io Schemes: http Host: localhost BasePath: / Version: 1.0.0 Consumes: - application/spkane.todo-list.v1+json Produces: - application/spkane.todo-list.v1+json swagger:meta
Package restapi A To Do list application The product of a tutorial on goswagger.io Schemes: http Host: localhost BasePath: / Version: 1.0.0 Consumes: - application/spkane.todo-list.v1+json Produces: - application/spkane.todo-list.v1+json swagger:meta

Jump to

Keyboard shortcuts

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