File: methods.go

package info (click to toggle)
golang-github-akamai-akamaiopen-edgegrid-golang 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,408 kB
  • sloc: sh: 532; makefile: 3
file content (22 lines) | stat: -rw-r--r-- 629 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package apiendpoints

type Methods []Method

type Method struct {
	APIResourceMethodID      int          `json:"apiResourceMethodId"`
	APIResourceMethod        MethodValue  `json:"apiResourceMethod"`
	APIResourceMethodLogicID int          `json:"apiResourceMethodLogicId"`
	APIParameters            []Parameters `json:"apiParameters"`
}

type MethodValue string

const (
	MethodGet     MethodValue = "get"
	MethodPost    MethodValue = "post"
	MethodPut     MethodValue = "put"
	MethodDelete  MethodValue = "delete"
	MethodHead    MethodValue = "head"
	MethodPatch   MethodValue = "patch"
	MethodOptions MethodValue = "options"
)