Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

214
Views
Auto Generate Documentation for ASP.net WebAPI

I currently have a MVC project in ASP.Net that is using a WebApi. Most of the code for the controllers is written in c#. I'd like to automatically generate a description of API calls including:

1.) The url of the page/endpoint

2.) Description of what endpoint/page does

3.) List of arguments with descriptions and datatypes.

4.) HTTP Verb (get, post, put, delete)

5.) The permissions required for the page

The description will have to be written manually.

I've read quite a few other articles that result in the individual using a 3rd party application like Swagger. Is there something built in to ASP.Net to help with this? If I wanted to try to generate documentation myself (without using 3rd party software), how would I get started on creating such documentation?

I've spent a fair amount of time googling various queries and can't seem to find an answer.

Edit: What's the benefit of using Swagger over ASP.Net help pages in my case?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

As an alternative to Swagger you can make use of the 'Help Pages' for ASP.NET Web API.

Entries within this documentation are generated automatically and will contain information such as:

  • Relative URI

  • HTTP Method

  • Sample Request/Response data

  • A description of the API purpose (derived from XML comments)

If using a third party component is possible then I would recommend you use Swagger (Use the Swashbuckle NuGet package) to achieve API documentation.

over 4 years ago · Santiago Trujillo Report

0

Swagger does not just list your api uris. Users actually try them out and see the response

Swagger has tools to create the documentation before you implement it.

It can also add description using the comments.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!