Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
mod-copycat/ramls/copycat.raml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
142 lines (138 sloc)
3.35 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: copycat | |
version: v0.0 | |
protocols: [ HTTP, HTTPS ] | |
baseUri: http://localhost | |
types: | |
copyCatImports: !include copycatimports.json | |
copyCatProfile: !include copycatprofile.json | |
copyCatCollection: !include copycatcollection.json | |
error: !include raml-util/schemas/error.schema | |
errors: !include raml-util/schemas/errors.schema | |
traits: | |
pageable: !include raml-util/traits/pageable.raml | |
searchable: !include raml-util/traits/searchable.raml | |
/copycat: | |
/imports: | |
post: | |
description: Import record from external system | |
body: | |
application/json: | |
type: copyCatImports | |
responses: | |
200: | |
description: Imported OK | |
body: | |
application/json: | |
type: copyCatImports | |
400: | |
description: Import error | |
body: | |
application/json: | |
type: errors | |
500: | |
description: Internal error | |
body: | |
text/plain: | |
/profiles: | |
post: | |
description: Create profile | |
body: | |
application/json: | |
type: copyCatProfile | |
responses: | |
201: | |
description: Created OK | |
headers: | |
Location: | |
description: URI of profile | |
body: | |
application/json: | |
type: copyCatProfile | |
400: | |
description: Error in usage | |
body: | |
text/plain: | |
500: | |
description: Internal error | |
body: | |
text/plain: | |
get: | |
is: [pageable, | |
searchable: { | |
description: "search profiles", | |
example: "name = loc"} | |
] | |
description: Get profiles | |
responses: | |
200: | |
description: Get collection OK | |
body: | |
application/json: | |
type: copyCatCollection | |
400: | |
description: Error in usage | |
body: | |
text/plain: | |
500: | |
description: Internal error | |
body: | |
text/plain: | |
/{id}: | |
get: | |
description: Get profile | |
responses: | |
200: | |
description: retrieved OK | |
body: | |
application/json: | |
type: copyCatProfile | |
400: | |
description: User error | |
body: | |
text/plain: | |
404: | |
description: Not found | |
body: | |
text/plain: | |
500: | |
description: Internal error | |
body: | |
text/plain: | |
put: | |
description: Update target profile | |
body: | |
application/json: | |
type: copyCatProfile | |
responses: | |
204: | |
description: updated OK | |
400: | |
description: User error | |
body: | |
text/plain: | |
404: | |
description: Not found | |
body: | |
text/plain: | |
500: | |
description: Internal error | |
body: | |
text/plain: | |
delete: | |
description: Delete target profile | |
responses: | |
204: | |
description: deleted OK | |
400: | |
description: User error | |
body: | |
text/plain: | |
404: | |
description: Not found | |
body: | |
text/plain: | |
500: | |
description: Internal error | |
body: | |
text/plain: | |