--- swagger: "2.0" basePath: /api/v1 paths: $ref: paths.json definitions: $ref: definitions.json parameters: $ref: parameters.json x-primitives: $ref: x-primitives.json info: title: Koha REST API version: "1" license: name: GPL v3, url: http://www.gnu.org/licenses/gpl.txt contact: name: Koha Development Team url: https://koha-community.org/ description: | ## Introduction This API is documented in **OpenAPI format**. ## Authentication The API supports the following authentication mechanisms * HTTP Basic authentication * OAuth2 (client credentials grant) * Cookie-based Both _Basic authentication_ and the _OAuth2_ flow, need to be enabled by system preferences. ## Errors The API uses standard HTTP status codes to indicate the success or failure of the API call. The body of the response will be JSON in the following format: ``` { "error": "patron not found" } ``` Note: Some routes might offer additional attributes in their error responses but that's subject to change and thus not documented. ## Special headers ### x-koha-library This optional header should be passed to give your api request a library context; If it is not included in the request, then the request context will default to using your api comsumer's assigned home library. tags: - name: "article_requests" x-displayName: Article requests description: | Manage article requests - name: "biblios" x-displayName: Biblios description: | Manage bibliographic records - name: "cashups" x-displayName: Cashups description: | Manage cash register cashups - name: "checkouts" x-displayName: Checkouts description: | Manage checkouts - name: "circulation_rules" x-displayName: Circulation rules description: | Manage circulation rules - name: "cities" x-displayName: Cities description: | Manage cities - name: "clubs" x-displayName: Clubs description: | Manage patron clubs - name: "funds" x-displayName: Funds description: | Manage funds for the acquisitions module - name: "holds" x-displayName: Holds description: | Manage holds - name: "illbackends" x-displayName: ILL backends description: | Manage ILL module backends - name: "illrequests" x-displayName: ILL requests description: | Manage ILL requests - name: "items" x-displayName: Items description: | Manage items - name: "library" x-displayName: Libraries description: | Manage libraries - name: "macros" x-displayName: Macros description: | Manage macros - name: "orders" x-displayName: Orders description: | Manage acquisition orders - name: "oauth" x-displayName: "OAuth" description: | Handle OAuth flows - name: "patrons" x-displayName: Patrons description: | Manage patrons - name: "quotes" x-displayName: Quotes description: | Manage quotes - name: "return_claims" x-displayName: Return claims description: | Manage return claims - name: "rotas" x-displayName: Rotas description: | Manage rotas - name: "smtp_servers" x-displayName: SMTP servers description: | Manage SMTP servers configurations - name: "transfer" x-displayName: Transfer limits description: | Manage transfer limits - name: "suggestions" x-displayName: "Purchase suggestions" description: | Manage purchase suggestions - name: "vendors" x-displayName: "Vendors" description: | Manage vendors for the acquisitions module - name: "batch_import_profiles" x-displayName: Batch import profiles description: | Manage batch import profiles