Openapi
OpenAPIReader #
Bases: BaseReader
OpenAPI reader.
Reads OpenAPI specifications giving options to on how to parse them.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
depth |
Optional[int]
|
Depth to dive before splitting the JSON. |
1
|
exclude |
Optional[List[str]]
|
JSON paths to exclude, separated by commas by '.'. For example: 'components.pets' will exclude the component 'pets' from the OpenAPI specification. Useful for removing unwanted information from the OpenAPI specification. |
None
|
Returns:
Type | Description |
---|---|
List[Document]: List of documents. |
Source code in llama-index-integrations/readers/llama-index-readers-openapi/llama_index/readers/openapi/base.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|
class_name
classmethod
#
class_name() -> str
Get the name identifier of the class.
Source code in llama-index-integrations/readers/llama-index-readers-openapi/llama_index/readers/openapi/base.py
32 33 34 35 |
|
load_data #
load_data(input_file: str, extra_info: Optional[Dict] = {}) -> List[Document]
Load data from the input file.
Source code in llama-index-integrations/readers/llama-index-readers-openapi/llama_index/readers/openapi/base.py
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|