For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://docs.ivfprovider.com/ivf-agency-ap-is/sperm-donor/questionaries/llms.txt. For full documentation content, see https://docs.ivfprovider.com/ivf-agency-ap-is/sperm-donor/questionaries/llms-full.txt.

# Get Questions

GET http://localhost:8000/api/sperm-donors/{id}/question-categories/{category_id}

Reference: https://docs.ivfprovider.com/ivf-agency-ap-is/sperm-donor/questionaries/get-questions

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/sperm-donors/{id}/question-categories/{category_id}:
    get:
      operationId: get-questions
      summary: Get Questions
      tags:
        - subpackage_spermDonor.subpackage_spermDonor/questionaries
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
        - name: category_id
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Sperm Donor_Questionaries_Get
                  Questions_Response_200
servers:
  - url: http://localhost:8000
components:
  schemas:
    ApiSpermDonorsIdQuestionCategoriesCategoryIdGetResponsesContentApplicationJsonSchemaSubCategoriesItemsQuestionsItems:
      type: object
      properties:
        id:
          type: integer
        sub_category_id:
          type: integer
        question:
          type: string
        hint:
          type: string
        example_answer:
          description: Any type
        ans_type:
          type: string
        radio_options:
          description: Any type
        show_text_on:
          description: Any type
        question_answer:
          description: Any type
      required:
        - id
        - sub_category_id
        - question
        - hint
        - ans_type
      title: >-
        ApiSpermDonorsIdQuestionCategoriesCategoryIdGetResponsesContentApplicationJsonSchemaSubCategoriesItemsQuestionsItems
    ApiSpermDonorsIdQuestionCategoriesCategoryIdGetResponsesContentApplicationJsonSchemaSubCategoriesItems:
      type: object
      properties:
        id:
          type: integer
        category_id:
          type: integer
        title:
          type: string
        sub_category_key:
          type: string
        for_prime:
          type: integer
        questions:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiSpermDonorsIdQuestionCategoriesCategoryIdGetResponsesContentApplicationJsonSchemaSubCategoriesItemsQuestionsItems
      required:
        - id
        - category_id
        - title
        - sub_category_key
        - for_prime
        - questions
      title: >-
        ApiSpermDonorsIdQuestionCategoriesCategoryIdGetResponsesContentApplicationJsonSchemaSubCategoriesItems
    Sperm Donor_Questionaries_Get Questions_Response_200:
      type: object
      properties:
        id:
          type: integer
        title:
          type: string
        sub_categories:
          type: array
          items:
            $ref: >-
              #/components/schemas/ApiSpermDonorsIdQuestionCategoriesCategoryIdGetResponsesContentApplicationJsonSchemaSubCategoriesItems
      required:
        - id
        - title
        - sub_categories
      title: Sperm Donor_Questionaries_Get Questions_Response_200
  securitySchemes:
    oauth2Auth:
      type: http
      scheme: bearer

```

## SDK Code Examples

```python Sperm Donor_Questionaries_Get Questions_example
import requests

url = "http://localhost:8000/api/sperm-donors/81/question-categories/9"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Sperm Donor_Questionaries_Get Questions_example
const url = 'http://localhost:8000/api/sperm-donors/81/question-categories/9';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

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

```go Sperm Donor_Questionaries_Get Questions_example
package main

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

func main() {

	url := "http://localhost:8000/api/sperm-donors/81/question-categories/9"

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

	req.Header.Add("Authorization", "Bearer <token>")

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

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

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

}
```

```ruby Sperm Donor_Questionaries_Get Questions_example
require 'uri'
require 'net/http'

url = URI("http://localhost:8000/api/sperm-donors/81/question-categories/9")

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

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

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

```java Sperm Donor_Questionaries_Get Questions_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("http://localhost:8000/api/sperm-donors/81/question-categories/9")
  .header("Authorization", "Bearer <token>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'http://localhost:8000/api/sperm-donors/81/question-categories/9', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp Sperm Donor_Questionaries_Get Questions_example
using RestSharp;

var client = new RestClient("http://localhost:8000/api/sperm-donors/81/question-categories/9");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Sperm Donor_Questionaries_Get Questions_example
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "http://localhost:8000/api/sperm-donors/81/question-categories/9")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

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()
```