cancel
Showing results for 
Search instead for 
Did you mean: 

Integrate Swagger with FHIR HAPI models

Visitor

Integrate Swagger with FHIR HAPI models

I would like to create an FHIR API using swagger. Is there any way to specify custom models and parser (HAPI models and HAPI model parsers) in the swagger.yaml file.
These response models are defined in the HAPI libraries (hapi-fhir-structures-dstu3). I would like to generate API code using swagger-codegen with the models defined in the HAPI library.

2 REPLIES 2
Community Hero

Re: Integrate Swagger with FHIR HAPI models

Interesting topic. Never heard such use case.

Are you sure that HAPI does not have any existing swagger definitions of their own? If so, possible to use that?


Regards,
Rao.
Occasional Visitor

Re: Integrate Swagger with FHIR HAPI models

Hi!

 

Currently custom models are not being supported. The generated code will work with models defined in swagger definition document (the yaml/json file). You can build a definition adding FHIR HAPI models and can generate projects in differents with codegen v2 and v3.

Ask a SmartBear
Top Kudoed Authors