module
Version:
v0.0.0-...-616269c
Opens a new window with list of versions in this module.
Published: Apr 9, 2025
License: MIT
Opens a new window with license information.
README
¶
go-msgraph-types
Introduction
Golang's implementation of MSGraph API type definitions.
Usage
import (
"github.com/ms-henglu/go-msgraph-types/types"
)
func main() {
msgraphTypes := DefaultMSGraphSchemaLoader()
// use customized static files
// msgraphTypes := types.NewMSGraphSchemaLoader(embeddedFiles)
// list available api-versions
apiVersions := msgraphTypes.ListAPIVersions() // ["v1.0", "beta"]
// get the resource definition for a specific api-version
resourceDefinition, err := msgraphTypes.GetResourceDefinition("v1.0", "/applications")
// list resources
resourceDefinitions, err := msgraphTypes.ListResources("v1.0") // ["/applications", "/users", ...]
}
Directories
¶
Click to show internal directories.
Click to hide internal directories.