Questions tagged [swagger]

Also known as OpenAPI Specification is a specification for describing how to produce and consume RESTful web services.

Filter by
Sorted by
Tagged with
0 votes
2 answers
225 views

How to keep OpenAPI specification up-to-date and compliant without using code generators?

In our company, there is no standard for how to document APIs. Missing API documentation slows down the development process. Therefore, we want to introduce OpenAPI. We want to use code generators to ...
Harold L. Brown's user avatar
0 votes
2 answers
1k views

Golang Design Pattern for Generating View Objects in a REST API?

I have moderate Golang experience and lots of experience in other programming languages such as Java, Python, Rust, Scala, and others. I'm comfortable with building REST services and most of the other ...
Naftuli Kay's user avatar
  • 1,601
1 vote
1 answer
789 views

What is the better way to save swagger code gen plugin generated model classes in spring boot maven application?

I am working on a spring boot maven project in Eclipse IDE. And here is my pom.xml. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/...
happytohelp's user avatar
1 vote
1 answer
227 views

Should I use swagger on all REST APIs?

I am looking to add Swagger documentation to my REST APIs but am wondering if it makes sense to add it to all APIs or not. Most of my APIs will only be used by a UI so if I expose for instance a POST ...
linuxNoob's user avatar
  • 183
5 votes
1 answer
1k views

How to properly version an API?

I'm designing an API for our web application, that will be consumed by mobile developers that will create our mobile app. I chose to document it using Swagger / OpenAPI 3.0.0. I'm surprised that when ...
BenMorel's user avatar
  • 283
1 vote
0 answers
175 views

Automate writing of API tests(postman or other)

I am currently using Postman, Newman and Jenkins to automate the process of testing API end points. The API is being written in Node.js and Express.js. Currently the tests I write with Postman are ...
goldfishalpha's user avatar
1 vote
0 answers
740 views

How to make rest api end points in swagger UI pre authenticated in Spring BOOT [closed]

I have written a spring boot rest API application with OAuth.I have integrated swagger UI for API documentation. I want the API endpoints on swagger UI to be accessible without an access token. This ...
Curious's user avatar
  • 11
3 votes
2 answers
2k views

How to document REST API before coding

My team is working on a web application using Micro Service Architecture and Angular + Spring MVC. We follow Agile development. For each story, we create few implementation and test tasks. Documenting ...
TechCrunch's user avatar
5 votes
2 answers
305 views

Is it legal for a RESTful API to provide different structures for a given resource? How should that be modeled?

I'm using swagger to prototype a RESTful API and I got to a situation where one property is part of a resource but not always should be filled. Let's say my resource is stores. Basic endpoints would ...
Rodrigo Lira's user avatar
3 votes
1 answer
486 views

Workflow when using generated code

I'm working with Swagger to generate the API of my application. Swagger is an API specification language that can be used by a code generator to generate code stubs for your application. Obviously you ...
David George's user avatar