Skip to content

JuliaComputing/OpenAPI.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4350fbb · Feb 19, 2025
Sep 24, 2024
May 18, 2024
Feb 19, 2025
Jul 22, 2024
Jul 28, 2023
Jul 26, 2024
Sep 14, 2022
Feb 19, 2025
Jul 26, 2024
Jan 16, 2023

Repository files navigation

OpenAPI

Build Status codecov

This is the Julia library needed along with code generated by the OpenAPI generator to help define, produce and consume OpenAPI interfaces.

Quick Guide

  • Create an API specification. Check out OpenAPI-Spec for specification syntax and examples.
  • Use instructions provided for the Julia OpenAPI code generator plugin to generate Julia code.
  • Client:
    • Use the generated client in Julia directly to invoke APIs
  • Server:
    • Provide code to handle API invocations on the server side by implementing the Julia methods corresponding to API stubs.
    • Start a server using HTTP.jl and register the generated request handlers.

Examples

The Petstore is a common example that most OpenAPI implementations use to test and demonstrate. Clients and servers generated from both version 2 and 3 specifications are included in this repo.