The local coating file (read and hashed in place, never copied): its listing, or one coating by name (OP8)
curl --request GET \
--url https://api.eddy.engineer/v1/optics.coatingsimport requests
url = "https://api.eddy.engineer/v1/optics.coatings"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/optics.coatings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/optics.coatings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/optics.coatings"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/v1/optics.coatings")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/optics.coatings")
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_bodyOptics
The local coating file (read and hashed in place, never copied): its listing, or one coating by name (OP8)
Query: none = {file, present, hash, source, coatings: [{name, kind: COAT | IDEAL | IDEAL2 | TABLE, layers, materials, tapered}], materials: [{name, rows}], encrypted (the sealed count — an absence), tapers, kinds}; `name` = the coating's definition {name, kind, layers: [{material, thickness (waves of the primary wavelength's optical thickness, or micrometres when absolute), absolute, taper}], materials: [{name, rows: [[λ µm, n, k]]}], ideal [T, R], amplitudes (IDEAL2's 8), no_pi_flag, table (rows [angle, λ, Rs, Rp, Ts, Tp, Ars, Arp, Ats, Atp]), source (file@hash)}. The `I.xx` family (transmit xx %) needs no file. The file is SS_ZEMAX_DATA/Coatings/COATING.DAT (or SS_COATING_FILE).
GET
/
v1
/
optics.coatings
The local coating file (read and hashed in place, never copied): its listing, or one coating by name (OP8)
curl --request GET \
--url https://api.eddy.engineer/v1/optics.coatingsimport requests
url = "https://api.eddy.engineer/v1/optics.coatings"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.eddy.engineer/v1/optics.coatings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/optics.coatings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/optics.coatings"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/v1/optics.coatings")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/optics.coatings")
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_bodyResponse
the listing or the coating