forked from go-swagger/go-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.go
55 lines (50 loc) · 988 Bytes
/
api.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Package booking API.
//
// the purpose of this application is to provide an application
// that is using plain go code to define an API
//
//
// Schemes: https
// Host: localhost
// Version: 0.0.1
//
// Consumes:
// - application/json
//
// Produces:
// - application/json
//
//
// swagger:meta
package booking
import (
"net/http"
"github.com/go-swagger/scan-repo-boundary/makeplans"
)
// BookingResponse represents a scheduled appointment
//
// swagger:response BookingResponse
type BookingResponse struct {
// Booking struct
//
// in: body
// required: true
Booking makeplans.Booking `json:"booking"`
}
// Bookings swagger:route GET /admin/bookings/ booking Bookings
//
// Bookings lists all the appointments that have been made on the site.
//
//
// Consumes:
// application/json
//
// Schemes: http, https
//
// Produces:
// application/json
//
// Responses:
// 200: BookingResponse
func bookings(w http.ResponseWriter, r *http.Request) {
}