Tac

This section give's control and information for the terms and conditions documents.
terms and conditions documents are files that any user need's to approve before he can log in to the system.
After user is approving a document, the "approvment" will be saved in its own table.
Admin logged in - can see,edit and upload new files for the users to approve.
User logged in - can see it's own documents that needs to be approved.

get-pending-tacs-list-to-approve

Return a list of pending terms and conditions for the user to approve

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
200

Success

401

Unauthorized

403

Forbidden

get/tac
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": [
    ]
}

approve-tac

Approve document by user and change it's status.

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Request Body schema: application/json
required

raw(json)

status
boolean
url
string
Responses
200

Success

401

Unauthorized

403

Forbidden

422

Unprocessable Content

post/tac
Request samples
application/json
{}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

get-exact-tac

Get specific tac document from the db by tac_id

SecurityAuthorization
Request
path Parameters
tac_id
required
string

tac_id path parameter

Example: <tac_id>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
200

Success

401

Unauthorized

403

Forbidden

get/tac/{tac_id}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

update-exact-tac

Update tac document by tac_id in url

SecurityAuthorization
Request
path Parameters
tac_id
required
string

tac_id path parameter

Example: <tac_id>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Request Body schema: application/json
required

raw(json)

status
boolean
url
string
Responses
200

Success

401

Unauthorized

403

Forbidden

422

Unprocessable Content

put/tac/{tac_id}
Request samples
application/json
{}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

delete-exact-tac

Delete tac document by tac_id in url

SecurityAuthorization
Request
path Parameters
tac_id
required
string

tac_id path parameter

Example: <tac_id>
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
204

No Content (Success)

401

Unauthorized

403

Forbidden

delete/tac/{tac_id}
Response samples
application/json
{ }