-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Expand file tree
/
Copy pathapi.go
More file actions
34 lines (26 loc) · 1.13 KB
/
api.go
File metadata and controls
34 lines (26 loc) · 1.13 KB
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
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
/*
* optional body
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* API version: 1.0.1
*/
package petstoreserver
import (
"context"
"net/http"
)
// JustApiAPIRouter defines the required methods for binding the api requests to a responses for the JustApiAPI
// The JustApiAPIRouter implementation should parse necessary information from the http request,
// pass the data to a JustApiAPIServicer to perform the required actions, then write the service results to the http response.
type JustApiAPIRouter interface {
SendOptionalPayload(http.ResponseWriter, *http.Request)
}
// JustApiAPIServicer defines the api actions for the JustApiAPI service
// This interface intended to stay up to date with the openapi yaml used to generate it,
// while the service implementation can be ignored with the .openapi-generator-ignore file
// and updated with the logic required for the API.
type JustApiAPIServicer interface {
SendOptionalPayload(context.Context, Payload) (ImplResponse, error)
}