Skip to content

Repository files navigation

INTERESTING LINKS

OpenAPI Profile Creation Tips

  • Create your profile in the Swagger Editor, you’ll see your profile in awesome colors, but be careful, even if you don’t have errors, it doesn’t mean that it is going to compile in the REST Builder
  • Review indents (you should use spaces not tabs)
  • Check your spelling
  • Follow the REST best practices to naming URLs
  • Don’t use “id” to name your identifiers… and in general try to avoid reserved words because it can create issues.
  • Check Javier de Arcos documentation, and double check that you didn’t forget any required parameter.
  • If your profile doesn’t compile, and the error that you get is something like “java.null.pointer exception”, use a minimum template file and add pieces one by one until you find which one is generating the error.
  • If your code is not generated properly, you can remove all the previously generated code and let the REST builder create it again.
  • Don't forget remove all "operationId" in your OpenAPI profile description.
  • From 7.3 you can use the artifact "release.portal.api" which will solve all your dependencies.

About

An example about how to use the Rest Builder tool. Created to show it in /dev/24

Resources

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages