DPC2022: Use an API contract for testing and development!

Learn how to leverage OpenAPI to streamline API development, testing, and deployment, from defining endpoints and behavior to generating client packages and automating pipelines with GitLab.

Key takeaways
  • Use the OpenAPI specification to define API endpoints and their behavior
  • Use the OpenAPI specification to generate a client package that can be used in a front-end application
  • Use containerization to provision the API classes and sync them with the host computer
  • Use a pipeline to automatically generate and publish the client package
  • Use GitLab to store and manage the package and its dependencies
  • Use the API generator to create a server stub that can be used to bootstrap a project
  • Use Swagger UI to generate a client-side API documentation
  • Use the OpenAPI specification to define validation rules for API requests and responses
  • Use the OpenAPI specification to define support for asynchronous API calls
  • Use the OpenAPI specification to define support for events and messages
  • Use the OpenAPI specification to define support for pagination of API calls
  • Use the OpenAPI specification to define support for different request and response formats (e.g. JSON, XML)