json changes
This commit is contained in:
parent
e803c3bf16
commit
5c0191c47c
@ -0,0 +1,9 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`YourComponent renders the component successfully 1`] = `
|
||||
<div>
|
||||
<ul
|
||||
class="flex flex-col mt-3 bookmark-list"
|
||||
/>
|
||||
</div>
|
||||
`;
|
||||
85
abc.raml
Normal file
85
abc.raml
Normal file
@ -0,0 +1,85 @@
|
||||
#%RAML 1.0
|
||||
|
||||
title: Tenant API
|
||||
baseUri: http://localhost:8081/{version}
|
||||
version: v2
|
||||
|
||||
traits:
|
||||
validate: !include ../traits/validation.raml
|
||||
internal: !include ../traits/internal-error.raml
|
||||
types:
|
||||
tenantAttributes: !include ../schemas/tenantAttributes.schema
|
||||
tenantJob: !include ../schemas/tenantJob.schema
|
||||
errors: !include ../schemas/errors.schema
|
||||
|
||||
/_/tenant:
|
||||
post:
|
||||
description: Create tenant job (create, upgrade, delete)
|
||||
An implementation may choose to return 204 if the job is
|
||||
completed by the initial operation; or it may return 201
|
||||
and start the operation in the background.
|
||||
is: [validate,internal]
|
||||
body:
|
||||
application/json:
|
||||
type: tenantAttributes
|
||||
example:
|
||||
value: !include ../examples/tenantAttributes.sample
|
||||
responses:
|
||||
204:
|
||||
description: "Job completed"
|
||||
201:
|
||||
description: "Tenant job created"
|
||||
body:
|
||||
application/json:
|
||||
type: tenantJob
|
||||
example:
|
||||
value: !include ../examples/tenantJob.sample
|
||||
headers:
|
||||
Location:
|
||||
description: URI of the job
|
||||
400:
|
||||
description: "Bad user request"
|
||||
body:
|
||||
text/plain:
|
||||
/{operation_id}:
|
||||
get:
|
||||
description: Get tenant job
|
||||
queryParameters:
|
||||
wait:
|
||||
description: wait until job change, but no longer than the wait
|
||||
time - in milliseconds. 0 means "no wait" and is behavior if
|
||||
omitted.
|
||||
type: integer
|
||||
required: false
|
||||
default: 0
|
||||
is: [internal]
|
||||
responses:
|
||||
200:
|
||||
description: Tenant job returned OK
|
||||
body:
|
||||
application/json:
|
||||
type: tenantJob
|
||||
example:
|
||||
value: !include ../examples/tenantJob.sample
|
||||
400:
|
||||
description: User error
|
||||
body:
|
||||
text/plain:
|
||||
404:
|
||||
description: Not found
|
||||
body:
|
||||
text/plain:
|
||||
delete:
|
||||
description: Delete job
|
||||
is: [internal]
|
||||
responses:
|
||||
204:
|
||||
description: Job deleted ok
|
||||
400:
|
||||
description: User error
|
||||
body:
|
||||
text/plain:
|
||||
404:
|
||||
description: Not found
|
||||
body:
|
||||
text/plain:
|
||||
85
abx.yaml
Normal file
85
abx.yaml
Normal file
@ -0,0 +1,85 @@
|
||||
#%RAML 1.0
|
||||
|
||||
title: Tenant API
|
||||
baseUri: http://localhost:8081/{version}
|
||||
version: v2
|
||||
|
||||
traits:
|
||||
validate: !include ../traits/validation.raml
|
||||
internal: !include ../traits/internal-error.raml
|
||||
types:
|
||||
tenantAttributes: !include ../schemas/tenantAttributes.schema
|
||||
tenantJob: !include ../schemas/tenantJob.schema
|
||||
errors: !include ../schemas/errors.schema
|
||||
|
||||
/_/tenant:
|
||||
post:
|
||||
description: Create tenant job (create, upgrade, delete)
|
||||
An implementation may choose to return 204 if the job is
|
||||
completed by the initial operation; or it may return 201
|
||||
and start the operation in the background.
|
||||
is: [validate, internal]
|
||||
body:
|
||||
application/json:
|
||||
type: tenantAttributes
|
||||
example:
|
||||
value: !include ../examples/tenantAttributes.sample
|
||||
responses:
|
||||
204:
|
||||
description: "Job completed"
|
||||
201:
|
||||
description: "Tenant job created"
|
||||
body:
|
||||
application/json:
|
||||
type: tenantJob
|
||||
example:
|
||||
value: !include ../examples/tenantJob.sample
|
||||
headers:
|
||||
Location:
|
||||
description: URI of the job
|
||||
400:
|
||||
description: "Bad user request"
|
||||
body:
|
||||
text/plain:
|
||||
/{operation_id}:
|
||||
get:
|
||||
description: Get tenant job
|
||||
queryParameters:
|
||||
wait:
|
||||
description: wait until job change, but no longer than the wait
|
||||
time - in milliseconds. 0 means "no wait" and is behavior if
|
||||
omitted.
|
||||
type: integer
|
||||
required: false
|
||||
default: 0
|
||||
is: [internal]
|
||||
responses:
|
||||
200:
|
||||
description: Tenant job returned OK
|
||||
body:
|
||||
application/json:
|
||||
type: tenantJob
|
||||
example:
|
||||
value: !include ../examples/tenantJob.sample
|
||||
400:
|
||||
description: User error
|
||||
body:
|
||||
text/plain:
|
||||
404:
|
||||
description: Not found
|
||||
body:
|
||||
text/plain:
|
||||
delete:
|
||||
description: Delete job
|
||||
is: [internal]
|
||||
responses:
|
||||
204:
|
||||
description: Job deleted ok
|
||||
400:
|
||||
description: User error
|
||||
body:
|
||||
text/plain:
|
||||
404:
|
||||
description: Not found
|
||||
body:
|
||||
text/plain:
|
||||
85
tenant.raml
Normal file
85
tenant.raml
Normal file
@ -0,0 +1,85 @@
|
||||
#%RAML 1.0
|
||||
|
||||
title: Tenant API
|
||||
baseUri: http://localhost:8081/{version}
|
||||
version: v2
|
||||
|
||||
traits:
|
||||
validate: !include ../traits/validation.raml
|
||||
internal: !include ../traits/internal-error.raml
|
||||
types:
|
||||
tenantAttributes: !include ../schemas/tenantAttributes.schema
|
||||
tenantJob: !include ../schemas/tenantJob.schema
|
||||
errors: !include ../schemas/errors.schema
|
||||
|
||||
/_/tenant:
|
||||
post:
|
||||
description: Create tenant job (create, upgrade, delete)
|
||||
An implementation may choose to return 204 if the job is
|
||||
completed by the initial operation; or it may return 201
|
||||
and start the operation in the background.
|
||||
is: [validate,internal]
|
||||
body:
|
||||
application/json:
|
||||
type: tenantAttributes
|
||||
example:
|
||||
value: !include ../examples/tenantAttributes.sample
|
||||
responses:
|
||||
204:
|
||||
description: "Job completed"
|
||||
201:
|
||||
description: "Tenant job created"
|
||||
body:
|
||||
application/json:
|
||||
type: tenantJob
|
||||
example:
|
||||
value: !include ../examples/tenantJob.sample
|
||||
headers:
|
||||
Location:
|
||||
description: URI of the job
|
||||
400:
|
||||
description: "Bad user request"
|
||||
body:
|
||||
text/plain:
|
||||
/{operation_id}:
|
||||
get:
|
||||
description: Get tenant job
|
||||
queryParameters:
|
||||
wait:
|
||||
description: wait until job change, but no longer than the wait
|
||||
time - in milliseconds. 0 means "no wait" and is behavior if
|
||||
omitted.
|
||||
type: integer
|
||||
required: false
|
||||
default: 0
|
||||
is: [internal]
|
||||
responses:
|
||||
200:
|
||||
description: Tenant job returned OK
|
||||
body:
|
||||
application/json:
|
||||
type: tenantJob
|
||||
example:
|
||||
value: !include ../examples/tenantJob.sample
|
||||
400:
|
||||
description: User error
|
||||
body:
|
||||
text/plain:
|
||||
404:
|
||||
description: Not found
|
||||
body:
|
||||
text/plain:
|
||||
delete:
|
||||
description: Delete job
|
||||
is: [internal]
|
||||
responses:
|
||||
204:
|
||||
description: Job deleted ok
|
||||
400:
|
||||
description: User error
|
||||
body:
|
||||
text/plain:
|
||||
404:
|
||||
description: Not found
|
||||
body:
|
||||
text/plain:
|
||||
0
tennant.raml
Normal file
0
tennant.raml
Normal file
85
vvxx.json
Normal file
85
vvxx.json
Normal file
@ -0,0 +1,85 @@
|
||||
#%RAML 1.0
|
||||
|
||||
title: Tenant API
|
||||
baseUri: http://localhost:8081/{version}
|
||||
version: v2
|
||||
|
||||
traits:
|
||||
validate: !include ../traits/validation.raml
|
||||
internal: !include ../traits/internal-error.raml
|
||||
types:
|
||||
tenantAttributes: !include ../schemas/tenantAttributes.schema
|
||||
tenantJob: !include ../schemas/tenantJob.schema
|
||||
errors: !include ../schemas/errors.schema
|
||||
|
||||
/_/tenant:
|
||||
post:
|
||||
description: Create tenant job (create, upgrade, delete)
|
||||
An implementation may choose to return 204 if the job is
|
||||
completed by the initial operation; or it may return 201
|
||||
and start the operation in the background.
|
||||
is: [validate,internal]
|
||||
body:
|
||||
application/json:
|
||||
type: tenantAttributes
|
||||
example:
|
||||
value: !include ../examples/tenantAttributes.sample
|
||||
responses:
|
||||
204:
|
||||
description: "Job completed"
|
||||
201:
|
||||
description: "Tenant job created"
|
||||
body:
|
||||
application/json:
|
||||
type: tenantJob
|
||||
example:
|
||||
value: !include ../examples/tenantJob.sample
|
||||
headers:
|
||||
Location:
|
||||
description: URI of the job
|
||||
400:
|
||||
description: "Bad user request"
|
||||
body:
|
||||
text/plain:
|
||||
/{operation_id}:
|
||||
get:
|
||||
description: Get tenant job
|
||||
queryParameters:
|
||||
wait:
|
||||
description: wait until job change, but no longer than the wait
|
||||
time - in milliseconds. 0 means "no wait" and is behavior if
|
||||
omitted.
|
||||
type: integer
|
||||
required: false
|
||||
default: 0
|
||||
is: [internal]
|
||||
responses:
|
||||
200:
|
||||
description: Tenant job returned OK
|
||||
body:
|
||||
application/json:
|
||||
type: tenantJob
|
||||
example:
|
||||
value: !include ../examples/tenantJob.sample
|
||||
400:
|
||||
description: User error
|
||||
body:
|
||||
text/plain:
|
||||
404:
|
||||
description: Not found
|
||||
body:
|
||||
text/plain:
|
||||
delete:
|
||||
description: Delete job
|
||||
is: [internal]
|
||||
responses:
|
||||
204:
|
||||
description: Job deleted ok
|
||||
400:
|
||||
description: User error
|
||||
body:
|
||||
text/plain:
|
||||
404:
|
||||
description: Not found
|
||||
body:
|
||||
text/plain:
|
||||
Loading…
Reference in New Issue
Block a user