This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/board-formatting.schema.json", | |
"hideSelection": false, | |
"formatter": { | |
"elmType": "div", | |
"attributes": { | |
"class": "sp-card-container sp-card-container-noPadding" | |
}, | |
"children": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/microsoft/dev-proxy/main/schemas/v1.0/crudapi.schema.json", | |
"baseUrl": "https://api.contoso.com/v1/customers", | |
"dataFile": "customers-data.json", | |
"actions": [ | |
{ | |
"action": "getAll" | |
}, | |
{ | |
"action": "getOne", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"baseUrl": "https://api.contoso.com/v1/customers", | |
"dataFile": "customers-data.json", | |
"actions": [ | |
{ | |
"action": "getAll" | |
}, | |
{ | |
"action": "getOne", | |
"url": "/{customer-id}", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# export cert from keychain to PEM | |
security find-certificate -c "Titanium Root Certificate Authority" -a -p > proxy-cert.pem | |
# add trusted cert to keychain | |
security add-trusted-cert -r trustRoot -k ~/Library/Keychains/login.keychain-db proxy-cert.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New-Item -ItemType Directory -Force -Path .\devproxy -ErrorAction Stop | Out-Null | |
Set-Location .\devproxy | Out-Null | |
# Get the full path of the current directory | |
$full_path = Resolve-Path . | |
# Get the latest Dev Proxy version | |
Write-Host "Getting latest Dev Proxy version..." | |
$response = Invoke-RestMethod -Uri "https://api.github.com/repos/microsoft/dev-proxy/releases/latest" -ErrorAction Stop | |
$version = $response.tag_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
arg1=$1 | |
# Get the list of network services | |
network_services=$(networksetup -listallnetworkservices | tail -n +2) | |
if [[ "$arg1" == "on" ]]; then | |
while IFS= read -r service; do | |
networksetup -setwebproxy "$service" 127.0.0.1 8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# stop on the first error | |
set -e | |
architecture="osx-x64" | |
release="m365-developer-proxy-$architecture-local" | |
# Clean | |
rm -rf ./$release | |
# Publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Markdig; | |
using Microsoft.Graph.Models.ExternalConnectors; | |
using YamlDotNet.Serialization; | |
// [...] trimmed for brevity | |
static class ContentService | |
{ | |
static IEnumerable<BlogPost> Extract() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static class ConnectionService | |
{ | |
async static Task CreateConnection() | |
{ | |
await GraphService.Client.External.Connections | |
.PostAsync(ConnectionConfiguration.ExternalConnection); | |
} | |
async static Task CreateSchema() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text.Json; | |
using Microsoft.Graph.Models; | |
using Microsoft.Graph.Models.ExternalConnectors; | |
static class ConnectionConfiguration | |
{ | |
public static ExternalConnection ExternalConnection | |
{ | |
get | |
{ |
NewerOlder