Let us know what you need help with

We can't wait to share what we've been building.

Join The Beta

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
1
type Order struct {
2
   OrderID    string
3
   CustomerName     string
4
   OrderedAt    time.Time
5
}
6
// @api /orders [get]
7
func getOrders(w http.ResponseWriter, r   http.Request) {
8
   w.Header().Set("Content-Type", "application/json")
9
   json.NewEncoder(w).Encode(orders)
10
}
11
func main() {
12
   router: = mux.NewRouter()
13
   router.HandleFunc("/orders", getOrders).Methods("GET")
14
   log.Fatal(http.ListenAndServe(":8080", router))
15
}

Stay in touch as we build!

In Email

On Social

Get advice on API development, see what the Speakeasy team is working on, and what we learn along the way.

Follow us wherever you’re most active!