For clean Markdown of any page, append .md to the page URL. For a complete documentation index, see https://api-doc-new.gideononline.com/gideon-api-1-0/bacteria/llms.txt. For full documentation content, see https://api-doc-new.gideononline.com/gideon-api-1-0/bacteria/llms-full.txt.

# /microbiology/bacteria

GET https://api.gideononline.com/microbiology/bacteria

Returns the list of all bacteria. An optional parameter **return** can be used to determine the amount of data returned for each bacterium.
* return=simple (typically returns just the code and name)
* return=detailed

Bacteria Object
- code: unique identifier 
- name: name of the bacterium
- notes: 
- ecology:
- pathogen_susceptibility:
- vaccines:


Reference: https://api-doc-new.gideononline.com/gideon-api-1-0/bacteria/microbiology-bacteria

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /microbiology/bacteria:
    get:
      operationId: microbiology-bacteria
      summary: /microbiology/bacteria
      description: >
        Returns the list of all bacteria. An optional parameter **return** can
        be used to determine the amount of data returned for each bacterium.

        * return=simple (typically returns just the code and name)

        * return=detailed


        Bacteria Object

        - code: unique identifier 

        - name: name of the bacterium

        - notes: 

        - ecology:

        - pathogen_susceptibility:

        - vaccines:
      tags:
        - subpackage_bacteria
      parameters:
        - name: return
          in: query
          required: false
          schema:
            type: string
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Bacteria_/microbiology/bacteria_Response_200
servers:
  - url: https://api.gideononline.com
  - url: https://api-test.gideononline.com
components:
  schemas:
    MicrobiologyBacteriaGetResponsesContentApplicationJsonSchemaDataItems:
      type: object
      properties:
        notes:
          type: string
        ecology:
          type: string
        bacteria:
          type: string
        synonyms:
          type: array
          items:
            type: string
        vaccines:
          type: array
          items:
            description: Any type
        pathogens:
          type: string
        bacteria_code:
          type: integer
      required:
        - notes
        - ecology
        - bacteria
        - synonyms
        - vaccines
        - pathogens
        - bacteria_code
      title: MicrobiologyBacteriaGetResponsesContentApplicationJsonSchemaDataItems
    Bacteria_/microbiology/bacteria_Response_200:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: >-
              #/components/schemas/MicrobiologyBacteriaGetResponsesContentApplicationJsonSchemaDataItems
        limit:
          type: integer
        total:
          type: integer
        offset:
          type: integer
      required:
        - data
        - limit
        - total
        - offset
      title: Bacteria_/microbiology/bacteria_Response_200
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

```

## SDK Code Examples

```python Bacteria_/microbiology/bacteria_example
import requests

url = "https://api.gideononline.com/microbiology/bacteria"

querystring = {"return":"detailed"}

headers = {"Authorization": "<apiKey>"}

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

print(response.json())
```

```javascript Bacteria_/microbiology/bacteria_example
const url = 'https://api.gideononline.com/microbiology/bacteria?return=detailed';
const options = {method: 'GET', headers: {Authorization: '<apiKey>'}};

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

```go Bacteria_/microbiology/bacteria_example
package main

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

func main() {

	url := "https://api.gideononline.com/microbiology/bacteria?return=detailed"

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

	req.Header.Add("Authorization", "<apiKey>")

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

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

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

}
```

```ruby Bacteria_/microbiology/bacteria_example
require 'uri'
require 'net/http'

url = URI("https://api.gideononline.com/microbiology/bacteria?return=detailed")

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

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

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

```java Bacteria_/microbiology/bacteria_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.gideononline.com/microbiology/bacteria?return=detailed")
  .header("Authorization", "<apiKey>")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.gideononline.com/microbiology/bacteria?return=detailed', [
  'headers' => [
    'Authorization' => '<apiKey>',
  ],
]);

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

```csharp Bacteria_/microbiology/bacteria_example
using RestSharp;

var client = new RestClient("https://api.gideononline.com/microbiology/bacteria?return=detailed");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Bacteria_/microbiology/bacteria_example
import Foundation

let headers = ["Authorization": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.gideononline.com/microbiology/bacteria?return=detailed")! 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()
```