Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
93 lines (89 sloc)
2.95 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%RAML 1.0 | |
title: Automated patron blocks | |
version: v0.1 | |
baseUri: http://github.com/org/folio/mod-feesfines | |
documentation: | |
- title: API for checking if any automated patron blocks exist for patron | |
content: <b>Automated patron blocks API</b> | |
types: | |
user: !include user.json | |
loan: !include loan.json | |
account: !include accountdata.json | |
errors: !include raml-util/schemas/errors.schema | |
automatedPatronBlocks: !include automated-patron-blocks.json | |
synchronizationJob: !include synchronization-job.json | |
traits: | |
validate: !include raml-util/traits/validation.raml | |
language: !include raml-util/traits/language.raml | |
/automated-patron-blocks: | |
/{userId}: | |
get: | |
responses: | |
200: | |
body: | |
application/json: | |
schema: automatedPatronBlocks | |
example: !include examples/automated-patron-blocks.sample | |
400: | |
description: "Invalid user ID in request" | |
body: | |
text/plain: | |
example: "Bad request, e.g. invalid user UUID" | |
500: | |
description: "Internal server error, e.g. due to misconfiguration" | |
body: | |
text/plain: | |
example: "Internal server error, contact administrator" | |
/synchronization: | |
/job: | |
post: | |
is: [validate] | |
body: | |
application/json: | |
type: synchronizationJob | |
responses: | |
201: | |
description: "Synchronization was done successfully" | |
body: | |
application/json: | |
type: synchronizationJob | |
example: !include examples/synchronization-job.sample | |
422: | |
description: "Job request is not valid" | |
body: | |
text/plain: | |
example: "The job is not valid" | |
500: | |
description: "Internal server error" | |
body: | |
text/plain: | |
example: "Internal server error, please contact administrator" | |
/{syncJobId}: | |
get: | |
description: "Checks synchronization status of job" | |
responses: | |
200: | |
body: | |
application/json: | |
schema: synchronizationJob | |
example: !include examples/synchronization-job.sample | |
404: | |
description: "The job was not found" | |
body: | |
text/plain: | |
example: "Bad request, e.g. invalid user UUID" | |
500: | |
description: "Internal server error, e.g. due to misconfiguration" | |
body: | |
text/plain: | |
example: "Internal server error, contact administrator" | |
/start: | |
post: | |
responses: | |
202: | |
description: "Synchronization job has been accepted for processing" | |
500: | |
description: "Internal server error" | |
body: | |
text/plain: | |
example: "Internal server error, please contact administrator" |