Vridlo/api/vridlo.tags

vridlo.tags
It allows accessing to a list of tags, which are presented in the system. Do not poll this method more than once an hour. Added into API v1.0. It implements operation on the Tag structure.

GET:/v1/tags.json
Returns a list of tags, which are presented in the system. Do not poll this method more than once an hour. Added into API v1.0.

Authentication
This method requires NO authentication.

Arguments
NOTE: Arguments can be provided as arguments along with headers fields.

Number of items to return per page. If this argument is omitted, it defaults to 10. The maximum allowed value is 50. The page of results to return. If this argument is omitted, it defaults to 1.
 * per_page (Optional)
 * page (Optional)

Example Request Url
GET:/v1/tags.json

Example Good Response
[  {      "id": 1, "name": "2", "description": "Info tag", "used_in_rpm_count": 2, } ]

Example Bad Response
Error response 416:

{  "message": "Error text according the active language", }

Return Codes
The resource list is accessible. Returned data responds to the current state of the resource list, and reading the list is finished.
 * 200 (OK)

The resource list is accessible. Returned data responds to the current state of the resource list, and reading the list is NOT finished yet.
 * 206 (Partial Content)

The resource list is accessible. But data can't be returned since range provided don't match the list boundaries.
 * 416 (Range Not Satisfiable)

SSL is required to access the Vridlo API.
 * 422.3 (SSL is required)

The requested service is temporarily unavailable.
 * 500 (Service currently unavailable)

POST:/v1/tags.json
Creates the tag using the set of properties passed as form data or get parameter array, and returns state of the created record as JSON. Added into API v1.0.

Authentication
This method requires write authentication with write permission token to tag model.

Arguments
Name for the tag. Must be unique among the tag names, and contains only letters and underscores. Description of the tag.
 * name is string (Mandatory)
 * description is string (Optional)

Example Request Url
POST:/v1/tags.json?name=tag_name&description=Info_tag

Example Request Form
POST:/v1/tags.json DATA: {  "description": "Info_tag", "name": "tag_name", }

Example Good Response
Good response with created record:

{    "id": 1, "name": "tag_name", "description": "Info_tag", "used_in_rpm_count": 0, }

Example Bad Response
Error response 423:

{  "error_code": 3, "message": "Error text according the active language", }

Return Codes
The resource wasn't found, and was created. Returned data responds to the current state of the resource.
 * 200 (OK)

SSL is required to access the Vridlo API.
 * 422.3 (SSL is required)

The incoming data is invalid. See details for help.
 * 422.5 (Invalid incoming data)

The record with provided slug is not found.
 * 404 (Not Found)

The Internal Server Error has occurred.
 * 500 (Internal Server Error)

GET:/v1/tags/ .json
Gets properties of the tag specified by URI-parameter, and returns then as JSON. Do not poll this method more than once an hour. Added into API v1.0.

Authentication
This method requires NO authentication.

Arguments
This method requires NO arguments.

Example Request Url
GET:/v1/tags/tag_name

Example Good Response
Good response with the returned record:

{    "id": 1, "name": "tag_name", "description": "Info tag", "used_in_rpm_count": 0, }

Example Bad Response
Error response 423:

{  "error_code": 3, "message": "Error text according the active language", }

Return Codes
The resource was found and is accessible. Returned data responds to the current state of the resource.
 * 200 (OK)

SSL is required to access the Vridlo API.
 * 422.3 (SSL is required)

The record with provided slug is not found.
 * 404 (Not Found)

The Internal Server Error has occurred.
 * 500 (Internal Server Error)

PATCH:/v1/tags/ .json
Overwrites one or many specified only properties of the tag specified by URI-parameter, and returns updated state as JSON. Added into API v1.0.

Authentication
This method requires write authentication with write permission token to tag model.

Arguments
NOTE: Blank fields will be skipped, new array fields will be appended

Description of the tag.
 * description is string (Optional)

Example Request Url
PATCH:/v1/tags/tag_name?description=Info_tag

Example Request Form
PATCH:/v1/tags/tag_name DATA: {  "description": "Info tag", }

Example Good Response
Good response with updated record:

{    "id": 1, "name": "tag_name", "description": "Info tag", "used_in_rpm_count": 0, }

Example Bad Response
Error response 423:

{  "error_code": 3, "message": "Error text according the active language", }

Return Codes
The resource was found and is accessible. Changes were made on the resource successfully. Returned data responds to the current state of the resource.
 * 200 (OK)

The resource was found and is accessible. But no changes were made on the resource.
 * 204 (No Content)

SSL is required to access the Vridlo API.
 * 422.3 (SSL is required)

The incoming data is invalid. See details for help.
 * 422.5 (Invalid incoming data)

The record with provided id/slug is not found.
 * 404 (Not Found)

The Internal Server Error has occurred.
 * 500 (Internal Server Error)

DELETE:/v1/tags/ .json
Destroys the tag specified by URI-parameter, and returns state of the destroyed record as JSON. Added into API v1.0.

Authentication
This method requires write authentication with write permission token to tag model.

Arguments
This method requires NO arguments.

Example Request Url
DELETE:/v1/tags/tag_name

Example Good Response
Good response returning deleted record:

{    "id": 1, "name": "tag_name", "description": "Info tag", "used_in_rpm_count": 0, }

Example Bad Response
Error response 423:

{  "error_code": 3, "message": "Error text according the active language", }

Return Codes
The resource was found and is accessible, and successfully destroyed. Returned data responds to the state of the destroyed resource.
 * 200 (OK)

SSL is required to access the Vridlo API.
 * 422.3 (SSL is required)

The record with provided slug is not found.
 * 404 (Not Found)

The Internal Server Error has occurred.
 * 500 (Internal Server Error)