Permalink
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (36 sloc) 1.45 KB
#%RAML 1.0
title: "mod-orders-storage"
baseUri: http://github.com/folio-org/mod-orders-storage
version: v1
documentation:
- title: mod-orders
content: <b>This module implements the CRUD interface</b>
types:
purchase_order: !include acq-models/mod-orders-storage/schemas/purchase_order.json
purchase_order_collection: !include acq-models/mod-orders-storage/schemas/purchase_order_collection.json
traits:
orderable: !include raml-util/traits/orderable.raml
pageable: !include raml-util/traits/pageable.raml
searchable: !include raml-util/traits/searchable.raml
language: !include raml-util/traits/language.raml
resourceTypes:
collection: !include raml-util/rtypes/collection.raml
collection-item: !include raml-util/rtypes/item-collection.raml
/purchase_order:
type:
collection:
exampleCollection: !include acq-models/mod-orders-storage/examples/purchase_order_collection.sample
exampleItem: !include acq-models/mod-orders-storage/examples/purchase_order_get.sample
schemaCollection: purchase_order_collection
schemaItem: purchase_order
get:
description: Get list of purchase orders
is: [
searchable: {description: "with valid searchable fields: for example code", example: "[\"code\", \"MEDGRANT\", \"=\"]"},
pageable
]
/{id}:
type:
collection-item:
exampleItem: !include acq-models/mod-orders-storage/examples/purchase_order_get.sample
schema: purchase_order