Finc-Tenant (v0.1)

http://localhost:9130

Table of contents

finc-config Tenant API

finc-config

/_/finc/tenant

POST /_/finc/tenant

Post a new tenant

POST /_/finc/tenant
Body

Media type: application/json

Response 201

tenant id added successfully, returns a list of commands that have failed while initializing the tenant

Body

Media type: application/json

Type: any

Response 204

tenant id exists, nothing will be added

Response 400

Bad request

Body

Media type: text/plain

Type: any

Response 422

Validation errors

Body

Media type: application/json

Type: json

Content:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "A set of errors",
  "type": "object",
  "properties": {
    "errors": {
      "description": "List of errors",
      "id": "errors",
      "type": "array",
      "items": {
        "type": "object",
        "$ref": "error.schema"
      }
    },
    "total_records": {
      "type": "integer"
    }
  }
}

Example:

{
  "errors": [
    {
      "message": "may not be null",
      "type": "1",
      "code": "-1",
      "parameters": [
        {
          "key": "moduleTo",
          "value": "null"
        }
      ]
    }
  ]
}

Response 500

Internal server error

Body

Media type: text/plain

Type: any

Example:

Internal server error, contact administrator

DELETE /_/finc/tenant

Delete a tenant

DELETE /_/finc/tenant

Response 204

Delete succeeded

Response 400

Bad request

Body

Media type: text/plain

Type: any

Response 500

Internal server error

Body

Media type: text/plain

Type: any

Example:

Internal server error, contact administrator

GET /_/finc/tenant

Does tenant id already exist

GET /_/finc/tenant

Response 200

true or false indicator

Body

Media type: text/plain

Type: any

Example:

Text.....

Response 500

Internal server error

Body

Media type: text/plain

Type: any

Example:

Internal server error, contact administrator