Web API 调用Demo
工具:Firefox RestClient
请求方法:get post put delete
URL: http://localhost:57558/api/values/105
测试数据:
{"License":"C99999","MT":"123123","MemberType":"VIP","MemberDT0":"2019-06-06 00:00:00","MemberDT1":"2019-06-06 00:00:00","Address":"1","ParkNum":"111","LastTime":"2019-06-06 23:21:59"}
后端demo:
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Threading.Tasks;
using Dapper;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using WebAPIdemo.Models;
namespace WebAPIdemo.Controllers
{
[Route("api/[controller]")]
[Produces("application/json")]
public class ValuesController : Contr