Simple examples to create api on windows
Need to create simple api on windows
Some examples
Thank you
Simple examples to create api on windows
Need to create simple api on windows
Some examples
Thank you
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit MohantyRank #112 · 20K reputationPosted Nov 28, 2023, 5:58 AM EST
What do you mean by create api on windows, could you clarify your question more concisely?
Sam HobbsRank #107 · 20.5K reputationPosted Nov 28, 2023, 12:34 PM EST
If you do not need a web API then probably you just need to create a Class Library project.
What type of application would be using the API?
Vishal JoshiRank #377 · 6.7K reputationPosted Nov 28, 2023, 7:24 AM EST
Hello
Check the below steps to create API:
using System.Net; using System.Net.Http; using System.Web.Http; namespace WebAPI.Controllers { public class DemoController: ApiController { public string Get() { return "Welcome To Web API"; } public List Get(int Id) { return new List { "Data1", "Data2" }; } } }http://localhost:53027/api/SampleAPI/1Thanks
Vishal Joshi