go-msgraph-types

module
v0.0.0-...-616269c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MIT

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

Path Synopsis

Jump to

Keyboard shortcuts

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