top of page

Expose Endpoint

  • Writer: ACS Acc
    ACS Acc
  • Jul 27, 2022
  • 1 min read

After creating the Controller, expose the endpoint.


Exposing the endpoint in the Controller

- [HttpGet] <- Attribute - Adding this attribute to the constructor add add parameters.


Also add attributes

[Authorize]

[ApiController]

[Route("[controller]")]

 
 
 

Recent Posts

See All
Building the User Interface (UI)

A while back I decided to build a personal project within my role as SE that would make a difference and be impactful for my...

 
 
 
Dependency Injection

Add own method call in program.cs - Transient = New instance every time - Singleton = An instance once - Scoped = instance per connection...

 
 
 

Commentaires


Post: Blog2_Post
bottom of page