## What makes an API RESTful?
* Follow 6 architectural constraints
* Client - Server
* Uniform interface
* Stateless (server should not manage the state of the application)
* Caching - server should use HTTP caching headers to cache response
* Layered
* Code on demand (optional constraint)
* Richardson Maturity Model
* measure of RESTfulness based on a score from 0 - 3, 0 is lowest level of REST compliance
and 3 is the highest level of REST compliance
---
## Client Server Const
<mvt:comment>Ability to have a page with the same code as the current category code and use that page via page builder for specific category landing pages/layouts</mvt:comment>
<mvt:do file="g.Module_Feature_TUI_DB" name="l.settings:Page_Load_CodeOK" value="Page_Load_Code( g.Category_Code, l.settings:category:pagebuilder_cat_page )" />
<mvt:if expr="l.settings:Page_Load_CodeOK">
<mvt:capture variable="l.settings:category:pagebuilder_design"><mvt:do name="l.settings:foundPageOK" file="g.Modul
### Testing Spring Data JPA
#### Disable rollback in tests
`@Rollback(false)` or `@Commit` at method or class level. See https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/test/annotation/Rollback.html
kube -n [namespace] rollout history deploy [service]--revision=[x] -o yaml
/**
* @param {number[]} score
* @return {string[]}
*/
var findRelativeRanks = function(score) {
// Create a copy of the original scores array and sort it in descending order
var sorted = Array.from(score).sort((a, b) => b - a);
// Iterate over the sorted scores array
for (let i = 0; i < sorted.length; i++) {
// Find the index of the score in the original scores array
let index = score.indexOf(sorted[i]);
// Assign the athlete's rank based on their pos
acesss:
C:\xampp\mysql\bin via CMD
and run command:
mysql -u root -p msf-v2 < C:\Web\path\file-name.sql
<canvas id="myCanvas"></canvas>
<script type="importmap">
{
"imports": {
"three": "https://cdnjs.cloudflare.com/ajax/libs/three.js/0.163.0/three.module.min.js"
}
}
</script>
<script src="assets/js/script.js" type="module"></script>
<mvt:comment> Load order payments </mvt:comment>
<mvt:do file="g.module_library_db" name="l.success" value="OrderPaymentList_Load_Order(l.settings:order:id, l.settings:orderpayments)" />
<mvt:comment> Set delimiter variables </mvt:comment>
<mvt:assign name="g.colon" value="':'" />
<mvt:assign name="g.comma" value="','" />
<mvt:assign name="g.equal" value="'='" />
<mvt:comment> Loop through payments array to find the payment data </mvt:comment>
<mvt:foreach iterator="payment" ar
// One storage for all ...
export const useCounterStore = defineStore('counter', () => {
const count = ref(0);
function increment() {
count.value++;
}
return { count, increment };
});
// Dynamic storage = each components get its own
export function useCounterStore(key) {
return defineStore(key, () => {
const count = ref(0);
function increment() {
count.value++;
}
return { count, increment };
})();
$query = "UPDATE sgsi_fechas_auditorias SET fecha_auditoria_sugerida = '$fecha_auditoria_sugerida_formateada' WHERE id = $id_registro";
///////////////// PROBAR PARA INTENTAR MODIFICAR LA BASE DE DATOS ///
// $sql = "update webex_alumnos set email_alternativo2='".$emA."' where id='".$idalumnodestino."'";
$re= $this->quid->db->escribeSQL($query);
var_dump($re) // si devuelve true es que se ha guardado el valor en la base de datos
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r
npx http-server ./ -a localhost -p 7000 -o -c1
[スレッドとプロセスの違いを完全に理解する](https://zenn.dev/farstep/articles/process-thread-difference)
[【ソフトウェア設計】例外処理を考える](https://zenn.dev/koduki/articles/e9373cb78fcfef)
/* --------------------
PAGE / Events
-------------------- */
/* Buttons */
.events--teaser-middle-page .button--primary {
text-transform: var(--button-text-transform);
border: var(--button-border);
color: var(--button-font-color);
background: var(--button-background-color);
}
.events--teaser-middle-page .button--primary:hover {
text-transform: var(--button-text-transform-hover);
border: var(--button-border-hover);
color: var(--button-font-color-hover);
backgrou
$mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" }