Index

rest endpoint hello world
using System;
using System.IO;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Reflection;
using Microsoft.AspNetCore.Mvc;

namespace cpinfo.Controllers {
    [Route("/agapi/api/charge-points-condensed")]
    public class ChargePointCondensedController : Controller {
        [HttpGet]
        public string Get() {
            return System.IO.File.ReadAllText("resources/condensed.txt");
        }
    }
}
rest endpoint with parameter
[HttpGet("{cp}")] => public string Get(String cp)