hashipet

command module
v0.0.0-...-f6ef990 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 17 Imported by: 0

README

HashiPet

The API for pets of HashiCorp

Requirements

Go 1.18+

Running

Running main.go starts a web server on http://0.0.0.0:8080/.

$ go run main.go

Example requests

curl -X POST "http://0.0.0.0:8080/v1/pets" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{\"name\":\"Floyd\",\"owner\":\"Justin\",\"species\": \"SPECIES_PIG\",\"picture_url\":\"https://i.imgur.com/fbzdvB7.jpg\"}"
curl -X POST "http://0.0.0.0:8080/v1/pets" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{\"name\":\"Penny\",\"owner\":\"Caroline\",\"species\": \"SPECIES_CAT\",\"picture_url\":\"https://i.imgur.com/i08E7uB.jpg\"}"
curl -X POST "http://0.0.0.0:8080/v1/pets" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{\"name\":\"Bear\",\"owner\":\"Irena\",\"species\": \"SPECIES_DOG\",\"picture_url\":\"https://i.imgur.com/3koghMg.jpg\"}"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
proto
hashipet/v1
Package hashipetv1 is a reverse proxy.
Package hashipetv1 is a reverse proxy.

Jump to

Keyboard shortcuts

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