This file contains hidden or 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
| "paths": { | |
| "/api/candidates": { | |
| "post": { | |
| "tags": [ | |
| "Candidates" | |
| ], | |
| "requestBody": { | |
| "content": { | |
| "application/json": { | |
| "schema": { |
This file contains hidden or 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
| { | |
| "servers": [ | |
| { | |
| "url": "https://development.thetalenbot.com/v1", | |
| "description": "Development environment" | |
| }, | |
| { | |
| "url": "https://staging.thetalenbot.com/v1", | |
| "description": "Staging server" | |
| }, |
This file contains hidden or 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
| "openapi": "3.0.1", | |
| "info": { | |
| "title": "theta-CandidateAPI", | |
| "description": "Candidate API for thetalentbot", | |
| "contact": { | |
| "name": "thetalentbot", | |
| "url": "https://thetalentbot.com/developers/contact" | |
| }, | |
| "license": { | |
| "name": "Not for any public or commercial use", |
This file contains hidden or 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
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| var loggingConfig = new LoggingConfig(); | |
| Configuration.Bind("loggingSettings", loggingConfig); // binding here | |
| services.AddSingleton(loggingConfig); | |
| } |
This file contains hidden or 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
| provider "azurerm" { | |
| version = "=2.8.0" | |
| features {} | |
| } | |
| #create the resource group | |
| resource "azurerm_resource_group" "rg" { | |
| name = "ateam-resource-group" | |
| location = "australiaeast" | |
| } |
This file contains hidden or 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
| Install-Package Microsoft.Extensions.DependencyInjection |
This file contains hidden or 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
| class LoggingConfig | |
| { | |
| public string LogPath {get;set;} | |
| public LogLevel Level {get;set;} | |
| } | |
This file contains hidden or 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
| terraform apply -var="location=australiaeast" -var "vnet_address_space=[`"10.0.0.0/16`"]" |
This file contains hidden or 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
| ##create the network interface for the VM | |
| resource "azurerm_public_ip" "pub_ip" { | |
| name = "vmpubip" | |
| location = "australiaeast" | |
| resource_group_name = azurerm_resource_group.rg.name | |
| allocation_method = "Dynamic" | |
| } | |
| output "pip" { | |
| description = "Public IP Address of Virtual Machine" |
This file contains hidden or 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
| #create the resource group | |
| resource "azurerm_resource_group" "rg" { | |
| name = "ateam-resource-group" | |
| location = var.location | |
| } | |
| #create the virtual network | |
| resource "azurerm_virtual_network" "vnet1" { | |
| resource_group_name = azurerm_resource_group.rg.name | |
| location = var.location |