booking

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookingResponse

type BookingResponse struct {
	// Booking struct
	//
	// in: body
	// required: true
	Body struct {
		Booking  makeplans.Booking `json:"booking"`
		Customer Customer          `json:"customer"`
		Dates    DateRange         `json:"dates"`
	}
}

BookingResponse represents a scheduled appointment

swagger:response BookingResponse

type Customer added in v0.17.0

type Customer struct {
	Name string `json:"name"`
}

Customer of the site.

swagger:model Customer

type DateRange added in v0.17.0

type DateRange struct {
	Start string `json:"start"`
	End   string `json:"end"`
}

DateRange represents a scheduled appointments time DateRange should be in definitions since it's being used in a response

type IgnoreMe added in v0.17.0

type IgnoreMe struct {
	Name string `json:"name"`
}

IgnoreMe should not be added to definitions since it is not annotated.

Jump to

Keyboard shortcuts

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