> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developer.gitiho.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developer.gitiho.com/_mcp/server.

# List examination

GET https://example.gitiho.com/api/testbank/examination/list

### Get Examination List

Truy xuất danh sách đợt thi của doanh nghiệp

#### Request

Không yêu cầu

#### Response

Dữ liệu được trả về dưới dạng JSON với cấu trúc như dưới đây:

``` json
{
    "status": "success",
    "data": {
        "items": [
            {
                "examination": {
                    "id": 20,
                    "title": "Kiểm tra kì 1",
                    "start_at": "2025-06-18 00:00:00",
                    "expire_at": "2025-06-21 00:00:00",
                    "scoring_mode": "max_score",
                    "pass_score": 80,
                    "remake": 3,
                    "hidden_after_finish": 1,
                    "status": 1,
                    "url": "https://sonleduy.gitihov1.com/contest-doing/iTpW6IZEo0JMaS_yq9GejuOhU"
                }
            },
            {
                "examination": {
                    "id": 19,
                    "title": "Đợi thi hè",
                    "start_at": null,
                    "expire_at": null,
                    "scoring_mode": "last",
                    "pass_score": 80,
                    "remake": 3,
                    "hidden_after_finish": 1,
                    "status": 1,
                    "url": "https://sonleduy.gitihov1.com/contest-doing/9GaEMqe6O2siTbjkCzlHLXFJn"
                }
            }
        ],
        "total": 2,
        "current_page": 1,
        "last_page": 1
    }
}

 ```

The response will include an array of `examinations`, where each examination object will have properties such as `id`, `name`, `date`, and `status`.

Reference: https://developer.gitiho.com/gitiho-business-api/testbank/list-examination

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/testbank/examination/list:
    get:
      operationId: List examination
      summary: List examination
      description: >-
        ### Get Examination List


        Truy xuất danh sách đợt thi của doanh nghiệp


        #### Request


        Không yêu cầu


        #### Response


        Dữ liệu được trả về dưới dạng JSON với cấu trúc như dưới đây:


        ``` json

        {
            "status": "success",
            "data": {
                "items": [
                    {
                        "examination": {
                            "id": 20,
                            "title": "Kiểm tra kì 1",
                            "start_at": "2025-06-18 00:00:00",
                            "expire_at": "2025-06-21 00:00:00",
                            "scoring_mode": "max_score",
                            "pass_score": 80,
                            "remake": 3,
                            "hidden_after_finish": 1,
                            "status": 1,
                            "url": "https://sonleduy.gitihov1.com/contest-doing/iTpW6IZEo0JMaS_yq9GejuOhU"
                        }
                    },
                    {
                        "examination": {
                            "id": 19,
                            "title": "Đợi thi hè",
                            "start_at": null,
                            "expire_at": null,
                            "scoring_mode": "last",
                            "pass_score": 80,
                            "remake": 3,
                            "hidden_after_finish": 1,
                            "status": 1,
                            "url": "https://sonleduy.gitihov1.com/contest-doing/9GaEMqe6O2siTbjkCzlHLXFJn"
                        }
                    }
                ],
                "total": 2,
                "current_page": 1,
                "last_page": 1
            }
        }

         ```

        The response will include an array of `examinations`, where each
        examination object will have properties such as `id`, `name`, `date`,
        and `status`.
      tags:
        - Testbank
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/type_testbank:ListExaminationTestbankResponse
servers:
  - url: https://example.gitiho.com
    description: Default
components:
  schemas:
    type_testbank:ListExaminationTestbankResponseDataItemsItemExamination:
      type: object
      properties:
        id:
          type: integer
        url:
          type: string
          format: uri
        title:
          type: string
        remake:
          type: integer
        status:
          type: integer
        start_at:
          type: string
        expire_at:
          type: string
        pass_score:
          type: integer
        scoring_mode:
          type: string
        hidden_after_finish:
          type: integer
      required:
        - id
        - url
        - title
        - remake
        - status
        - start_at
        - expire_at
        - pass_score
        - scoring_mode
        - hidden_after_finish
      title: ListExaminationTestbankResponseDataItemsItemExamination
    type_testbank:ListExaminationTestbankResponseDataItemsItem:
      type: object
      properties:
        examination:
          $ref: >-
            #/components/schemas/type_testbank:ListExaminationTestbankResponseDataItemsItemExamination
      required:
        - examination
      title: ListExaminationTestbankResponseDataItemsItem
    type_testbank:ListExaminationTestbankResponseData:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: >-
              #/components/schemas/type_testbank:ListExaminationTestbankResponseDataItemsItem
        total:
          type: integer
        last_page:
          type: integer
        current_page:
          type: integer
      required:
        - items
        - total
        - last_page
        - current_page
      title: ListExaminationTestbankResponseData
    type_testbank:ListExaminationTestbankResponse:
      type: object
      properties:
        data:
          $ref: >-
            #/components/schemas/type_testbank:ListExaminationTestbankResponseData
        status:
          type: string
      required:
        - data
        - status
      title: ListExaminationTestbankResponse

```

## Examples

**Response**

```json
{
  "data": {
    "items": [
      {
        "examination": {
          "id": 20,
          "url": "https://lms.gitiho.com/contest-doing/iTpW6IZEo0JMaS_yq9GejuOhU",
          "title": "Kiểm tra kì 1",
          "remake": 3,
          "status": 1,
          "start_at": "2025-06-18 00:00:00",
          "expire_at": "2025-06-21 00:00:00",
          "pass_score": 80,
          "scoring_mode": "max_score",
          "hidden_after_finish": 1
        }
      },
      {
        "examination": {
          "id": 19,
          "url": "https://lms.gitiho.com/contest-doing/9GaEMqe6O2siTbjkCzlHLXFJn",
          "title": "Đợi thi hè",
          "remake": 3,
          "status": 1,
          "start_at": "start_at",
          "expire_at": "expire_at",
          "pass_score": 80,
          "scoring_mode": "last",
          "hidden_after_finish": 1
        }
      }
    ],
    "total": 2,
    "last_page": 1,
    "current_page": 1
  },
  "status": "success"
}
```

**SDK Code**

```python
import requests

url = "https://example.gitiho.com/api/testbank/examination/list"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://example.gitiho.com/api/testbank/examination/list';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://example.gitiho.com/api/testbank/examination/list"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://example.gitiho.com/api/testbank/examination/list")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://example.gitiho.com/api/testbank/examination/list")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://example.gitiho.com/api/testbank/examination/list');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://example.gitiho.com/api/testbank/examination/list");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://example.gitiho.com/api/testbank/examination/list")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```