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
global using System; | |
global using Microsoft.AspNetCore.Hosting; | |
global using Microsoft.Extensions.Hosting; | |
global using Microsoft.Extensions.Logging; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace Umbracov9AlphaAPIs.APIModels | |
{ | |
public class BlogPostModel | |
{ | |
public string Title { get; init; } |
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
using Microsoft.AspNetCore.Mvc; | |
using System.Collections.Generic; | |
using Umbraco.Cms.Core; | |
using Umbraco.Cms.Web.Common.Controllers; | |
using Umbraco.Extensions; | |
using Umbracov9AlphaAPIs.APIModels; | |
namespace Umbracov9AlphaAPIs.Controllers | |
{ | |
[ApiController] |
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
using System; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.OpenApi.Models; | |
using Umbraco.Cms.Core.DependencyInjection; | |
using Umbraco.Extensions; | |
namespace Umbraco.Cms.Web.UI.NetCore |
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
using Microsoft.AspNetCore.Mvc; | |
using System.Collections.Generic; | |
using Umbraco.Cms.Core; | |
using Umbraco.Cms.Web.Common.Controllers; | |
using Umbraco.Extensions; | |
using Umbracov9AlphaAPIs.APIModels; | |
namespace Umbracov9AlphaAPIs.Controllers | |
{ | |
public class BlogController : UmbracoApiController |
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": "CaroleExampleApp", | |
"version": "v1" | |
}, | |
"paths": { | |
"/Blog": { | |
"get": { | |
"tags": [ |
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
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.Extensions.Logging; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace CaroleExampleApp.Controllers | |
{ | |
[ApiController] |
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
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.OpenApi.Models; | |
namespace CaroleExampleApp | |
{ | |
public class Startup |
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
using System; | |
var glasgowMeetup = new Meetup() { | |
City ="Glasgow", | |
Topic = ".Net" | |
}; | |
var edinburghMeetup = glasgowMeetup with { City="Edinburgh" }; | |
glasgowMeetup.Topic = "Umbraco"; |
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
using System; | |
var glasgowMeetup = new Meetup() { | |
City ="Glasgow", | |
Topic = ".Net" | |
}; | |
glasgowMeetup.Topic = "Umbraco"; | |
glasgowMeetup.City = "Edinburgh"; |