Introduction
Description où je sais pas quoi mettre alors NTM
Faudrait qu'on rédige une ontro, ça fait bien XD.
Base URL
https://api.oss.coop/Authenticating requests
Authenticate requests to this API's endpoints by sending an Authorization header with the value "Bearer {ACCESS_TOKEN}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
Le token est généré via le endpoint Authentification => Connexion.
Authentification
Connexion
Essaye une authentification et retourne le jeton JWT (stateless).
Example request:
curl -X POST \
"https://api.oss.coop/authentification/connexion" \
-H "Content-Type: application/json" \
-d '{"identifiant":"ljaeger","motdepasse":"test"}'
const url = new URL(
"https://api.oss.coop/authentification/connexion"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"identifiant": "ljaeger",
"motdepasse": "test"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/authentification/connexion',
[
'headers' => [],
'json' => [
'identifiant' => 'ljaeger',
'motdepasse' => 'test',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"jeton": "unechainesuperlonguetoutechelou",
"jeton_type": "bearer",
"expire_dans": 86400,
"utilisateur": {
"id": 1,
"entite": {
"id": 1,
"type": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
},
"parent": null
},
"nom": "Louis",
"prenom": "JAEGER",
"nom_complet": "Louis JAEGER",
"email": "ljaeger@diatem.net",
"identifiant": "ljaeger",
"telportable": "012345789"
}
}
}
Received response:
Request failed with error:
Rafraichir
requires authentication
Permet à un utilisateur authentifié de récupérer un nouveau token sans réutiliser le couple identifiant / mot de passe.
Example request:
curl -X GET \
-G "https://api.oss.coop/authentification/rafraichir" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/authentification/rafraichir"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/authentification/rafraichir',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"jeton": "unechainesuperlonguetoutechelou",
"jeton_type": "bearer",
"expire_dans": 86400
}
}
Received response:
Request failed with error:
Deconnexion
requires authentication
Permet d'invalider un token JWT.
Example request:
curl -X GET \
-G "https://api.oss.coop/authentification/deconnexion" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/authentification/deconnexion"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/authentification/deconnexion',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Profil - Voir
requires authentication
Permet à un utilisateur authentifié de récupérer son profil.
Example request:
curl -X GET \
-G "https://api.oss.coop/authentification/profil" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/authentification/profil"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/authentification/profil',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"entite": {
"id": 1,
"type": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
},
"pays": {
"id": 1,
"valeur": "france"
},
"parent": null,
"nom": "Pays de Candy",
"adresse": "2 Rue Docteur Slump",
"cp": "69666",
"ville": "D* City",
"actif": true,
"description": "Blablabla",
"logotype_principal": null,
"logotype_secondaire1": null,
"logotype_secondaire2": null
},
"profils": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
],
"nom": "Louis",
"prenom": "JAEGER",
"nom_complet": "Louis JAEGER",
"email": "ljaeger@diatem.net",
"identifiant": "ljaeger",
"telportable": "012345789",
"couleur": 2
}
}
Received response:
Request failed with error:
Profil - Modifier
requires authentication
Permet à un utilisateur authentifié de modifier son profil.
Example request:
curl -X PUT \
"https://api.oss.coop/authentification/profil" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"Luc-Jean","prenom":"Ztirf","email":"ljztirf@diatem.net","actif":true,"telportable":"0123456789"}'
const url = new URL(
"https://api.oss.coop/authentification/profil"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "Luc-Jean",
"prenom": "Ztirf",
"email": "ljztirf@diatem.net",
"actif": true,
"telportable": "0123456789"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/authentification/profil',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'Luc-Jean',
'prenom' => 'Ztirf',
'email' => 'ljztirf@diatem.net',
'actif' => true,
'telportable' => '0123456789',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"entite": {
"id": 1,
"type": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
},
"parent": null
},
"profils": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
],
"nom": "Luc-Jean",
"prenom": "Ztirf",
"nom_complet": "Luc-Jean Ztirf",
"email": "ljztirf@diatem.net",
"identifiant": "ljztirf",
"telportable": "0123456789",
"couleur": 3
}
}
Received response:
Request failed with error:
Profil - Mot de passe
requires authentication
Permet à un utilisateur authentifié de modifier son mot de passe.
Example request:
curl -X PUT \
"https://api.oss.coop/authentification/profil/mdp" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"motdepasse":"oldpwd","nouveau_motdepasse":"newpwd","nouveau_motdepasse_confirmation":"newpwd"}'
const url = new URL(
"https://api.oss.coop/authentification/profil/mdp"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"motdepasse": "oldpwd",
"nouveau_motdepasse": "newpwd",
"nouveau_motdepasse_confirmation": "newpwd"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/authentification/profil/mdp',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'motdepasse' => 'oldpwd',
'nouveau_motdepasse' => 'newpwd',
'nouveau_motdepasse_confirmation' => 'newpwd',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": "Le mot de passe à été renouvelé."
}
Received response:
Request failed with error:
Identifiants - Rappel
Envoie un mail à l'utilisateur lui rappelant les identifiants qu'il peut utiliser.
Example request:
curl -X POST \
"https://api.oss.coop/authentification/rappel_identifiants" \
-H "Content-Type: application/json" \
-d '{"email":"ljaeger@diatem.net"}'
const url = new URL(
"https://api.oss.coop/authentification/rappel_identifiants"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "ljaeger@diatem.net"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/authentification/rappel_identifiants',
[
'headers' => [],
'json' => [
'email' => 'ljaeger@diatem.net',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": "Un email contenant vos identifiants à été envoyé."
}
Received response:
Request failed with error:
Mot de passe - Demande de renouvellement
Envoie un mail à l'utilisateur contenant un lien de renouvellement de mot de passe.
Example request:
curl -X POST \
"https://api.oss.coop/authentification/mdp" \
-H "Content-Type: application/json" \
-d '{"identifiant":"ljaeger"}'
const url = new URL(
"https://api.oss.coop/authentification/mdp"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"identifiant": "ljaeger"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/authentification/mdp',
[
'headers' => [],
'json' => [
'identifiant' => 'ljaeger',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": "Un email de renouvellement de mot de passe à été envoyé."
}
Received response:
Request failed with error:
Mot de passe - Renouvellement
Renouvellement de mot de passe à partir email et jeton valides.
Example request:
curl -X POST \
"https://api.oss.coop/authentification/mdp/AZERTYUIOP123456789#" \
-H "Content-Type: application/json" \
-d '{"motdepasse":"newpwd","motdepasse_confirmation":"newpwd"}'
const url = new URL(
"https://api.oss.coop/authentification/mdp/AZERTYUIOP123456789#"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"motdepasse": "newpwd",
"motdepasse_confirmation": "newpwd"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/authentification/mdp/AZERTYUIOP123456789#',
[
'headers' => [],
'json' => [
'motdepasse' => 'newpwd',
'motdepasse_confirmation' => 'newpwd',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": "Le mot de passe à été renouvelé."
}
Received response:
Request failed with error:
Commandes
Lister
requires authentication
Liste des commandes
Example request:
curl -X GET \
-G "https://api.oss.coop/commande?sort=nom.ASC%2Cid.DESC&page=6&limit=20" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/commande"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "6",
"limit": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/commande',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '6',
'limit'=> '20',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"creation": "2150-12-31 12:00:00+02",
"reception": null,
"adresse": null,
"codepostal": null,
"ville": null,
"informationscomplementaires": null,
"nom": null,
"contact": null,
"tel": null,
"pays": null,
"statut": { ... }
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'une commande
Example request:
curl -X GET \
-G "https://api.oss.coop/commande/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/commande/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/commande/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"creation": "2150-12-31 12:00:00+02",
"reception": null,
"adresse": null,
"codepostal": null,
"ville": null,
"informationscomplementaires": null,
"nom": null,
"contact": null,
"tel": null,
"pays": null,
"statut": { ... }
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute une commande
Example request:
curl -X POST \
"https://api.oss.coop/commande" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"creation":"2150-12-31 12:00:00+02","adresse":"2 Rue de Dublin","codepostal":"67300","ville":"Schiltigheim","informationscomplementaires":"Informations complementaires","nom":"Mathieu","contact":"0123456789","pays_id":1}'
const url = new URL(
"https://api.oss.coop/commande"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"creation": "2150-12-31 12:00:00+02",
"adresse": "2 Rue de Dublin",
"codepostal": "67300",
"ville": "Schiltigheim",
"informationscomplementaires": "Informations complementaires",
"nom": "Mathieu",
"contact": "0123456789",
"pays_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/commande',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'creation' => '2150-12-31 12:00:00+02',
'adresse' => '2 Rue de Dublin',
'codepostal' => '67300',
'ville' => 'Schiltigheim',
'informationscomplementaires' => 'Informations complementaires',
'nom' => 'Mathieu',
'contact' => '0123456789',
'pays_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"creation": "2150-12-31 12:00:00+02",
"reception": null,
"adresse": "2 Rue de Dublin",
"codepostal": "67300",
"ville": "Schiltigheim",
"informationscomplementaires": "Informations complementaires,"
"nom": "Mathieu",
"contact": "mhaller@diatem.net",
"tel": "0123456789",
"pays": { ... },
"statut": { ... }
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie une commande
Example request:
curl -X PUT \
"https://api.oss.coop/commande/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"creation":"null","adresse":"null","codepostal":"null","ville":"null","informationscomplementaires":"null","nom":"null","contact":"null","pays_id":0}'
const url = new URL(
"https://api.oss.coop/commande/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"creation": "null",
"adresse": "null",
"codepostal": "null",
"ville": "null",
"informationscomplementaires": "null",
"nom": "null",
"contact": "null",
"pays_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/commande/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'creation' => 'null',
'adresse' => 'null',
'codepostal' => 'null',
'ville' => 'null',
'informationscomplementaires' => 'null',
'nom' => 'null',
'contact' => 'null',
'pays_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"creation": "2150-12-31 12:00:00+02",
"reception": null,
"adresse": null,
"codepostal": null,
"ville": null,
"informationscomplementaires": null,
"nom": null,
"contact": null,
"tel": null,
"pays": null,
"statut": { ... }
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime une commande
Example request:
curl -X DELETE \
"https://api.oss.coop/commande/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/commande/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/commande/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Réceptionner
requires authentication
Réceptionne une commande
Example request:
curl -X PATCH \
"https://api.oss.coop/commande/2/receptionner" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/commande/2/receptionner"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/commande/2/receptionner',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Réceptionner partiellement
requires authentication
Réceptionne une commande
Example request:
curl -X PATCH \
"https://api.oss.coop/commande/2/receptionner_partiellement" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/commande/2/receptionner_partiellement"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/commande/2/receptionner_partiellement',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Annuler
requires authentication
Annule une commande
Example request:
curl -X PATCH \
"https://api.oss.coop/commande/2/annuler" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/commande/2/annuler"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/commande/2/annuler',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Produit - Voir
requires authentication
Détails d'un produit d'une commande
Example request:
curl -X GET \
-G "https://api.oss.coop/commande/1/produit/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/commande/1/produit/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/commande/1/produit/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"quantite": "10",
"produit": { ... },
"fournisseur": { ... },
"unite": { ... }
}
}
Received response:
Request failed with error:
Produit - Ajouter
requires authentication
Ajoute des produits à une commande
Example request:
curl -X POST \
"https://api.oss.coop/commande/1/produit" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"quantite":"10","produit_id":1,"fournisseur_id":1,"unite_id":1}'
const url = new URL(
"https://api.oss.coop/commande/1/produit"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"quantite": "10",
"produit_id": 1,
"fournisseur_id": 1,
"unite_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/commande/1/produit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'quantite' => '10',
'produit_id' => 1,
'fournisseur_id' => 1,
'unite_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"quantite": "10",
"produit": { ... },
"fournisseur": { ... },
"unite": { ... }
}
]
}
Received response:
Request failed with error:
Produit - Modifier
requires authentication
Modifie les produits d'une commande
Example request:
curl -X PUT \
"https://api.oss.coop/commande/1/produit" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"quantite":"10.5","produit_id":1,"fournisseur_id":1,"unite_id":1}'
const url = new URL(
"https://api.oss.coop/commande/1/produit"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"quantite": "10.5",
"produit_id": 1,
"fournisseur_id": 1,
"unite_id": 1
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/commande/1/produit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'quantite' => '10.5',
'produit_id' => 1,
'fournisseur_id' => 1,
'unite_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"quantite": "10.5",
"produit": { ... },
"fournisseur": { ... },
"unite": { ... }
}
]
}
Received response:
Request failed with error:
Produit - Supprimer
requires authentication
Supprime les produits d'une commande
Example request:
curl -X DELETE \
"https://api.oss.coop/commande/1/produit" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/commande/1/produit"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/commande/1/produit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Produit - Fiche - Voir
requires authentication
Détails d'une fiche d'un produit d'une commande
Example request:
curl -X GET \
-G "https://api.oss.coop/commande/1/produit/1/fiche/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/commande/1/produit/1/fiche/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/commande/1/produit/1/fiche/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"ferti": { ... },
"phyto": { ... },
"semis": { ... }
}
}
Received response:
Request failed with error:
Produit - Fiche - Ajouter
requires authentication
Ajoute des fiches à un produit d'une commande
Example request:
curl -X POST \
"https://api.oss.coop/commande/1/produit/1/fiche" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"ferti_id":1,"phyto_id":1,"semis_id":1}'
const url = new URL(
"https://api.oss.coop/commande/1/produit/1/fiche"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ferti_id": 1,
"phyto_id": 1,
"semis_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/commande/1/produit/1/fiche',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'ferti_id' => 1,
'phyto_id' => 1,
'semis_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"ferti": { ... },
"phyto": { ... },
"semis": { ... }
}
}
Received response:
Request failed with error:
Produit - Fiche - Modifier
requires authentication
Modifie les fiches d'un produit d'une commande
Example request:
curl -X PUT \
"https://api.oss.coop/commande/1/produit/1/fiche/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"ferti_id":0,"phyto_id":0,"semis_id":0}'
const url = new URL(
"https://api.oss.coop/commande/1/produit/1/fiche/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ferti_id": 0,
"phyto_id": 0,
"semis_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/commande/1/produit/1/fiche/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'ferti_id' => 0,
'phyto_id' => 0,
'semis_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"ferti": null,
"phyto": null,
"semis": null
}
}
Received response:
Request failed with error:
Composants
Lister
requires authentication
Liste des composants
Example request:
curl -X GET \
-G "https://api.oss.coop/composant?sort=nom.ASC%2Cid.DESC&page=17&limit=18" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/composant"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "17",
"limit": "18",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/composant',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '17',
'limit'=> '18',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "composant1",
"nom": "composant",
"observation": null,
"produit_type": { ... },
"thematique": { ... },
"thematique_composant": { ... }
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'un composant
Example request:
curl -X GET \
-G "https://api.oss.coop/composant/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/composant/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/composant/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "composant1",
"nom": "composant",
"observation": null,
"produit_type": { ... },
"thematique": { ... },
"thematique_composant": { ... }
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute un composant
Example request:
curl -X POST \
"https://api.oss.coop/composant" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"composant2","nom":"composant2","observation":"Un autre composant","produit_type_uid":"id_unique_universel","thematique_uid":"id_unique_universel","thematique_composant_id":1}'
const url = new URL(
"https://api.oss.coop/composant"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "composant2",
"nom": "composant2",
"observation": "Un autre composant",
"produit_type_uid": "id_unique_universel",
"thematique_uid": "id_unique_universel",
"thematique_composant_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/composant',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'composant2',
'nom' => 'composant2',
'observation' => 'Un autre composant',
'produit_type_uid' => 'id_unique_universel',
'thematique_uid' => 'id_unique_universel',
'thematique_composant_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "composant2",
"nom": "composant2",
"observation": "Un autre composant",
"produit_type": { ... },
"thematique": { ... },
"thematique_composant": { ... }
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie un composant
Example request:
curl -X PUT \
"https://api.oss.coop/composant/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"composant3","nom":"composant3","observation":"null","produit_type_uid":"null","thematique_uid":"null","thematique_composant_id":0}'
const url = new URL(
"https://api.oss.coop/composant/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "composant3",
"nom": "composant3",
"observation": "null",
"produit_type_uid": "null",
"thematique_uid": "null",
"thematique_composant_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/composant/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'composant3',
'nom' => 'composant3',
'observation' => 'null',
'produit_type_uid' => 'null',
'thematique_uid' => 'null',
'thematique_composant_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "composant3",
"nom": "composant3",
"observation": null,
"produit_type": null,
"thematique": null,
"thematique_composant": null
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime un composant
Example request:
curl -X DELETE \
"https://api.oss.coop/composant/10" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/composant/10"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/composant/10',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Culture
Lister
requires authentication
Liste des cultures
Example request:
curl -X GET \
-G "https://api.oss.coop/culture?sort=nom.ASC%2Cid.DESC&page=6&limit=13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/culture"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "6",
"limit": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/culture',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '6',
'limit'=> '13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"nom": "nom",
"famille": {
"id": 1,
"uid": "id_unique_universel",
"nom": "nom"
}
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'une culture
Example request:
curl -X GET \
-G "https://api.oss.coop/culture/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/culture/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/culture/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"nom": "nom",
"famille": {
"id": 1,
"uid": "id_unique_universel",
"nom": "nom"
}
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute une culture
Example request:
curl -X POST \
"https://api.oss.coop/culture" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel2","nom":"nom2","famille_uid":"id_unique_universel"}'
const url = new URL(
"https://api.oss.coop/culture"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel2",
"nom": "nom2",
"famille_uid": "id_unique_universel"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/culture',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel2',
'nom' => 'nom2',
'famille_uid' => 'id_unique_universel',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel2",
"nom": "nom2",
"famille": {
"id": 1,
"uid": "id_unique_universel",
"nom": "nom"
}
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie une culture
Example request:
curl -X PUT \
"https://api.oss.coop/culture/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel3","nom":"nom3","famille_uid":"id_unique_universel2"}'
const url = new URL(
"https://api.oss.coop/culture/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel3",
"nom": "nom3",
"famille_uid": "id_unique_universel2"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/culture/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel3',
'nom' => 'nom3',
'famille_uid' => 'id_unique_universel2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel3",
"nom": "nom3",
"famille": {
"id": 2,
"uid": "id_unique_universel2",
"nom": "nom2"
}
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime une culture
Example request:
curl -X DELETE \
"https://api.oss.coop/culture/6" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/culture/6"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/culture/6',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Dictionnaires
Categorie Droit - Lister
requires authentication
Liste des catégories de droits
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/categorie/droit?sort=nom.ASC%2Cid.DESC&page=2&limit=10" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/categorie/droit"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "2",
"limit": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/categorie/droit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '2',
'limit'=> '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Categorie Droit - Voir
requires authentication
Détails d'une catégorie de droits
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/categorie/droit/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/categorie/droit/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/categorie/droit/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Categorie Fichier - Lister
requires authentication
Liste des catégories de fichiers
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/categorie/fichier?sort=nom.ASC%2Cid.DESC&page=19&limit=14" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/categorie/fichier"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "19",
"limit": "14",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/categorie/fichier',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '19',
'limit'=> '14',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "nom",
"enfants": null
}
]
}
Received response:
Request failed with error:
Categorie Fichier - Voir
requires authentication
Détails d'une catégorie de fichier
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/categorie/fichier/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/categorie/fichier/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/categorie/fichier/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"nom": "nom",
"enfants": null
}
}
Received response:
Request failed with error:
Categorie Fichier - Ajouter
requires authentication
Ajoute une catégorie de fichier
Example request:
curl -X POST \
"https://api.oss.coop/dictionnaire/categorie/fichier" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"nom2","parent_id":1}'
const url = new URL(
"https://api.oss.coop/dictionnaire/categorie/fichier"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "nom2",
"parent_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/dictionnaire/categorie/fichier',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'nom2',
'parent_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "nom2",
"enfants": [ ... ]
}
}
Received response:
Request failed with error:
Categorie Fichier - Modifier
requires authentication
Modifie une catégorie de fichier
Example request:
curl -X PUT \
"https://api.oss.coop/dictionnaire/categorie/fichier/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"nom3","parent_id":1}'
const url = new URL(
"https://api.oss.coop/dictionnaire/categorie/fichier/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "nom3",
"parent_id": 1
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/dictionnaire/categorie/fichier/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'nom3',
'parent_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "nom3",
"enfants": [ ... ]
}
}
Received response:
Request failed with error:
Categorie Fichier - Supprimer
requires authentication
Supprime une catégorie de fichier
Example request:
curl -X DELETE \
"https://api.oss.coop/dictionnaire/categorie/fichier/17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/categorie/fichier/17"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/dictionnaire/categorie/fichier/17',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Type Entite - Lister
requires authentication
Liste des types d'entités
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/entite?sort=nom.ASC%2Cid.DESC&page=6&limit=5" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/entite"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "6",
"limit": "5",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/entite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '6',
'limit'=> '5',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Entite - Voir
requires authentication
Détails d'un type d'entités
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/entite/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/entite/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/entite/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Type Log - Lister
requires authentication
Liste des types de logs
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/log?sort=nom.ASC%2Cid.DESC&page=3&limit=13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/log"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "3",
"limit": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/log',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '3',
'limit'=> '13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Log - Voir
requires authentication
Détails d'un type de logs
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/log/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/log/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/log/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Type Media - Lister
requires authentication
Liste des types de medias
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/media?sort=nom.ASC%2Cid.DESC&page=5&limit=10" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/media"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "5",
"limit": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/media',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '5',
'limit'=> '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Media - Voir
requires authentication
Détails d'un type de medias
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/media/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/media/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/media/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Type Produit - Lister
requires authentication
Liste des types de produits
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/produit?sort=nom.ASC%2Cid.DESC&page=11&limit=1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/produit"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "11",
"limit": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/produit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '11',
'limit'=> '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Produit - Voir
requires authentication
Détails d'un type de produits
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/produit/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/produit/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/produit/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Type Validation - Lister
requires authentication
Liste des types de validations
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/validation?sort=nom.ASC%2Cid.DESC&page=13&limit=13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/validation"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "13",
"limit": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/validation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '13',
'limit'=> '13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Validation - Voir
requires authentication
Détails d'un type de validations
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/validation/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/validation/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/validation/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Type Protocole - Lister
requires authentication
Liste des types de protocoles
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/protocole?sort=nom.ASC%2Cid.DESC&page=11&limit=10" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/protocole"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "11",
"limit": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/protocole',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '11',
'limit'=> '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Protocole - Voir
requires authentication
Détails d'un type de protocoles
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/protocole/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/protocole/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/protocole/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Type Modalite - Lister
requires authentication
Liste des types de modalites
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/modalite?sort=nom.ASC%2Cid.DESC&page=4&limit=3" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/modalite"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "4",
"limit": "3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/modalite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '4',
'limit'=> '3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Modalite - Voir
requires authentication
Détails d'un type de modalites
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/modalite/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/modalite/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/modalite/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Type Facteur - Lister
requires authentication
Liste des types de facteurs
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/facteur?sort=nom.ASC%2Cid.DESC&page=1&limit=2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/facteur"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "1",
"limit": "2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/facteur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '1',
'limit'=> '2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Facteur - Voir
requires authentication
Détails d'un type de facteurs
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/facteur/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/facteur/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/facteur/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Type Facteur Variable - Lister
requires authentication
Liste des types de variables de facteur
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/facteur/variable?sort=nom.ASC%2Cid.DESC&page=7&limit=7" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/facteur/variable"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "7",
"limit": "7",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/facteur/variable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '7',
'limit'=> '7',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Facteur Variable - Voir
requires authentication
Détails d'un type de variables de facteur
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/facteur/variable/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/facteur/variable/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/facteur/variable/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Type Dispositif - Lister
requires authentication
Liste des types de dispositifs
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/dispositif?sort=nom.ASC%2Cid.DESC&page=3&limit=5" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/dispositif"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "3",
"limit": "5",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/dispositif',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '3',
'limit'=> '5',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Dispositif - Voir
requires authentication
Détails d'un type de dispositif
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/dispositif/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/dispositif/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/dispositif/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Type Evenement - Lister
requires authentication
Liste des types de évenements
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/evenement?sort=nom.ASC%2Cid.DESC&page=5&limit=14" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/evenement"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "5",
"limit": "14",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/evenement',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '5',
'limit'=> '14',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Evenement - Voir
requires authentication
Détails d'un type d'évenement
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/evenement/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/evenement/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/evenement/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Type Microparcelle - Lister
requires authentication
Liste des types de microparcelles
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/microparcelle?sort=nom.ASC%2Cid.DESC&page=19&limit=7" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/microparcelle"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "19",
"limit": "7",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/microparcelle',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '19',
'limit'=> '7',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Microparcelle - Voir
requires authentication
Détails d'un type de microparcelle
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/microparcelle/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/microparcelle/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/microparcelle/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Type Etiquette - Lister
requires authentication
Liste des types d'étiquettes
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/etiquette?sort=nom.ASC%2Cid.DESC&page=3&limit=18" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/etiquette"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "3",
"limit": "18",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/etiquette',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '3',
'limit'=> '18',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Etiquette - Voir
requires authentication
Détails d'un type d'étiquettes
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/etiquette/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/etiquette/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/etiquette/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Type Etiquette Valeur - Lister
requires authentication
Liste des types de valeur d'étiquette
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/etiquette/valeur?sort=nom.ASC%2Cid.DESC&page=17&limit=17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/etiquette/valeur"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "17",
"limit": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/etiquette/valeur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '17',
'limit'=> '17',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur",
"attribut": null,
"special": false,
"format": { ... }
}
]
}
Received response:
Request failed with error:
Statut Etiquette Valeur - Voir
requires authentication
Détails d'un type de valeur d'étiquette
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/etiquette/valeur/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/etiquette/valeur/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/etiquette/valeur/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur",
"attribut": null,
"special": false,
"format": { ... }
}
}
Received response:
Request failed with error:
Statut Etiquette Valeur - Ajouter
requires authentication
Ajoute un type de valeur d'étiquette
Example request:
curl -X POST \
"https://api.oss.coop/dictionnaire/type/etiquette/valeur" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel2","designation":"valeur2","attribut":"attribut","special":true,"format_uid":1,"types_etiquette":[{"uid":"typeetiq1"},{"uid":"typeetiq1"}]}'
const url = new URL(
"https://api.oss.coop/dictionnaire/type/etiquette/valeur"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel2",
"designation": "valeur2",
"attribut": "attribut",
"special": true,
"format_uid": 1,
"types_etiquette": [
{
"uid": "typeetiq1"
},
{
"uid": "typeetiq1"
}
]
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/dictionnaire/type/etiquette/valeur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel2',
'designation' => 'valeur2',
'attribut' => 'attribut',
'special' => true,
'format_uid' => 1,
'types_etiquette' => [
[
'uid' => 'typeetiq1',
],
[
'uid' => 'typeetiq1',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel2",
"designation": "valeur2",
"attribut": "attribut",
"special": true,
"format": { ... }
}
}
Received response:
Request failed with error:
Statut Etiquette Valeur - Modifier
requires authentication
Modifie un type de valeur d'étiquette
Example request:
curl -X PUT \
"https://api.oss.coop/dictionnaire/type/etiquette/valeur/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel3","designation":"valeur3","attribut":"null","special":false,"format_uid":0,"types_etiquette":[{"uid":"typeetiq1"},[]]}'
const url = new URL(
"https://api.oss.coop/dictionnaire/type/etiquette/valeur/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel3",
"designation": "valeur3",
"attribut": "null",
"special": false,
"format_uid": 0,
"types_etiquette": [
{
"uid": "typeetiq1"
},
[]
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/dictionnaire/type/etiquette/valeur/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel3',
'designation' => 'valeur3',
'attribut' => 'null',
'special' => false,
'format_uid' => 0,
'types_etiquette' => [
[
'uid' => 'typeetiq1',
],
[],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel3",
"designation": "valeur3",
"attribut": null,
"special": false,
"format": null
}
}
Received response:
Request failed with error:
Statut Etiquette Valeur - Supprimer
requires authentication
Supprime un type de valeur d'étiquette
Example request:
curl -X DELETE \
"https://api.oss.coop/dictionnaire/type/etiquette/valeur/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/etiquette/valeur/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/dictionnaire/type/etiquette/valeur/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Type Variable - Lister
requires authentication
Liste des types de variables
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/variable?sort=nom.ASC%2Cid.DESC&page=10&limit=16" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/variable"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "10",
"limit": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/variable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '10',
'limit'=> '16',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Variable - Voir
requires authentication
Détails d'un type de variables
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/type/variable/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/type/variable/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/type/variable/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Droit - Lister
requires authentication
Liste des droits
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/droit?sort=nom.ASC%2Cid.DESC&page=14&limit=5" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/droit"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "14",
"limit": "5",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/droit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '14',
'limit'=> '5',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"categorie": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
},
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Droit - Voir
requires authentication
Détails d'un droit
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/droit/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/droit/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/droit/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"categorie": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
},
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Parametrage - Lister
requires authentication
Liste des paramétrages
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/parametrage?sort=nom.ASC%2Cid.DESC&page=10&limit=18" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/parametrage"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "10",
"limit": "18",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/parametrage',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '10',
'limit'=> '18',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"precisions": "Petit text explicatif",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Parametrage - Voir
requires authentication
Détails d'un paramétrage
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/parametrage/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/parametrage/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/parametrage/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"precisions": "Petit text explicatif",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Famille Culture - Lister
requires authentication
Liste des familles de culture
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/famille/culture?sort=nom.ASC%2Cid.DESC&page=7&limit=2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/famille/culture"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "7",
"limit": "2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/famille/culture',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '7',
'limit'=> '2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"nom": "nom"
}
]
}
Received response:
Request failed with error:
Famille Culture - Voir
requires authentication
Détails d'une famille de culture
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/famille/culture/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/famille/culture/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/famille/culture/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"nom": "nom"
}
}
Received response:
Request failed with error:
Famille Culture - Ajouter
requires authentication
Ajoute une famille de culture
Example request:
curl -X POST \
"https://api.oss.coop/dictionnaire/famille/culture" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel2","nom":"nom2"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/famille/culture"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel2",
"nom": "nom2"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/dictionnaire/famille/culture',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel2',
'nom' => 'nom2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel2",
"nom": "nom2"
}
}
Received response:
Request failed with error:
Famille Culture - Modifier
requires authentication
Modifie une famille de culture
Example request:
curl -X PUT \
"https://api.oss.coop/dictionnaire/famille/culture/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel3","nom":"nom3"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/famille/culture/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel3",
"nom": "nom3"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/dictionnaire/famille/culture/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel3',
'nom' => 'nom3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel3",
"nom": "nom3"
}
}
Received response:
Request failed with error:
Famille Culture - Supprimer
requires authentication
Supprime une famille de culture
Example request:
curl -X DELETE \
"https://api.oss.coop/dictionnaire/famille/culture/4" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/famille/culture/4"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/dictionnaire/famille/culture/4',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Famille Produit - Lister
requires authentication
Liste des familles de produit
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/famille/produit?sort=nom.ASC%2Cid.DESC&page=16&limit=10" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/famille/produit"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "16",
"limit": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/famille/produit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '16',
'limit'=> '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"nom": "nom"
}
]
}
Received response:
Request failed with error:
Famille Produit - Voir
requires authentication
Détails d'une famille de produit
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/famille/produit/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/famille/produit/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/famille/produit/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"nom": "nom"
}
}
Received response:
Request failed with error:
Famille Produit - Ajouter
requires authentication
Ajoute une famille de produit
Example request:
curl -X POST \
"https://api.oss.coop/dictionnaire/famille/produit" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel2","nom":"nom2"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/famille/produit"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel2",
"nom": "nom2"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/dictionnaire/famille/produit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel2',
'nom' => 'nom2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel2",
"nom": "nom2"
}
}
Received response:
Request failed with error:
Famille Produit - Modifier
requires authentication
Modifie une famille de produit
Example request:
curl -X PUT \
"https://api.oss.coop/dictionnaire/famille/produit/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel3","nom":"nom3"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/famille/produit/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel3",
"nom": "nom3"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/dictionnaire/famille/produit/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel3',
'nom' => 'nom3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel3",
"nom": "nom3"
}
}
Received response:
Request failed with error:
Famille Produit - Supprimer
requires authentication
Supprime une famille de produit
Example request:
curl -X DELETE \
"https://api.oss.coop/dictionnaire/famille/produit/15" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/famille/produit/15"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/dictionnaire/famille/produit/15',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Référentiel - Lister
requires authentication
Liste des référentiels
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/referentiel?sort=nom.ASC%2Cid.DESC&page=2&limit=5" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/referentiel"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "2",
"limit": "5",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/referentiel',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '2',
'limit'=> '5',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Référentiel - Voir
requires authentication
Détails d'un référentiel
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/referentiel/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/referentiel/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/referentiel/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Thématique - Lister
requires authentication
Liste des thématiques
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/thematique?sort=nom.ASC%2Cid.DESC&page=19&limit=11" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/thematique"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "19",
"limit": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/thematique',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '19',
'limit'=> '11',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Thématique - Voir
requires authentication
Détails d'une thématique
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/thematique/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/thematique/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/thematique/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Statut Protocole - Lister
requires authentication
Liste des statuts de protocoles
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/statut/protocole?sort=nom.ASC%2Cid.DESC&page=12&limit=12" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/protocole"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "12",
"limit": "12",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/statut/protocole',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '12',
'limit'=> '12',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Statut Protocole - Voir
requires authentication
Détails d'un statut de protocoles
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/statut/protocole/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/protocole/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/statut/protocole/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Statut Produit non homologué - Lister
requires authentication
Liste des statuts de produits non homologués
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/statut/produit_non_homologue?sort=nom.ASC%2Cid.DESC&page=14&limit=12" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/produit_non_homologue"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "14",
"limit": "12",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/statut/produit_non_homologue',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '14',
'limit'=> '12',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"derogation_destruction_recolte": false,
"permis_experimenter_ade": "valeur",
"ref_expedition_produits_fabricant": "valeur",
"protocole": { ... },
"produit": { ... }
}
]
}
Received response:
Request failed with error:
Statut Produit non homologué - Voir
requires authentication
Détails d'un statut de produit non homologué
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/statut/produit_non_homologue/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/produit_non_homologue/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/statut/produit_non_homologue/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"derogation_destruction_recolte": false,
"permis_experimenter_ade": "valeur",
"ref_expedition_produits_fabricant": "valeur",
"protocole": { ... },
"produit": { ... }
}
}
Received response:
Request failed with error:
Statut Produit non homologué - Ajouter
requires authentication
Ajoute un statut de produit non homologué
Example request:
curl -X POST \
"https://api.oss.coop/dictionnaire/statut/produit_non_homologue" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"derogation_destruction_recolte":true,"permis_experimenter_ade":"valeur2","ref_expedition_produits_fabricant":"valeur2","protocole_id":1,"produit_id":1}'
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/produit_non_homologue"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"derogation_destruction_recolte": true,
"permis_experimenter_ade": "valeur2",
"ref_expedition_produits_fabricant": "valeur2",
"protocole_id": 1,
"produit_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/dictionnaire/statut/produit_non_homologue',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'derogation_destruction_recolte' => true,
'permis_experimenter_ade' => 'valeur2',
'ref_expedition_produits_fabricant' => 'valeur2',
'protocole_id' => 1,
'produit_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"derogation_destruction_recolte": true,
"permis_experimenter_ade": "valeur2",
"ref_expedition_produits_fabricant": "valeur2",
"protocole": { ... },
"produit": { ... }
}
}
Received response:
Request failed with error:
Statut Produit non homologué - Modifier
requires authentication
Modifie un statut de produit non homologué
Example request:
curl -X PUT \
"https://api.oss.coop/dictionnaire/statut/produit_non_homologue/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"derogation_destruction_recolte":false,"permis_experimenter_ade":"blanditiis","ref_expedition_produits_fabricant":"eos","protocole_id":1,"produit_id":1}'
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/produit_non_homologue/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"derogation_destruction_recolte": false,
"permis_experimenter_ade": "blanditiis",
"ref_expedition_produits_fabricant": "eos",
"protocole_id": 1,
"produit_id": 1
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/dictionnaire/statut/produit_non_homologue/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'derogation_destruction_recolte' => false,
'permis_experimenter_ade' => 'blanditiis',
'ref_expedition_produits_fabricant' => 'eos',
'protocole_id' => 1,
'produit_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"derogation_destruction_recolte": null,
"permis_experimenter_ade": null,
"ref_expedition_produits_fabricant": null,
"protocole": { ... },
"produit": { ... }
}
}
Received response:
Request failed with error:
Statut Produit non homologué - Supprimer
requires authentication
Supprime un statut de produit non homologué
Example request:
curl -X DELETE \
"https://api.oss.coop/dictionnaire/statut/produit_non_homologue/20" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/produit_non_homologue/20"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/dictionnaire/statut/produit_non_homologue/20',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Statut Réservation - Lister
requires authentication
Liste des statuts de réservations
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/statut/reservation?sort=nom.ASC%2Cid.DESC&page=1&limit=14" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/reservation"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "1",
"limit": "14",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/statut/reservation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '1',
'limit'=> '14',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Statut Réservation - Voir
requires authentication
Détails d'un statut de réservationq
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/statut/reservation/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/reservation/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/statut/reservation/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Statut Protocole Détaillé - Lister
requires authentication
Liste des statuts détaillés de protocoles
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/statut/protocole_detaille?sort=nom.ASC%2Cid.DESC&page=7&limit=3" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/protocole_detaille"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "7",
"limit": "3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/statut/protocole_detaille',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '7',
'limit'=> '3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Statut Protocole Détaillé - Voir
requires authentication
Détails d'un statut détaillé de protocoles
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/statut/protocole_detaille/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/protocole_detaille/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/statut/protocole_detaille/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Statut Commande - Lister
requires authentication
Liste des statuts de commandes
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/statut/commande?sort=nom.ASC%2Cid.DESC&page=1&limit=13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/commande"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "1",
"limit": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/statut/commande',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '1',
'limit'=> '13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Statut Commande - Voir
requires authentication
Détails d'un statut de commandes
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/statut/commande/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/commande/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/statut/commande/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Statut Regroupement - Lister
requires authentication
Liste des statuts de regroupements
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/statut/regroupement?sort=nom.ASC%2Cid.DESC&page=13&limit=17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/regroupement"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "13",
"limit": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/statut/regroupement',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '13',
'limit'=> '17',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Statut Regroupement - Voir
requires authentication
Détails d'un statut de regroupement
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/statut/regroupement/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/statut/regroupement/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/statut/regroupement/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Format Variable - Lister
requires authentication
Liste des formats de variables
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/format/variable?sort=nom.ASC%2Cid.DESC&page=18&limit=8" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/format/variable"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "18",
"limit": "8",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/format/variable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '18',
'limit'=> '8',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Format Variable - Voir
requires authentication
Détails d'un format de variables
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/format/variable/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/format/variable/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/format/variable/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Format Etiquette Valeur - Lister
requires authentication
Liste des formats de valeurs d'étiquettes
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/format/etiquette/valeur?sort=nom.ASC%2Cid.DESC&page=13&limit=4" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/format/etiquette/valeur"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "13",
"limit": "4",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/format/etiquette/valeur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '13',
'limit'=> '4',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Format Etiquette Valeur - Voir
requires authentication
Détails d'un format de valeur d'étiquettes
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/format/etiquette/valeur/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/format/etiquette/valeur/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/format/etiquette/valeur/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Dispositif Experimental - Lister
requires authentication
Liste des dispositifs experimentals
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/dispositif/experimental?sort=nom.ASC%2Cid.DESC&page=1&limit=17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/dispositif/experimental"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "1",
"limit": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/dispositif/experimental',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '1',
'limit'=> '17',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Dispositif Experimental - Voir
requires authentication
Détails d'un dispositif experimental
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/dispositif/experimental/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/dispositif/experimental/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/dispositif/experimental/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Dispositif Experimental - Ajouter
requires authentication
Ajoute un dispositif experimental
Example request:
curl -X POST \
"https://api.oss.coop/dictionnaire/dispositif/experimental" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel2","designation":"valeur2"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/dispositif/experimental"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel2",
"designation": "valeur2"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/dictionnaire/dispositif/experimental',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel2',
'designation' => 'valeur2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel2",
"designation": "valeur2"
}
}
Received response:
Request failed with error:
Dispositif Experimental - Modifier
requires authentication
Modifie un dispositif experimental
Example request:
curl -X PUT \
"https://api.oss.coop/dictionnaire/dispositif/experimental/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel3","designation":"valeur3"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/dispositif/experimental/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel3",
"designation": "valeur3"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/dictionnaire/dispositif/experimental/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel3',
'designation' => 'valeur3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel3",
"designation": "valeur3"
}
}
Received response:
Request failed with error:
Dispositif Experimental - Supprimer
requires authentication
Supprime un dispositif experimental
Example request:
curl -X DELETE \
"https://api.oss.coop/dictionnaire/dispositif/experimental/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/dispositif/experimental/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/dictionnaire/dispositif/experimental/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Stade - Lister
requires authentication
Liste des stades
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/stade?sort=nom.ASC%2Cid.DESC&page=4&limit=7" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/stade"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "4",
"limit": "7",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/stade',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '4',
'limit'=> '7',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "stade1",
"designation": "designation1",
"designation_court": "d1",
"code_bbch": "AZERTY123",
"culture": { ... }
}
]
}
Received response:
Request failed with error:
Stade - Voir
requires authentication
Détails d'un stade
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/stade/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/stade/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/stade/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "stade1",
"designation": "designation1",
"designation_court": "d1",
"code_bbch": "AZERTY123",
"culture": { ... }
}
}
Received response:
Request failed with error:
Stade - Ajouter
requires authentication
Ajoute un stade
Example request:
curl -X POST \
"https://api.oss.coop/dictionnaire/stade" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"stade2","designation":"designation2","designation_court":"d2","code_bbch":"AZERTY123","culture_uid":"1"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/stade"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "stade2",
"designation": "designation2",
"designation_court": "d2",
"code_bbch": "AZERTY123",
"culture_uid": "1"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/dictionnaire/stade',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'stade2',
'designation' => 'designation2',
'designation_court' => 'd2',
'code_bbch' => 'AZERTY123',
'culture_uid' => '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "stade2",
"designation": "designation2",
"designation_court": "d2",
"code_bbch": "AZERTY123",
"culture": { ... }
}
}
Received response:
Request failed with error:
Stade - Modifier
requires authentication
Modifie un stade
Example request:
curl -X PUT \
"https://api.oss.coop/dictionnaire/stade/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"stade3","designation":"designation2","designation_court":"null","code_bbch":"null","culture_uid":"null"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/stade/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "stade3",
"designation": "designation2",
"designation_court": "null",
"code_bbch": "null",
"culture_uid": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/dictionnaire/stade/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'stade3',
'designation' => 'designation2',
'designation_court' => 'null',
'code_bbch' => 'null',
'culture_uid' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "stade3",
"designation": "designation2",
"designation_court": null,
"code_bbch": null,
"culture": null
}
}
Received response:
Request failed with error:
Stade - Supprimer
requires authentication
Supprime un stade
Example request:
curl -X DELETE \
"https://api.oss.coop/dictionnaire/stade/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/stade/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/dictionnaire/stade/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Etiquette - Gabarit - Lister
requires authentication
Liste des gabarits des étiquettes
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/etiquette/gabarit?sort=nom.ASC%2Cid.DESC&page=14&limit=4" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/etiquette/gabarit"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "14",
"limit": "4",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/etiquette/gabarit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '14',
'limit'=> '4',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "gabarit1",
"designation": "valeur",
"marge_haut": "0",
"marge_bas": "0",
"marge_droite": "0",
"marge_gouche": "0",
"page_largeur": "0",
"page_hauteur": "0",
"nb_etiquettes_x": "0",
"nb_etiquettes_y": "0",
"marge_etiquette_x": "0",
"marge_etiquette_y": "0"
}
]
}
Received response:
Request failed with error:
Etiquette - Gabarit - Voir
requires authentication
Détails d'un gabarit d'étiquettes
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/etiquette/gabarit/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/etiquette/gabarit/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/etiquette/gabarit/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "gabarit1",
"designation": "valeur",
"marge_haut": "0",
"marge_bas": "0",
"marge_droite": "0",
"marge_gouche": "0",
"page_largeur": "0",
"page_hauteur": "0",
"nb_etiquettes_x": "0",
"nb_etiquettes_y": "0",
"marge_etiquette_x": "0",
"marge_etiquette_y": "0"
}
}
Received response:
Request failed with error:
Etiquette - Gabarit - Ajouter
requires authentication
Ajoute un gabarit d'étiquettes
Example request:
curl -X POST \
"https://api.oss.coop/dictionnaire/etiquette/gabarit" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"gabarit2","designation":"valeur2","nb_etiquettes_x":5,"nb_etiquettes_y":10,"marge_haut":"2.1","marge_bas":"2.1","marge_droite":"2.1","marge_gauche":"2.1","page_largeur":"27","page_hauteur":"40","marge_etiquette_x":"2","marge_etiquette_y":"3"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/etiquette/gabarit"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "gabarit2",
"designation": "valeur2",
"nb_etiquettes_x": 5,
"nb_etiquettes_y": 10,
"marge_haut": "2.1",
"marge_bas": "2.1",
"marge_droite": "2.1",
"marge_gauche": "2.1",
"page_largeur": "27",
"page_hauteur": "40",
"marge_etiquette_x": "2",
"marge_etiquette_y": "3"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/dictionnaire/etiquette/gabarit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'gabarit2',
'designation' => 'valeur2',
'nb_etiquettes_x' => 5,
'nb_etiquettes_y' => 10,
'marge_haut' => '2.1',
'marge_bas' => '2.1',
'marge_droite' => '2.1',
'marge_gauche' => '2.1',
'page_largeur' => '27',
'page_hauteur' => '40',
'marge_etiquette_x' => '2',
'marge_etiquette_y' => '3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "gabarit2",
"designation": "valeur2",
"marge_haut": "2.1",
"marge_bas": "2.1",
"marge_droite": "1.5",
"marge_gouche": "1.5",
"page_largeur": "27",
"page_hauteur": "40",
"nb_etiquettes_x": "5",
"nb_etiquettes_y": "10",
"marge_etiquette_x": "2",
"marge_etiquette_y": "3"
}
}
Received response:
Request failed with error:
Etiquette - Gabarit - Modifier
requires authentication
Modifie un gabarit d'étiquettes
Example request:
curl -X PUT \
"https://api.oss.coop/dictionnaire/etiquette/gabarit/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"gabarit2","designation":"valeur2","nb_etiquettes_x":0,"nb_etiquettes_y":0,"marge_haut":"0","marge_bas":"0","marge_droite":"0","marge_gauche":"0","page_largeur":"0","page_hauteur":"0","marge_etiquette_x":"0","marge_etiquette_y":"0"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/etiquette/gabarit/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "gabarit2",
"designation": "valeur2",
"nb_etiquettes_x": 0,
"nb_etiquettes_y": 0,
"marge_haut": "0",
"marge_bas": "0",
"marge_droite": "0",
"marge_gauche": "0",
"page_largeur": "0",
"page_hauteur": "0",
"marge_etiquette_x": "0",
"marge_etiquette_y": "0"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/dictionnaire/etiquette/gabarit/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'gabarit2',
'designation' => 'valeur2',
'nb_etiquettes_x' => 0,
'nb_etiquettes_y' => 0,
'marge_haut' => '0',
'marge_bas' => '0',
'marge_droite' => '0',
'marge_gauche' => '0',
'page_largeur' => '0',
'page_hauteur' => '0',
'marge_etiquette_x' => '0',
'marge_etiquette_y' => '0',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "gabarit2",
"designation": "valeur2",
"marge_haut": "0",
"marge_bas": "0",
"marge_droite": "0",
"marge_gouche": "0",
"page_largeur": "0",
"page_hauteur": "0",
"nb_etiquettes_x": "0",
"nb_etiquettes_y": "0",
"marge_etiquette_x": "0",
"marge_etiquette_y": "0"
}
}
Received response:
Request failed with error:
Etiquette - Gabarit - Supprimer
requires authentication
Supprime un gabarit d'étiquettes
Example request:
curl -X DELETE \
"https://api.oss.coop/dictionnaire/etiquette/gabarit/17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/etiquette/gabarit/17"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/dictionnaire/etiquette/gabarit/17',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Etiquette - Gabarit - Zone - Lister
requires authentication
Liste des zones d'un gabarit d'étiquettes
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone?sort=nom.ASC%2Cid.DESC&page=6&limit=20" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "6",
"limit": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '6',
'limit'=> '20',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"x": "0",
"y": "0",
"largeur": "5",
"hauteur": "4.2"
}
]
}
Received response:
Request failed with error:
Etiquette - Gabarit - Zone - Voir
requires authentication
Détails d'une zone d'un gabarit d'étiquettes
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"x": "0",
"y": "0",
"largeur": "5",
"hauteur": "4.2"
}
}
Received response:
Request failed with error:
Etiquette - Gabarit - Zone - Ajouter
requires authentication
Ajoute une zone d'un gabarit d'étiquettes
Example request:
curl -X POST \
"https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"x":"5","y":"0","largeur":"10","hauteur":"8.4"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"x": "5",
"y": "0",
"largeur": "10",
"hauteur": "8.4"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'x' => '5',
'y' => '0',
'largeur' => '10',
'hauteur' => '8.4',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"x": "5",
"y": "0",
"largeur": "10",
"hauteur": "8.4"
}
}
Received response:
Request failed with error:
Etiquette - Gabarit - Zone - Modifier
requires authentication
Modifie une zone d'un gabarit d'étiquettes
Example request:
curl -X PUT \
"https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"x":"0","y":"4.2","largeur":"5","hauteur":"4.2"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"x": "0",
"y": "4.2",
"largeur": "5",
"hauteur": "4.2"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'x' => '0',
'y' => '4.2',
'largeur' => '5',
'hauteur' => '4.2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"x": "0",
"y": "4.2",
"largeur": "5",
"hauteur": "4.2"
}
}
Received response:
Request failed with error:
Etiquette - Gabarit - Zone - Supprimer
requires authentication
Supprime une zone d'un gabarit d'étiquettes
Example request:
curl -X DELETE \
"https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/dictionnaire/etiquette/gabarit/1/zone/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Bordure - Lister
requires authentication
Liste des bordures
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/bordure?sort=nom.ASC%2Cid.DESC&page=12&limit=15" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/bordure"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "12",
"limit": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/bordure',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '12',
'limit'=> '15',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Bordure - Voir
requires authentication
Détails d'un bordure
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/bordure/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/bordure/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/bordure/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Marge - Lister
requires authentication
Liste des marges
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/marge?sort=nom.ASC%2Cid.DESC&page=13&limit=19" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/marge"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "13",
"limit": "19",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/marge',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '13',
'limit'=> '19',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Marge - Voir
requires authentication
Détails d'un marge
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/marge/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/marge/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/marge/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Implantation de temoins - Lister
requires authentication
Liste des implantations de temoins
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/implantation_temoins?sort=nom.ASC%2Cid.DESC&page=12&limit=15" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/implantation_temoins"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "12",
"limit": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/implantation_temoins',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '12',
'limit'=> '15',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Implantation de temoins - Voir
requires authentication
Détails d'une implantation de temoins
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/implantation_temoins/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/implantation_temoins/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/implantation_temoins/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Randomisation - Lister
requires authentication
Liste des randomisations
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/randomisation?sort=nom.ASC%2Cid.DESC&page=12&limit=6" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/randomisation"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "12",
"limit": "6",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/randomisation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '12',
'limit'=> '6',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Randomisation - Voir
requires authentication
Détails d'une randomisation
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/randomisation/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/randomisation/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/randomisation/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Orientation générale - Lister
requires authentication
Liste des orientations générales
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/orientation_generale?sort=nom.ASC%2Cid.DESC&page=18&limit=17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/orientation_generale"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "18",
"limit": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/orientation_generale',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '18',
'limit'=> '17',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Orientation générale - Voir
requires authentication
Détails d'une orientation générale
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/orientation_generale/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/orientation_generale/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/orientation_generale/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Point de départ - Lister
requires authentication
Liste des points de départ
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/point_depart?sort=nom.ASC%2Cid.DESC&page=12&limit=15" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/point_depart"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "12",
"limit": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/point_depart',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '12',
'limit'=> '15',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Point de départ - Voir
requires authentication
Détails d'un point de départ
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/point_depart/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/point_depart/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/point_depart/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Coin de départ - Lister
requires authentication
Liste des coins coins de départ
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/coin_depart?sort=nom.ASC%2Cid.DESC&page=15&limit=20" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/coin_depart"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "15",
"limit": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/coin_depart',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '15',
'limit'=> '20',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "donald"
}
]
}
Received response:
Request failed with error:
Coin de départ - Voir
requires authentication
Détails d'un coin coin de départ
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/coin_depart/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/coin_depart/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/coin_depart/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "donald"
}
}
Received response:
Request failed with error:
Variable Calculée - Lister
requires authentication
Liste des variables calculées
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/variable_calculee?sort=nom.ASC%2Cid.DESC&page=9&limit=15" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/variable_calculee"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "9",
"limit": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/variable_calculee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '9',
'limit'=> '15',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "designation1",
"liecible": "prout"
}
]
}
Received response:
Request failed with error:
Variable Calculée - Voir
requires authentication
Détails d'une variable calculée
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/variable_calculee/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/variable_calculee/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/variable_calculee/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "designation1",
"liecible": "prout"
}
}
Received response:
Request failed with error:
Variable Calculée - Ajouter
requires authentication
Ajoute une variable calculée
Example request:
curl -X POST \
"https://api.oss.coop/dictionnaire/variable_calculee" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel2","designation":"designation2","liecible":"liecible2"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/variable_calculee"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel2",
"designation": "designation2",
"liecible": "liecible2"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/dictionnaire/variable_calculee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel2',
'designation' => 'designation2',
'liecible' => 'liecible2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel2",
"designation": "designation2",
"liecible": "liecible2"
}
}
Received response:
Request failed with error:
Variable Calculée - Modifier
requires authentication
Modifie une variable calculée
Example request:
curl -X PUT \
"https://api.oss.coop/dictionnaire/variable_calculee/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel3","designation":"designation3","liecible":"null"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/variable_calculee/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel3",
"designation": "designation3",
"liecible": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/dictionnaire/variable_calculee/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel3',
'designation' => 'designation3',
'liecible' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel3",
"designation": "designation3",
"liecible": null
}
}
Received response:
Request failed with error:
Variable Calculée - Supprimer
requires authentication
Supprime une variable calculée
Example request:
curl -X DELETE \
"https://api.oss.coop/dictionnaire/variable_calculee/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/variable_calculee/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/dictionnaire/variable_calculee/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Variable Calculée - Paramètre - Lister
requires authentication
Liste des paramètres d'une variable calculée
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/variable_calculee/1/parametre?sort=nom.ASC%2Cid.DESC&page=7&limit=13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/variable_calculee/1/parametre"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "7",
"limit": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/variable_calculee/1/parametre',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '7',
'limit'=> '13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"variable": "variable",
"designation": "designation1",
"nomenclature": "prout"
}
]
}
Received response:
Request failed with error:
Variable Calculée - Paramètre - Voir
requires authentication
Détails d'un paramètre d'une variable calculée
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/variable_calculee/1/parametre/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/variable_calculee/1/parametre/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/variable_calculee/1/parametre/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"variable": "variable",
"designation": "designation1",
"nomenclature": "prout"
}
}
Received response:
Request failed with error:
Variable Calculée - Paramètre - Ajouter
requires authentication
Ajoute un paramètre d'une variable calculée
Example request:
curl -X POST \
"https://api.oss.coop/dictionnaire/variable_calculee/1/parametre" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"variable":"variable2","designation":"designation2","nomenclature":"nomenclature2"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/variable_calculee/1/parametre"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variable": "variable2",
"designation": "designation2",
"nomenclature": "nomenclature2"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/dictionnaire/variable_calculee/1/parametre',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'variable' => 'variable2',
'designation' => 'designation2',
'nomenclature' => 'nomenclature2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"variable": "variable2",
"designation": "designation2",
"nomenclature": "nomenclature2"
}
}
Received response:
Request failed with error:
Variable Calculée - Paramètre - Modifier
requires authentication
Modifie un paramètre d'une variable calculée
Example request:
curl -X PUT \
"https://api.oss.coop/dictionnaire/variable_calculee/1/parametre/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"variable":"variable3","designation":"designation3","nomenclature":"null"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/variable_calculee/1/parametre/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variable": "variable3",
"designation": "designation3",
"nomenclature": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/dictionnaire/variable_calculee/1/parametre/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'variable' => 'variable3',
'designation' => 'designation3',
'nomenclature' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"variable": "variable3",
"designation": "designation3",
"nomenclature": null
}
}
Received response:
Request failed with error:
Variable Calculée - Paramètre - Supprimer
requires authentication
Supprime un paramètre d'une variable calculée
Example request:
curl -X DELETE \
"https://api.oss.coop/dictionnaire/variable_calculee/1/parametre/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/variable_calculee/1/parametre/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/dictionnaire/variable_calculee/1/parametre/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Saisie Ordre - Lister
requires authentication
Liste des ordres de saisie
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/saisie/ordre?sort=nom.ASC%2Cid.DESC&page=5&limit=12" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/saisie/ordre"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "5",
"limit": "12",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/saisie/ordre',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '5',
'limit'=> '12',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Saisie Ordre - Voir
requires authentication
Détails d'un ordre de saisie
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/saisie/ordre/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/saisie/ordre/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/saisie/ordre/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Saisie Ordre global - Lister
requires authentication
Liste des ordres globaux de saisie
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/saisie/ordre_global?sort=nom.ASC%2Cid.DESC&page=13&limit=13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/saisie/ordre_global"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "13",
"limit": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/saisie/ordre_global',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '13',
'limit'=> '13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Saisie Ordre global - Voir
requires authentication
Détails d'un ordre global de saisie
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/saisie/ordre_global/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/saisie/ordre_global/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/saisie/ordre_global/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Saisie Objet - Lister
requires authentication
Liste des objets de saisie
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/saisie/objet?sort=nom.ASC%2Cid.DESC&page=15&limit=7" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/saisie/objet"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "15",
"limit": "7",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/saisie/objet',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '15',
'limit'=> '7',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Saisie Objet - Voir
requires authentication
Détails d'un objet de saisie
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/saisie/objet/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/saisie/objet/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/saisie/objet/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Saisie Niveau - Lister
requires authentication
Liste des niveaux de saisie
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/saisie/niveau?sort=nom.ASC%2Cid.DESC&page=7&limit=16" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/saisie/niveau"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "7",
"limit": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/saisie/niveau',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '7',
'limit'=> '16',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Saisie Niveau - Voir
requires authentication
Détails d'un niveau de saisie
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/saisie/niveau/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/saisie/niveau/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/saisie/niveau/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Thème - Lister
requires authentication
Liste des thèmes
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/theme?sort=nom.ASC%2Cid.DESC&page=5&limit=9" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/theme"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "5",
"limit": "9",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/theme',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '5',
'limit'=> '9',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Thème - Voir
requires authentication
Détails d'un thème
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/theme/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/theme/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/theme/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Référentiel - Valeur - Lister
requires authentication
Liste des valeurs d'un référentiel
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/referentiel/1/valeur?sort=nom.ASC%2Cid.DESC&page=13&limit=20" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/referentiel/1/valeur"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "13",
"limit": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/referentiel/1/valeur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '13',
'limit'=> '20',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "v1",
"valeur": "Azertyuiop"
}
]
}
Received response:
Request failed with error:
Référentiel - Valeur - Voir
requires authentication
Détails d'une valeur d'un référentiel
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/referentiel/1/valeur/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/referentiel/1/valeur/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/referentiel/1/valeur/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "v1",
"valeur": "Azertyuiop"
}
}
Received response:
Request failed with error:
Référentiel - Valeur - Ajouter
requires authentication
Ajoute une valeur à un référentiel
Example request:
curl -X POST \
"https://api.oss.coop/dictionnaire/referentiel/1/valeur" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"v2","valeur":"Poiuytreza"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/referentiel/1/valeur"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "v2",
"valeur": "Poiuytreza"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/dictionnaire/referentiel/1/valeur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'v2',
'valeur' => 'Poiuytreza',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (201):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "v2",
"valeur": "Poiuytreza"
}
}
Received response:
Request failed with error:
Référentiel - Valeur - Modifier
requires authentication
Modifie une valeur d'un référentiel
Example request:
curl -X PUT \
"https://api.oss.coop/dictionnaire/referentiel/1/valeur/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"v3","valeur":"Nouvelle valeur"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/referentiel/1/valeur/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "v3",
"valeur": "Nouvelle valeur"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/dictionnaire/referentiel/1/valeur/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'v3',
'valeur' => 'Nouvelle valeur',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "v3",
"valeur": "Nouvelle valeur"
}
}
Received response:
Request failed with error:
Référentiel - Valeur - Supprimer
requires authentication
Supprime une valeur d'un référentiel
Example request:
curl -X DELETE \
"https://api.oss.coop/dictionnaire/referentiel/1/valeur/17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/referentiel/1/valeur/17"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/dictionnaire/referentiel/1/valeur/17',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Thématique - Sous-Thématique - Lister
requires authentication
Liste des sous-thématique d'une thématique
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/thematique/1/sous-thematique?sort=nom.ASC%2Cid.DESC&page=13&limit=10" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/thematique/1/sous-thematique"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "13",
"limit": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/thematique/1/sous-thematique',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '13',
'limit'=> '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel1",
"nom": "Azertyuiop"
}
]
}
Received response:
Request failed with error:
Thématique - Sous-Thématique - Voir
requires authentication
Détails d'une sous-thématique d'une thématique
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/thematique/1/sous-thematique/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/thematique/1/sous-thematique/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/thematique/1/sous-thematique/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel1",
"nom": "Azertyuiop"
}
}
Received response:
Request failed with error:
Thématique - Sous-Thématique - Ajouter
requires authentication
Ajoute une sous-thématique à une thématique
Example request:
curl -X POST \
"https://api.oss.coop/dictionnaire/thematique/1/sous-thematique" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel2","nom":"valeur2"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/thematique/1/sous-thematique"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel2",
"nom": "valeur2"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/dictionnaire/thematique/1/sous-thematique',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel2',
'nom' => 'valeur2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (201):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel2",
"designation": "valeur2"
}
}
Received response:
Request failed with error:
Thématique - Sous-Thématique - Modifier
requires authentication
Modifie une sous-thématique d'une thématique
Example request:
curl -X PUT \
"https://api.oss.coop/dictionnaire/thematique/1/sous-thematique/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel3","designation":"valeur3"}'
const url = new URL(
"https://api.oss.coop/dictionnaire/thematique/1/sous-thematique/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel3",
"designation": "valeur3"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/dictionnaire/thematique/1/sous-thematique/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel3',
'designation' => 'valeur3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel3",
"designation": "valeur3"
}
}
Received response:
Request failed with error:
Thématique - Sous-Thématique - Supprimer
requires authentication
Supprime une sous-thématique d'une thématique
Example request:
curl -X DELETE \
"https://api.oss.coop/dictionnaire/thematique/1/sous-thematique/20" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/thematique/1/sous-thematique/20"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/dictionnaire/thematique/1/sous-thematique/20',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Sous-Thématique - Lister
requires authentication
Liste des sous-thématique
Example request:
curl -X GET \
-G "https://api.oss.coop/dictionnaire/sous-thematique?sort=nom.ASC%2Cid.DESC&page=10&limit=13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/dictionnaire/sous-thematique"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "10",
"limit": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/dictionnaire/sous-thematique',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '10',
'limit'=> '13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel1",
"nom": "Azertyuiop"
}
]
}
Received response:
Request failed with error:
Endpoints
{all:.*}
requires authentication
Example request:
curl -X OPTIONS \
"https://api.oss.coop/{all:.*}" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/{all:.*}"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "OPTIONS",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->options(
'https://api.oss.coop/{all:.*}',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Received response:
Request failed with error:
notations/{notation_id:[0-9]+}/donnees
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/notations/{notation_id:[0-9]+}/donnees" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/notations/{notation_id:[0-9]+}/donnees"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/notations/{notation_id:[0-9]+}/donnees',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Received response:
Request failed with error:
notations/{notation_id:[0-9]+}/variables-etudiees/{ve_id:[0-9]+}/donnees
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/notations/{notation_id:[0-9]+}/variables-etudiees/{ve_id:[0-9]+}/donnees" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/notations/{notation_id:[0-9]+}/variables-etudiees/{ve_id:[0-9]+}/donnees"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/notations/{notation_id:[0-9]+}/variables-etudiees/{ve_id:[0-9]+}/donnees',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Received response:
Request failed with error:
notations/{notation_id:[0-9]+}/variables-calculees/{vc_id:[0-9]+}/resultat
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/notations/{notation_id:[0-9]+}/variables-calculees/{vc_id:[0-9]+}/resultat" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/notations/{notation_id:[0-9]+}/variables-calculees/{vc_id:[0-9]+}/resultat"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/notations/{notation_id:[0-9]+}/variables-calculees/{vc_id:[0-9]+}/resultat',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Received response:
Request failed with error:
test/ping
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/test/ping" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/test/ping"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/test/ping',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Received response:
Request failed with error:
test/notations
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/test/notations" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/test/notations"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/test/notations',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Received response:
Request failed with error:
debug/notation/{notation_id:[0-9]+}
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/debug/notation/{notation_id:[0-9]+}" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/debug/notation/{notation_id:[0-9]+}"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/debug/notation/{notation_id:[0-9]+}',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Received response:
Request failed with error:
Entités
Lister
requires authentication
Liste des entités
Example request:
curl -X GET \
-G "https://api.oss.coop/entite?sort=nom.ASC%2Cid.DESC&page=10&limit=16" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/entite"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "10",
"limit": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/entite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '10',
'limit'=> '16',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"type": { ... },
"pays": { ... },
"parent": null,
"nom": "Pays de Candy",
"adresse": "2 Rue Docteur Slump",
"cp": "69666",
"ville": "D City",
"actif": true,
"description": "Blablabla",
"logo_prim": { ... },
"logo_sec": { ... },
"logo_ter": { ... }
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'une entité
Example request:
curl -X GET \
-G "https://api.oss.coop/entite/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/entite/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/entite/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"type": { ... },
"pays": { ... },
"parent": null,
"nom": "Pays de Candy",
"description": "Blablabla",
"adresse": "2 Rue Docteur Slump",
"cp": "69666",
"ville": "D City",
"actif": true,
"logo_prim": { ... },
"logo_sec": { ... },
"logo_ter": { ... }
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute une entité
Example request:
curl -X POST \
"https://api.oss.coop/entite" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"type_uid":"id_unique_universel","parent_id":1,"pays_id":1,"nom":"Diatem","description":"null","adresse":"null","cp":"null","ville":"null","actif":true,"logo_prim_id":19,"logo_sec_id":15,"logo_ter_id":6}'
const url = new URL(
"https://api.oss.coop/entite"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type_uid": "id_unique_universel",
"parent_id": 1,
"pays_id": 1,
"nom": "Diatem",
"description": "null",
"adresse": "null",
"cp": "null",
"ville": "null",
"actif": true,
"logo_prim_id": 19,
"logo_sec_id": 15,
"logo_ter_id": 6
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/entite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'type_uid' => 'id_unique_universel',
'parent_id' => 1,
'pays_id' => 1,
'nom' => 'Diatem',
'description' => 'null',
'adresse' => 'null',
'cp' => 'null',
'ville' => 'null',
'actif' => true,
'logo_prim_id' => 19,
'logo_sec_id' => 15,
'logo_ter_id' => 6,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"type": { ... },
"pays": { ... },
"parent": { ... },
"nom": "Diatem",
"description": null,
"adresse": null,
"cp": null,
"ville": null,
"actif": true,
"logo_prim": null,
"logo_sec": null,
"logo_ter": null
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie une entité
Example request:
curl -X PUT \
"https://api.oss.coop/entite/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"type_uid":"id_unique_universel","parent_id":0,"pays_id":1,"nom":"Diatem","description":"Un entreprise de talents ! Surtout en comm.","adresse":"2 rue de Dublin","cp":"67300","ville":"Schiltigheim","actif":true,"logo_prim_id":1,"logo_sec_id":2,"logo_ter_id":3}'
const url = new URL(
"https://api.oss.coop/entite/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type_uid": "id_unique_universel",
"parent_id": 0,
"pays_id": 1,
"nom": "Diatem",
"description": "Un entreprise de talents ! Surtout en comm.",
"adresse": "2 rue de Dublin",
"cp": "67300",
"ville": "Schiltigheim",
"actif": true,
"logo_prim_id": 1,
"logo_sec_id": 2,
"logo_ter_id": 3
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/entite/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'type_uid' => 'id_unique_universel',
'parent_id' => 0,
'pays_id' => 1,
'nom' => 'Diatem',
'description' => 'Un entreprise de talents ! Surtout en comm.',
'adresse' => '2 rue de Dublin',
'cp' => '67300',
'ville' => 'Schiltigheim',
'actif' => true,
'logo_prim_id' => 1,
'logo_sec_id' => 2,
'logo_ter_id' => 3,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"type": { ... },
"pays": { ... },
"parent": null,
"nom": "Diatem",
"description": "Un entreprise de talents ! Surtout en comm.",
"adresse": "2 rue de Dublin",
"cp": "67300",
"ville": "Schiltigheim",
"actif": true,
"logo_prim": { ... },
"logo_sec": { ... },
"logo_ter": { ... }
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime une entité
Example request:
curl -X DELETE \
"https://api.oss.coop/entite/9" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/entite/9"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/entite/9',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Paramètre - Lister
requires authentication
Liste des paramètres d'une entité
Example request:
curl -X GET \
-G "https://api.oss.coop/entite/1/parametre" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/entite/1/parametre"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/entite/1/parametre',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"precisions": "Petit text explicatif",
"designation": "valeur",
"valeur": "whatever"
}
]
}
Received response:
Request failed with error:
Paramètre - Modifier
requires authentication
Modifie les paramères d'une entité
Example request:
curl -X PUT \
"https://api.oss.coop/entite/1/parametre" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"parametres":[{"uid":"id_unique_universel2","valeur":"whatever2"},{"uid":"id_unique_universel2"}]}'
const url = new URL(
"https://api.oss.coop/entite/1/parametre"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"parametres": [
{
"uid": "id_unique_universel2",
"valeur": "whatever2"
},
{
"uid": "id_unique_universel2"
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/entite/1/parametre',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'parametres' => [
[
'uid' => 'id_unique_universel2',
'valeur' => 'whatever2',
],
[
'uid' => 'id_unique_universel2',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel2",
"precisions": "Petit text explicatif 2",
"designation": "valeur2",
"valeur": "whatever2"
}
]
}
Received response:
Request failed with error:
Erreurs
Lister
requires authentication
Liste des erreurs
Example request:
curl -X GET \
-G "https://api.oss.coop/erreur?sort=nom.ASC%2Cid.DESC&page=7&limit=10" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/erreur"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "7",
"limit": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/erreur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '7',
'limit'=> '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"create": "2025-04-03 15:10:41",
"model": App\Data\Models\Essai,
"model_id": 1,
"details": "Essai : une erreur",
"type": { ... }
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'une erreur
Example request:
curl -X GET \
-G "https://api.oss.coop/erreur/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/erreur/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/erreur/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"create": "2025-04-03 15:10:41",
"model": App\Data\Models\Essai,
"model_id": 1,
"details": "Essai : une erreur",
"type": { ... }
}
}
Received response:
Request failed with error:
Essais
Lister
requires authentication
Liste des essais
Example request:
curl -X GET \
-G "https://api.oss.coop/essai?sort=nom.ASC%2Cid.DESC&page=16&limit=17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "16",
"limit": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '16',
'limit'=> '17',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "essai",
"numero": "azerty123",
"surface_implantation_largeur": "123.456",
"surface_implantation_longueur": "123.456",
"surface_application_largeur": "123.456",
"surface_application_longueur": "123.456",
"surface_recoltee_largeur": "123.456",
"surface_recoltee_longueur": "123.456",
"plate_forme": false,
"protocole": { ... },
"parcelle": { ... },
"modalite": { ... },
"technicien": { ... }
}
]
}
Received response:
Request failed with error:
Lister
requires authentication
Liste des essais
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/enfants?sort=nom.ASC%2Cid.DESC&page=13&limit=12" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/enfants"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "13",
"limit": "12",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/enfants',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '13',
'limit'=> '12',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "essai",
"numero": "azerty123",
"surface_implantation_largeur": "123.456",
"surface_implantation_longueur": "123.456",
"surface_application_largeur": "123.456",
"surface_application_longueur": "123.456",
"surface_recoltee_largeur": "123.456",
"surface_recoltee_longueur": "123.456",
"plate_forme": false,
"protocole": { ... },
"parcelle": { ... },
"modalite": { ... },
"technicien": { ... }
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"nom": "essai",
"numero": "azerty123",
"surface_implantation_largeur": "123.456",
"surface_implantation_longueur": "123.456",
"surface_application_largeur": "123.456",
"surface_application_longueur": "123.456",
"surface_recoltee_largeur": "123.456",
"surface_recoltee_longueur": "123.456",
"plate_forme": false,
"protocole": { ... },
"parcelle": { ... },
"modalite": { ... },
"technicien": { ... }
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute un essai
Example request:
curl -X POST \
"https://api.oss.coop/essai" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"Essai2","numero":"123azerty","surface_implantation_largeur":"123","surface_implantation_longueur":"123","surface_application_largeur":"123","surface_application_longueur":"123","surface_recoltee_largeur":"123","surface_recoltee_longueur":"123","plate_forme":false,"protocole_id":1,"parcelle_id":1,"modalite_id":1,"technicien_id":1}'
const url = new URL(
"https://api.oss.coop/essai"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "Essai2",
"numero": "123azerty",
"surface_implantation_largeur": "123",
"surface_implantation_longueur": "123",
"surface_application_largeur": "123",
"surface_application_longueur": "123",
"surface_recoltee_largeur": "123",
"surface_recoltee_longueur": "123",
"plate_forme": false,
"protocole_id": 1,
"parcelle_id": 1,
"modalite_id": 1,
"technicien_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'Essai2',
'numero' => '123azerty',
'surface_implantation_largeur' => '123',
'surface_implantation_longueur' => '123',
'surface_application_largeur' => '123',
'surface_application_longueur' => '123',
'surface_recoltee_largeur' => '123',
'surface_recoltee_longueur' => '123',
'plate_forme' => false,
'protocole_id' => 1,
'parcelle_id' => 1,
'modalite_id' => 1,
'technicien_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "Essai2",
"numero": "123azerty",
"surface_implantation_largeur": "123",
"surface_implantation_longueur": "123",
"surface_application_largeur": "123",
"surface_application_longueur": "123",
"surface_recoltee_largeur": "123",
"surface_recoltee_longueur": "123",
"plate_forme": false,
"protocole": { ... },
"parcelle": { ... },
"modalite": { ... },
"technicien": { ... }
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"Essai3","numero":"null","surface_implantation_largeur":"null","surface_implantation_longueur":"null","surface_application_largeur":"null","surface_application_longueur":"null","surface_recoltee_largeur":"null","surface_recoltee_longueur":"null","plate_forme":true,"protocole_id":1,"parcelle_id":1,"modalite_id":"null","technicien_id":2}'
const url = new URL(
"https://api.oss.coop/essai/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "Essai3",
"numero": "null",
"surface_implantation_largeur": "null",
"surface_implantation_longueur": "null",
"surface_application_largeur": "null",
"surface_application_longueur": "null",
"surface_recoltee_largeur": "null",
"surface_recoltee_longueur": "null",
"plate_forme": true,
"protocole_id": 1,
"parcelle_id": 1,
"modalite_id": "null",
"technicien_id": 2
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'Essai3',
'numero' => 'null',
'surface_implantation_largeur' => 'null',
'surface_implantation_longueur' => 'null',
'surface_application_largeur' => 'null',
'surface_application_longueur' => 'null',
'surface_recoltee_largeur' => 'null',
'surface_recoltee_longueur' => 'null',
'plate_forme' => true,
'protocole_id' => 1,
'parcelle_id' => 1,
'modalite_id' => 'null',
'technicien_id' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "Essai3",
"numero": null,
"surface_implantation_largeur": null,
"surface_implantation_longueur": null,
"surface_application_largeur": null,
"surface_application_longueur": null,
"surface_recoltee_largeur": null,
"surface_recoltee_longueur": null,
"plate_forme": null,
"protocole": { ... },
"parcelle": { ... },
"modalite": null,
"technicien": { ... }
}
}
Received response:
Request failed with error:
Validation
requires authentication
Revalide un essai
Example request:
curl -X PATCH \
"https://api.oss.coop/essai/2/validation" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/2/validation"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/essai/2/validation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 4,
"trigramme_validation": null,
"date_validation": null,
"chemin_personnalise": null,
"surface_comptage": null,
"nb_grains_comptage_elementaire": null,
"aveugle": null,
"coin_depart": null,
"saisie_objet": { ... },
"saisie_ordre": null,
"saisie_ordre_global": null
}
}
Received response:
Request failed with error:
Lister
requires authentication
Liste des protocole des essais
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/enfants/protocole?sort=nom.ASC%2Cid.DESC&page=9&limit=17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/enfants/protocole"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "9",
"limit": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/enfants/protocole',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '9',
'limit'=> '17',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "essai",
"numero": "azerty123",
"surface_implantation_largeur": "123.456",
"surface_implantation_longueur": "123.456",
"surface_application_largeur": "123.456",
"surface_application_longueur": "123.456",
"surface_recoltee_largeur": "123.456",
"surface_recoltee_longueur": "123.456",
"plate_forme": false,
"protocole": { ... },
"parcelle": { ... },
"modalite": { ... },
"technicien": { ... }
}
]
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime un essai
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Fichier - Lister
requires authentication
Liste des fichiers d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/fichier" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/fichier"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/fichier',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"description": "valeur",
"categorie": { ... },
"media": { ... }
}
]
}
Received response:
Request failed with error:
Fichier - Modifier
requires authentication
Modifie les fichiers d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/fichier" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"fichiers":[{"id":"2"},{"id":"2"}]}'
const url = new URL(
"https://api.oss.coop/essai/1/fichier"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"fichiers": [
{
"id": "2"
},
{
"id": "2"
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/fichier',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'fichiers' => [
[
'id' => '2',
],
[
'id' => '2',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"description": "valeur2",
"categorie": { ... },
"media": { ... }
}
]
}
Received response:
Request failed with error:
Fiche - Bilan - Lister
requires authentication
Liste des fiches de bilan d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/fiche/bilan?sort=nom.ASC%2Cid.DESC&page=20&limit=20" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/fiche/bilan"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "20",
"limit": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/fiche/bilan',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '20',
'limit'=> '20',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"dispositif": true,
"dispositif_precisions": "Au poil de c",
"dispositif_evaluation": "Bons dispositif",
"appchamp": true,
"appchamp_precisions": "Au poil de c",
"appchamp_evaluation": "Bonnes appchamp",
"notations": true,
"notations_precisions": "Au poil de c",
"notations_evaluation": "Bonnes notations",
"cv_rendement": 12.5,
"rendement_moyen": 12.5,
"validation_agronomique": false,
"validation_statistique": false,
"stats": true,
"stats_precisions": "Au poil de c",
"stats_evaluation": "Bonnes stats",
"etatvegetatif": "Le dev de cette API probablement...",
"stressclimat_temp": true,
"stress_temp_commentaires": "Commentaire stress température",
"stressclimat_pluvio": true,
"stress_pluvio_commentaires": "Commentaire stress pluviométrie",
"avis_resultats": "Bonne API dans l'ensemble, mais pas mal de petits bugs de merde",
"stress_temp_pre": { ... },
"stress_temp": { ... },
"stress_temp_post": { ... },
"stress_pluvio_pre": { ... },
"stress_pluvio": { ... },
"stress_pluvio_post": { ... }
}
]
}
Received response:
Request failed with error:
Fiche - Bilan - Voir
requires authentication
Détails d'une fiche de bilan d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/fiche/bilan/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/fiche/bilan/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/fiche/bilan/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"dispositif": true,
"dispositif_precisions": "Au poil de c",
"dispositif_evaluation": "Bons dispositif",
"appchamp": true,
"appchamp_precisions": "Au poil de c",
"appchamp_evaluation": "Bonnes appchamp",
"notations": true,
"notations_precisions": "Au poil de c",
"notations_evaluation": "Bonnes notations",
"cv_rendement": 12.5,
"rendement_moyen": 12.5,
"validation_agronomique": false,
"validation_statistique": false,
"stats": true,
"stats_precisions": "Au poil de c",
"stats_evaluation": "Bonnes stats",
"etatvegetatif": "Le dev de cette API probablement...",
"stressclimat_temp": true,
"stress_temp_commentaires": "Commentaire stress température",
"stressclimat_pluvio": true,
"stress_pluvio_commentaires": "Commentaire stress pluviométrie",
"avis_resultats": "Bonne API dans l'ensemble, mais pas mal de petits bugs de merde",
"stress_temp_pre": { ... },
"stress_temp": { ... },
"stress_temp_post": { ... },
"stress_pluvio_pre": { ... },
"stress_pluvio": { ... },
"stress_pluvio_post": { ... }
}
}
Received response:
Request failed with error:
Fiche - Bilan - Modifier
requires authentication
Modifie une fiche de bilan d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/fiche/bilan/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"dispositif":true,"dispositif_precisions":"null","dispositif_evaluation":"null","appchamp":true,"appchamp_precisions":"null","appchamp_evaluation":"null","notations":true,"notations_precisions":"null","notations_evaluation":"null","cv_rendement":"null","rendement_moyen":"null","validation_agronomique":true,"validation_statistique":true,"stats":true,"stats_precisions":"null","stats_evaluation":"null","etatvegetatif":"null","stressclimat_temp":true,"stress_temp_commentaires":"null","stressclimat_pluvio":true,"stress_pluvio_commentaires":"null","avis_resultats":"null","stress_temp_pre_id":0,"stress_temp_id":0,"stress_temp_post_id":0,"stress_pluvio__pre_id":0,"stress_pluvio__id":0,"stress_pluvio__post_id":0}'
const url = new URL(
"https://api.oss.coop/essai/1/fiche/bilan/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"dispositif": true,
"dispositif_precisions": "null",
"dispositif_evaluation": "null",
"appchamp": true,
"appchamp_precisions": "null",
"appchamp_evaluation": "null",
"notations": true,
"notations_precisions": "null",
"notations_evaluation": "null",
"cv_rendement": "null",
"rendement_moyen": "null",
"validation_agronomique": true,
"validation_statistique": true,
"stats": true,
"stats_precisions": "null",
"stats_evaluation": "null",
"etatvegetatif": "null",
"stressclimat_temp": true,
"stress_temp_commentaires": "null",
"stressclimat_pluvio": true,
"stress_pluvio_commentaires": "null",
"avis_resultats": "null",
"stress_temp_pre_id": 0,
"stress_temp_id": 0,
"stress_temp_post_id": 0,
"stress_pluvio__pre_id": 0,
"stress_pluvio__id": 0,
"stress_pluvio__post_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/fiche/bilan/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'dispositif' => true,
'dispositif_precisions' => 'null',
'dispositif_evaluation' => 'null',
'appchamp' => true,
'appchamp_precisions' => 'null',
'appchamp_evaluation' => 'null',
'notations' => true,
'notations_precisions' => 'null',
'notations_evaluation' => 'null',
'cv_rendement' => 'null',
'rendement_moyen' => 'null',
'validation_agronomique' => true,
'validation_statistique' => true,
'stats' => true,
'stats_precisions' => 'null',
'stats_evaluation' => 'null',
'etatvegetatif' => 'null',
'stressclimat_temp' => true,
'stress_temp_commentaires' => 'null',
'stressclimat_pluvio' => true,
'stress_pluvio_commentaires' => 'null',
'avis_resultats' => 'null',
'stress_temp_pre_id' => 0,
'stress_temp_id' => 0,
'stress_temp_post_id' => 0,
'stress_pluvio__pre_id' => 0,
'stress_pluvio__id' => 0,
'stress_pluvio__post_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"dispositif": null,
"dispositif_precisions": null,
"dispositif_evaluation": null,
"appchamp": null,
"appchamp_precisions": null,
"appchamp_evaluation": null,
"notations": null,
"notations_precisions": null,
"notations_evaluation": null,
"cv_rendement": null,
"rendement_moyen": null,
"validation_agronomique": null,
"validation_statistique": null,
"stats": null,
"stats_precisions": null,
"stats_evaluation": null,
"etatvegetatif": null,
"stressclimat_temp": null,
"stress_temp_commentaires": null,
"stressclimat_pluvio": null,
"stress_pluvio_commentaires": null,
"avis_resultats": null,
"stress_temp_pre": null,
"stress_temp": null,
"stress_temp_post": null,
"stress_pluvio_pre": null,
"stress_pluvio": null,
"stress_pluvio_post": null
}
}
Received response:
Request failed with error:
Fiche - Validation - Lister
requires authentication
Liste des fiches de validation d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/fiche/validation?sort=nom.ASC%2Cid.DESC&page=9&limit=11" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/fiche/validation"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "9",
"limit": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/fiche/validation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '9',
'limit'=> '11',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"commentaires": "validation d'un essai",
"cloture": false,
"abandone_essai": false,
"stat_validation": false,
"stat_commentaire": "no comment",
"validation_agro": false,
"validation_trigramme": "AZERTY1234",
"validation_date": "2150-12-31 12:00:00+02",
"accord_objectif": { ... }
}
]
}
Received response:
Request failed with error:
Fiche - Validation - Voir
requires authentication
Détails d'une fiche de validation d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/fiche/validation/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/fiche/validation/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/fiche/validation/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"commentaires": "validation d'un essai",
"cloture": false,
"abandone_essai": false,
"stat_validation": false,
"stat_commentaire": "no comment",
"validation_agro": false,
"validation_trigramme": "AZERTY1234",
"validation_date": "2150-12-31 12:00:00+02",
"accord_objectif": { ... }
}
}
Received response:
Request failed with error:
Fiche - Validation - Modifier
requires authentication
Modifie une fiche de validation d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/fiche/validation/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"commentaires":"null","cloture":true,"abandone_essai":true,"stat_validation":true,"stat_commentaire":"null","validation_agro":true,"validation_trigramme":"null","validation_date":"null","accord_objectif_id":0}'
const url = new URL(
"https://api.oss.coop/essai/1/fiche/validation/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"commentaires": "null",
"cloture": true,
"abandone_essai": true,
"stat_validation": true,
"stat_commentaire": "null",
"validation_agro": true,
"validation_trigramme": "null",
"validation_date": "null",
"accord_objectif_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/fiche/validation/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'commentaires' => 'null',
'cloture' => true,
'abandone_essai' => true,
'stat_validation' => true,
'stat_commentaire' => 'null',
'validation_agro' => true,
'validation_trigramme' => 'null',
'validation_date' => 'null',
'accord_objectif_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"commentaires": null,
"cloture": null,
"abandone_essai": null,
"stat_validation": null,
"stat_commentaire": null,
"validation_agro": null,
"validation_trigramme": null,
"validation_date": null,
"accord_objectif": null
}
}
Received response:
Request failed with error:
Fiche - Statut SIDEP - Lister
requires authentication
Liste des fiches de statut SIDEP d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/fiche/statut_sidep?sort=nom.ASC%2Cid.DESC&page=16&limit=16" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/fiche/statut_sidep"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "16",
"limit": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/fiche/statut_sidep',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '16',
'limit'=> '16',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"declaration_date": "2150-12-31 12:00:00+02",
"cloture_date": "2150-12-31 12:00:00+02",
"statut_declaration": { ... },
"statut_cloture": { ... }
}
]
}
Received response:
Request failed with error:
Fiche - Statut SIDEP - Voir
requires authentication
Détails d'une fiche de statut SIDEP d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/fiche/statut_sidep/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/fiche/statut_sidep/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/fiche/statut_sidep/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"declaration_date": "2150-12-31 12:00:00+02",
"cloture_date": "2150-12-31 12:00:00+02",
"statut_declaration": { ... },
"statut_cloture": { ... }
}
}
Received response:
Request failed with error:
Fiche - Statut SIDEP - Modifier
requires authentication
Modifie une fiche de statut SIDEP d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/fiche/statut_sidep/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"declaration_date":"null","cloture_date":"null","statut_declaration_id":0,"statut_cloture_id":0}'
const url = new URL(
"https://api.oss.coop/essai/1/fiche/statut_sidep/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"declaration_date": "null",
"cloture_date": "null",
"statut_declaration_id": 0,
"statut_cloture_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/fiche/statut_sidep/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'declaration_date' => 'null',
'cloture_date' => 'null',
'statut_declaration_id' => 0,
'statut_cloture_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"declaration_date": "2150-12-31 12:00:00+02",
"cloture_date": "2150-12-31 12:00:00+02",
"statut_declaration": { ... },
"statut_cloture": { ... }
}
}
Received response:
Request failed with error:
Catalogue Plan - Lister
requires authentication
Liste des plans d'essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/plan?sort=nom.ASC%2Cid.DESC&page=8&limit=7" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/plan"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "8",
"limit": "7",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/plan',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '8',
'limit'=> '7',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "Tempête du désert",
"temoins_exclus_localisation": "pas de témoins, pas de problèmes",
"nb_repetitions": 4,
"nb_modalites": 15,
"nb_lignes": 5,
"nb_colonnes": 3,
"depart_x": 1,
"depart_y": 1,
"parametresavances": false,
"est_variation_temoin": false,
"type": { ... },
"essai": null,
"bordures": [ ... ],
"orientation_generale": { ... },
"point_depart": { ... },
"position_bloc_observation": { ... },
"randomisation": { ... },
"marge": { ... },
"implantation_temoins": { ... },
"facteur": { ... }
}
]
}
Received response:
Request failed with error:
Catalogue Plan - Voir
requires authentication
Détails d'un plan d'essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/plan/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/plan/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/plan/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"nom": "Tempête du désert",
"temoins_exclus_localisation": "pas de témoins, pas de problèmes",
"nb_repetitions": 4,
"nb_modalites": 15,
"nb_lignes": 5,
"nb_colonnes": 3,
"depart_x": 1,
"depart_y": 1,
"parametresavances": false,
"est_variation_temoin": false,
"type": { ... },
"essai": null,
"bordures": [ ... ],
"orientation_generale": { ... },
"point_depart": { ... },
"position_bloc_observation": { ... },
"randomisation": { ... },
"marge": { ... },
"implantation_temoins": { ... },
"facteur": { ... }
}
}
Received response:
Request failed with error:
Catalogue Plan - Ajouter
requires authentication
Ajoute un plan d'essai
Example request:
curl -X POST \
"https://api.oss.coop/essai/plan" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"Barbarossa","temoins_exclus_localisation":"Monsieur X","nb_repetitions":12,"nb_modalites":42,"nb_lignes":5,"nb_colonnes":3,"depart_x":2,"depart_y":2,"disposition":1,"parametresavances":true,"est_variation_temoin":true,"type_uid":"type1","orientation_generale_uid":"orientationgenerale1","point_depart_uid":"pointdepart1","position_bloc_observation_uid":"positionblocobservation1","randomisation_uid":"randomisation1","marge_uid":"marge1","implantation_temoins_uid":"implantationtemoins1","facteur_id":1,"bordures":[{"uid":"bordure1"},[]]}'
const url = new URL(
"https://api.oss.coop/essai/plan"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "Barbarossa",
"temoins_exclus_localisation": "Monsieur X",
"nb_repetitions": 12,
"nb_modalites": 42,
"nb_lignes": 5,
"nb_colonnes": 3,
"depart_x": 2,
"depart_y": 2,
"disposition": 1,
"parametresavances": true,
"est_variation_temoin": true,
"type_uid": "type1",
"orientation_generale_uid": "orientationgenerale1",
"point_depart_uid": "pointdepart1",
"position_bloc_observation_uid": "positionblocobservation1",
"randomisation_uid": "randomisation1",
"marge_uid": "marge1",
"implantation_temoins_uid": "implantationtemoins1",
"facteur_id": 1,
"bordures": [
{
"uid": "bordure1"
},
[]
]
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai/plan',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'Barbarossa',
'temoins_exclus_localisation' => 'Monsieur X',
'nb_repetitions' => 12,
'nb_modalites' => 42,
'nb_lignes' => 5,
'nb_colonnes' => 3,
'depart_x' => 2,
'depart_y' => 2,
'disposition' => 1,
'parametresavances' => true,
'est_variation_temoin' => true,
'type_uid' => 'type1',
'orientation_generale_uid' => 'orientationgenerale1',
'point_depart_uid' => 'pointdepart1',
'position_bloc_observation_uid' => 'positionblocobservation1',
'randomisation_uid' => 'randomisation1',
'marge_uid' => 'marge1',
'implantation_temoins_uid' => 'implantationtemoins1',
'facteur_id' => 1,
'bordures' => [
[
'uid' => 'bordure1',
],
[],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "Barbarossa",
"temoins_exclus_localisation": "Monsieur X",
"nb_repetitions": 12,
"nb_modalites": 42,
"nb_lignes": 5,
"nb_colonnes": 3,
"depart_x": 2,
"depart_y": 2,
"parametresavances": true,
"est_variation_temoin": true,
"type": { ... },
"essai": null,
"bordures": [ ... ],
"orientation_generale": { ... },
"point_depart": { ... },
"position_bloc_observation": { ... },
"randomisation": { ... },
"marge": { ... },
"implantation_temoins": { ... },
"facteur": { ... }
}
}
Received response:
Request failed with error:
essai/plan/{uid:[0-9]+}/check
requires authentication
Example request:
curl -X PATCH \
"https://api.oss.coop/essai/plan/{uid:[0-9]+}/check" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/plan/{uid:[0-9]+}/check"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/essai/plan/{uid:[0-9]+}/check',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Received response:
Request failed with error:
Catalogue Plan - Modifier
requires authentication
Modifie un plan d'essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/plan/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"Barbarossa","temoins_exclus_localisation":"null","nb_repetitions":0,"nb_modalites":0,"nb_lignes":0,"nb_colonnes":0,"depart_x":0,"depart_y":0,"parametresavances":true,"est_variation_temoin":false,"type_uid":"type1","orientation_generale_uid":"null","point_depart_uid":"null","position_bloc_observation_uid":"null","randomisation_uid":"null","marge_uid":"null","implantation_temoins_uid":"null","facteur_id":0,"bordures":[{"uid":"bordure1"},{"uid":"bordure1"}]}'
const url = new URL(
"https://api.oss.coop/essai/plan/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "Barbarossa",
"temoins_exclus_localisation": "null",
"nb_repetitions": 0,
"nb_modalites": 0,
"nb_lignes": 0,
"nb_colonnes": 0,
"depart_x": 0,
"depart_y": 0,
"parametresavances": true,
"est_variation_temoin": false,
"type_uid": "type1",
"orientation_generale_uid": "null",
"point_depart_uid": "null",
"position_bloc_observation_uid": "null",
"randomisation_uid": "null",
"marge_uid": "null",
"implantation_temoins_uid": "null",
"facteur_id": 0,
"bordures": [
{
"uid": "bordure1"
},
{
"uid": "bordure1"
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/plan/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'Barbarossa',
'temoins_exclus_localisation' => 'null',
'nb_repetitions' => 0,
'nb_modalites' => 0,
'nb_lignes' => 0,
'nb_colonnes' => 0,
'depart_x' => 0,
'depart_y' => 0,
'parametresavances' => true,
'est_variation_temoin' => false,
'type_uid' => 'type1',
'orientation_generale_uid' => 'null',
'point_depart_uid' => 'null',
'position_bloc_observation_uid' => 'null',
'randomisation_uid' => 'null',
'marge_uid' => 'null',
'implantation_temoins_uid' => 'null',
'facteur_id' => 0,
'bordures' => [
[
'uid' => 'bordure1',
],
[
'uid' => 'bordure1',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"nom": "Barbarossa",
"temoins_exclus_localisation": null,
"nb_repetitions": null,
"nb_modalites": null,
"nb_lignes": null,
"nb_colonnes": null,
"depart_x": null,
"depart_y": null,
"parametresavances": null,
"est_variation_temoin": false,
"type": { ... },
"essai": null,
"bordures": null,
"orientation_generale": null,
"point_depart": null,
"position_bloc_observation": null,
"randomisation": null,
"marge": null,
"implantation_temoins": null,
"facteur": null
}
}
Received response:
Request failed with error:
Catalogue Plan - Supprimer
requires authentication
Supprime un plan d'essai
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/plan/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/plan/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/plan/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Plan - Lister
requires authentication
Liste des plans d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/plan?sort=nom.ASC%2Cid.DESC&page=9&limit=10" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/plan"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "9",
"limit": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/plan',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '9',
'limit'=> '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "Tempête du désert",
"temoins_exclus_localisation": "pas de témoins, pas de problèmes",
"nb_repetitions": 4,
"nb_modalites": 15,
"nb_lignes": 5,
"nb_colonnes": 3,
"depart_x": 1,
"depart_y": 1,
"parametresavances": false,
"est_variation_temoin": false,
"type": { ... },
"essai": { ... },
"bordures": [ ... ],
"orientation_generale": { ... },
"point_depart": { ... },
"position_bloc_observation": { ... },
"randomisation": { ... },
"marge": { ... },
"implantation_temoins": { ... },
"facteur": { ... }
}
]
}
Received response:
Request failed with error:
Plan - Voir
requires authentication
Détails d'un plan d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/plan/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/plan/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/plan/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"nom": "Tempête du désert",
"temoins_exclus_localisation": "pas de témoins, pas de problèmes",
"nb_repetitions": 4,
"nb_modalites": 15,
"nb_lignes": 5,
"nb_colonnes": 3,
"depart_x": 1,
"depart_y": 1,
"parametresavances": false,
"est_variation_temoin": false,
"type": { ... },
"essai": { ... },
"bordures": [ ... ],
"orientation_generale": { ... },
"point_depart": { ... },
"position_bloc_observation": { ... },
"randomisation": { ... },
"marge": { ... },
"implantation_temoins": { ... },
"facteur": { ... }
}
}
Received response:
Request failed with error:
Plan - Ajouter
requires authentication
Ajoute un plan d'un essai
Example request:
curl -X POST \
"https://api.oss.coop/essai/1/plan" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"Barbarossa","temoins_exclus_localisation":"Monsieur X","nb_repetitions":12,"nb_modalites":42,"nb_lignes":5,"nb_colonnes":3,"depart_x":2,"depart_y":2,"parametresavances":true,"est_variation_temoin":true,"type_uid":"type1","orientation_generale_uid":"orientationgenerale1","point_depart_uid":"pointdepart1","position_bloc_observation_uid":"positionblocobservation1","randomisation_uid":"randomisation1","marge_uid":"marge1","implantation_temoins_uid":"implantationtemoins1","facteur_id":1,"bordures":[{"uid":"bordure1"},[]]}'
const url = new URL(
"https://api.oss.coop/essai/1/plan"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "Barbarossa",
"temoins_exclus_localisation": "Monsieur X",
"nb_repetitions": 12,
"nb_modalites": 42,
"nb_lignes": 5,
"nb_colonnes": 3,
"depart_x": 2,
"depart_y": 2,
"parametresavances": true,
"est_variation_temoin": true,
"type_uid": "type1",
"orientation_generale_uid": "orientationgenerale1",
"point_depart_uid": "pointdepart1",
"position_bloc_observation_uid": "positionblocobservation1",
"randomisation_uid": "randomisation1",
"marge_uid": "marge1",
"implantation_temoins_uid": "implantationtemoins1",
"facteur_id": 1,
"bordures": [
{
"uid": "bordure1"
},
[]
]
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai/1/plan',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'Barbarossa',
'temoins_exclus_localisation' => 'Monsieur X',
'nb_repetitions' => 12,
'nb_modalites' => 42,
'nb_lignes' => 5,
'nb_colonnes' => 3,
'depart_x' => 2,
'depart_y' => 2,
'parametresavances' => true,
'est_variation_temoin' => true,
'type_uid' => 'type1',
'orientation_generale_uid' => 'orientationgenerale1',
'point_depart_uid' => 'pointdepart1',
'position_bloc_observation_uid' => 'positionblocobservation1',
'randomisation_uid' => 'randomisation1',
'marge_uid' => 'marge1',
'implantation_temoins_uid' => 'implantationtemoins1',
'facteur_id' => 1,
'bordures' => [
[
'uid' => 'bordure1',
],
[],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "Barbarossa",
"temoins_exclus_localisation": "Monsieur X",
"nb_repetitions": 12,
"nb_modalites": 42,
"nb_lignes": 5,
"nb_colonnes": 3,
"depart_x": 2,
"depart_y": 2,
"parametresavances": true,
"est_variation_temoin": true,
"type": { ... },
"essai": { ... },
"bordures": [ ... ],
"orientation_generale": { ... },
"point_depart": { ... },
"position_bloc_observation": { ... },
"randomisation": { ... },
"marge": { ... },
"implantation_temoins": { ... },
"facteur": { ... }
}
}
Received response:
Request failed with error:
Plan - Modifier
requires authentication
Modifie un plan d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/plan/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"Barbarossa","temoins_exclus_localisation":"null","nb_repetitions":0,"nb_modalites":0,"nb_lignes":0,"nb_colonnes":0,"depart_x":0,"depart_y":0,"parametresavances":true,"est_variation_temoin":false,"type_uid":"type1","orientation_generale_uid":"null","point_depart_uid":"null","position_bloc_observation_uid":"null","randomisation_uid":"null","marge_uid":"null","implantation_temoins_uid":"null","facteur_id":0,"bordures":[{"uid":"bordure1"},{"uid":"bordure1"}]}'
const url = new URL(
"https://api.oss.coop/essai/1/plan/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "Barbarossa",
"temoins_exclus_localisation": "null",
"nb_repetitions": 0,
"nb_modalites": 0,
"nb_lignes": 0,
"nb_colonnes": 0,
"depart_x": 0,
"depart_y": 0,
"parametresavances": true,
"est_variation_temoin": false,
"type_uid": "type1",
"orientation_generale_uid": "null",
"point_depart_uid": "null",
"position_bloc_observation_uid": "null",
"randomisation_uid": "null",
"marge_uid": "null",
"implantation_temoins_uid": "null",
"facteur_id": 0,
"bordures": [
{
"uid": "bordure1"
},
{
"uid": "bordure1"
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/plan/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'Barbarossa',
'temoins_exclus_localisation' => 'null',
'nb_repetitions' => 0,
'nb_modalites' => 0,
'nb_lignes' => 0,
'nb_colonnes' => 0,
'depart_x' => 0,
'depart_y' => 0,
'parametresavances' => true,
'est_variation_temoin' => false,
'type_uid' => 'type1',
'orientation_generale_uid' => 'null',
'point_depart_uid' => 'null',
'position_bloc_observation_uid' => 'null',
'randomisation_uid' => 'null',
'marge_uid' => 'null',
'implantation_temoins_uid' => 'null',
'facteur_id' => 0,
'bordures' => [
[
'uid' => 'bordure1',
],
[
'uid' => 'bordure1',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"nom": "Barbarossa",
"temoins_exclus_localisation": null,
"nb_repetitions": null,
"nb_modalites": null,
"nb_lignes": null,
"nb_colonnes": null,
"depart_x": null,
"depart_y": null,
"parametresavances": null,
"est_variation_temoin": false,
"type": { ... },
"essai": { ... },
"bordures": [ ... ],
"orientation_generale": null,
"point_depart": null,
"position_bloc_observation": null,
"randomisation": null,
"marge": null,
"implantation_temoins": null,
"facteur": null
}
}
Received response:
Request failed with error:
Plan - Supprimer
requires authentication
Supprime un plan d'un essai
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/1/plan/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/plan/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/1/plan/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Plan - Générer
requires authentication
Générer les microparcelles à partir d'un plan d'un essai
Example request:
curl -X PATCH \
"https://api.oss.coop/essai/1/plan/2/generer" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/plan/2/generer"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/essai/1/plan/2/generer',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Lister
requires authentication
Liste des événements d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement?sort=nom.ASC%2Cid.DESC&page=14&limit=8" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "14",
"limit": "8",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '14',
'limit'=> '8',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Evénement 1",
"observations": "Un événement",
"date_previsionnelle": "2150-12-31 12:00:00+02",
"date_realisation": "2150-12-31 12:00:00+02",
"type": { ... },
"passage": { ... },
"stade": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Voir
requires authentication
Détails d'un événement d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": "Evénement 1",
"observations": "Un événement",
"date_previsionnelle": "2150-12-31 12:00:00+02",
"date_realisation": "2150-12-31 12:00:00+02",
"type": { ... },
"passage": { ... },
"stade": { ... }
}
}
Received response:
Request failed with error:
Evenement - Ajouter
requires authentication
Ajoute un événement d'un essai
Example request:
curl -X POST \
"https://api.oss.coop/essai/1/evenement" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Ev\u00e9nement 2","observations":"Un autre \u00e9v\u00e9nement","date_previsionnelle":"2150-12-31 12:00:00+02","date_realisation":"2150-12-31 12:00:00+02","type_uid":"type1","passage_id":1,"stade_uid":"1"}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Ev\u00e9nement 2",
"observations": "Un autre \u00e9v\u00e9nement",
"date_previsionnelle": "2150-12-31 12:00:00+02",
"date_realisation": "2150-12-31 12:00:00+02",
"type_uid": "type1",
"passage_id": 1,
"stade_uid": "1"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai/1/evenement',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Evénement 2',
'observations' => 'Un autre événement',
'date_previsionnelle' => '2150-12-31 12:00:00+02',
'date_realisation' => '2150-12-31 12:00:00+02',
'type_uid' => 'type1',
'passage_id' => 1,
'stade_uid' => '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Evénement 2",
"observations": "Un autre événement",
"date_previsionnelle": "2150-12-31 12:00:00+02",
"date_realisation": "2150-12-31 12:00:00+02",
"type": { ... },
"passage": { ... },
"stade": { ... }
}
}
Received response:
Request failed with error:
Evenement - Modifier
requires authentication
Modifie un événement d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"null","observations":"null","date_previsionnelle":"null","date_realisation":"null","type_uid":"type1","passage_id":0,"stade_uid":"null"}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "null",
"observations": "null",
"date_previsionnelle": "null",
"date_realisation": "null",
"type_uid": "type1",
"passage_id": 0,
"stade_uid": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'null',
'observations' => 'null',
'date_previsionnelle' => 'null',
'date_realisation' => 'null',
'type_uid' => 'type1',
'passage_id' => 0,
'stade_uid' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": null,
"observations": null,
"date_previsionnelle": null,
"date_realisation": null,
"type": { ... },
"passage": null,
"stade": null
}
}
Received response:
Request failed with error:
Evenement - Supprimer
requires authentication
Supprime un événement d'un essai
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/1/evenement/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/1/evenement/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Fiche - Conditions de traitement - Lister
requires authentication
Liste des fiches de conditions de traitement d'un événement de type traitement d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/conditions_traitement?sort=nom.ASC%2Cid.DESC&page=11&limit=13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/conditions_traitement"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "11",
"limit": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/conditions_traitement',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '11',
'limit'=> '13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"reference": "Traitement1",
"autre": "Une sorte de commentaire",
"controlepulve_commentaires": "Un commentaire sur le controle de pulverisateur",
"heure_debut": "09:00",
"heure_fin": "11:00",
"etat_vegetatif_culture": "Dodo",
"temperature_debut": "0,0",
"temperature_fin": "42",
"hygrometrie_debut": "0,0",
"hygrometrie_fin": "42",
"vitessevent_min": "0,0",
"vitessevent_max": "42",
"nebulosite_mesure": "42",
"pluie_24h": false,
"pluie_quantite": "42",
"pressionbuses_quantite": "42",
"observations_cible": "Target located",
"observations_traitement": "Pchit pchit",
"validation_trigramme": "AZERTY123",
"validation_date": "2150-12-31 12:00:00+02",
"materielutilise": "Mon ordi",
"typebuses": "on dit triple, pas type",
"controle_pulverisateur": { ... },
"vitesse_vent": { ... },
"etat_surface_sol": { ... },
"humidite_sol": { ... },
"residus_recolte": { ... },
"ensoleillement": { ... },
"nebulosite": { ... },
"rosee": { ... },
"stade": { ... },
"modalites": null
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Conditions de traitement - Voir
requires authentication
Détails d'une fiche de conditions de traitement d'un événement de type traitement d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/conditions_traitement/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/conditions_traitement/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/conditions_traitement/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"reference": "Traitement1",
"autre": "Une sorte de commentaire",
"controlepulve_commentaires": "Un commentaire sur le controle de pulverisateur",
"heure_debut": "09:00",
"heure_fin": "11:00",
"etat_vegetatif_culture": "Dodo",
"temperature_debut": "0,0",
"temperature_fin": "42",
"hygrometrie_debut": "0,0",
"hygrometrie_fin": "42",
"vitessevent_min": "0,0",
"vitessevent_max": "42",
"nebulosite_mesure": "42",
"pluie_24h": false,
"pluie_quantite": "42",
"pressionbuses_quantite": "42",
"observations_cible": "Target located",
"observations_traitement": "Pchit pchit",
"validation_trigramme": "AZERTY123",
"validation_date": "2150-12-31 12:00:00+02",
"materielutilise": "Mon ordi",
"typebuses": "on dit triple, pas type",
"controle_pulverisateur": { ... },
"vitesse_vent": { ... },
"etat_surface_sol": { ... },
"humidite_sol": { ... },
"residus_recolte": { ... },
"ensoleillement": { ... },
"nebulosite": { ... },
"rosee": { ... },
"stade": { ... },
"modalites": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Conditions de traitement - Modifier
requires authentication
Modifie une fiche de conditions de traitement d'un événement de type traitement d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/conditions_traitement/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"reference":"null","autre":"null","controlepulve_commentaires":"null","heure_debut":"null","heure_fin":"null","etat_vegetatif_culture":"null","observations_cible":"null","observations_traitement":"null","validation_trigramme":"null","materielutilise":"null","typebuses":"null","temperature_debut":"null","temperature_fin":"null","hygrometrie_debut":"null","hygrometrie_fin":"null","vitessevent_min":"null","vitessevent_max":"null","nebulosite_mesure":"null","pluie_quantite":"null","pressionbuses_quantite":"null","pluie_24h":true,"validation_date":"null","controle_pulverisateur_id":0,"vitesse_vent_id":0,"etat_surface_sol_id":0,"humidite_sol_id":0,"residus_recolte_id":0,"ensoleillement_id":0,"nebulosite_id":0,"rosee_id":0,"stade_uid":"null.","modalites":[{"id":"1"},{"id":"1"}]}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/conditions_traitement/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reference": "null",
"autre": "null",
"controlepulve_commentaires": "null",
"heure_debut": "null",
"heure_fin": "null",
"etat_vegetatif_culture": "null",
"observations_cible": "null",
"observations_traitement": "null",
"validation_trigramme": "null",
"materielutilise": "null",
"typebuses": "null",
"temperature_debut": "null",
"temperature_fin": "null",
"hygrometrie_debut": "null",
"hygrometrie_fin": "null",
"vitessevent_min": "null",
"vitessevent_max": "null",
"nebulosite_mesure": "null",
"pluie_quantite": "null",
"pressionbuses_quantite": "null",
"pluie_24h": true,
"validation_date": "null",
"controle_pulverisateur_id": 0,
"vitesse_vent_id": 0,
"etat_surface_sol_id": 0,
"humidite_sol_id": 0,
"residus_recolte_id": 0,
"ensoleillement_id": 0,
"nebulosite_id": 0,
"rosee_id": 0,
"stade_uid": "null.",
"modalites": [
{
"id": "1"
},
{
"id": "1"
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/conditions_traitement/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'reference' => 'null',
'autre' => 'null',
'controlepulve_commentaires' => 'null',
'heure_debut' => 'null',
'heure_fin' => 'null',
'etat_vegetatif_culture' => 'null',
'observations_cible' => 'null',
'observations_traitement' => 'null',
'validation_trigramme' => 'null',
'materielutilise' => 'null',
'typebuses' => 'null',
'temperature_debut' => 'null',
'temperature_fin' => 'null',
'hygrometrie_debut' => 'null',
'hygrometrie_fin' => 'null',
'vitessevent_min' => 'null',
'vitessevent_max' => 'null',
'nebulosite_mesure' => 'null',
'pluie_quantite' => 'null',
'pressionbuses_quantite' => 'null',
'pluie_24h' => true,
'validation_date' => 'null',
'controle_pulverisateur_id' => 0,
'vitesse_vent_id' => 0,
'etat_surface_sol_id' => 0,
'humidite_sol_id' => 0,
'residus_recolte_id' => 0,
'ensoleillement_id' => 0,
'nebulosite_id' => 0,
'rosee_id' => 0,
'stade_uid' => 'null.',
'modalites' => [
[
'id' => '1',
],
[
'id' => '1',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"reference": null,
"autre": null,
"controlepulve_commentaires": null,
"heure_debut": null,
"heure_fin": null,
"etat_vegetatif_culture": null,
"temperature_debut": null,
"temperature_fin": null,
"hygrometrie_debut": null,
"hygrometrie_fin": null,
"vitessevent_min": null,
"vitessevent_max": null,
"nebulosite_mesure": null,
"pluie_24h": null,
"pluie_quantite": null,
"pressionbuses_quantite": null,
"observations_cible": null,
"observations_traitement": null,
"validation_trigramme": null,
"validation_date": null,
"materielutilise": null,
"typebuses": null,
"controle_pulverisateur": null,
"vitesse_vent": null,
"etat_surface_sol": null,
"humidite_sol": null,
"residus_recolte": null,
"ensoleillement": null,
"nebulosite": null,
"rosee": null,
"stade": null,
"modalites": [ ... ]
}
}
Received response:
Request failed with error:
Evenement - Fiche - Contamination - Lister
requires authentication
Liste des fiches contamination d'un événement de type contamination d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/contamination?sort=nom.ASC%2Cid.DESC&page=17&limit=19" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/contamination"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "17",
"limit": "19",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/contamination',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '17',
'limit'=> '19',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"produitcontaminant": "Un produit"
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Contamination - Voir
requires authentication
Détails d'une fiche contamination d'un événement de type contamination d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/contamination/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/contamination/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/contamination/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"produitcontaminant": "Un produit"
}
}
Received response:
Request failed with error:
Evenement - Fiche - Contamination - Modifier
requires authentication
Modifie une fiche contamination d'un événement de type contamination d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/contamination/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"produitcontaminant":0}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/contamination/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"produitcontaminant": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/contamination/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'produitcontaminant' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"produitcontaminant": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Destruction - Lister
requires authentication
Liste des fiches de destruction d'un événement de type traitement d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/destruction?sort=nom.ASC%2Cid.DESC&page=9&limit=17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "9",
"limit": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/destruction',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '9',
'limit'=> '17',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"trigramme_validation": "AZERTY123",
"date_validation": "2150-12-31 12:00:00+02",
"moment_destruction": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Destruction - Voir
requires authentication
Détails d'une fiche de destruction d'un événement de type traitement d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/destruction/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/destruction/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"trigramme_validation": "AZERTY123",
"date_validation": "2150-12-31 12:00:00+02",
"moment_destruction": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Destruction - Modifier
requires authentication
Modifie une fiche de destruction d'un événement de type traitement d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"trigramme_validation":"null","date_validation":"null","moment_destruction_id":"null."}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"trigramme_validation": "null",
"date_validation": "null",
"moment_destruction_id": "null."
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/destruction/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'trigramme_validation' => 'null',
'date_validation' => 'null',
'moment_destruction_id' => 'null.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"trigramme_validation": null,
"date_validation": null,
"moment_destruction": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Destruction - Preuve - Lister
requires authentication
Liste des preuves d'une fiche de destruction d'un événement de type traitement d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve?sort=nom.ASC%2Cid.DESC&page=7&limit=2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "7",
"limit": "2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '7',
'limit'=> '2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"media": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Destruction - Preuve - Voir
requires authentication
Détails d'une preuve d'une fiche de destruction d'un événement de type traitement d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"media": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Destruction - Preuve - Ajouter
requires authentication
Ajoute une preuve d'une fiche de destruction d'un événement de type traitement d'un essai
Example request:
curl -X POST \
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"media_id":0}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"media_id": 0
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'media_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"media": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Destruction - Preuve - Modifier
requires authentication
Modifie une preuve d'une fiche de destruction d'un événement de type traitement d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"media_id":0}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"media_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'media_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"media": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Destruction - Preuve - Supprimer
requires authentication
Supprime une preuve d'une fiche de destruction d'un événement de type traitement d'un essai
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/1/evenement/1/fiche/destruction/preuve/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Fiche - Destruction - Pesée - Modalité - Lister
requires authentication
Liste des modalités pesées de fiches destruction d'un événement de type destruction d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/destruction/modalite?sort=nom.ASC%2Cid.DESC&page=17&limit=12" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/modalite"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "17",
"limit": "12",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/destruction/modalite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '17',
'limit'=> '12',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"mecanique_moyen": "Avion",
"mecanique_date": "2150-12-31 12:00:00+02",
"chimique_produit": "Le truc qui fait de la mousse",
"chimique_dose": "12",
"chimique_date": "2150-12-31 12:00:00+02",
"quantite": "12",
"modalite": { ... },
"unite": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Destruction - Pesée - Modalité - Voir
requires authentication
Détails d'une modalité pesée d'une fiche destruction d'un événement de type destruction d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/destruction/modalite/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/modalite/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/destruction/modalite/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"mecanique_moyen": "Avion",
"mecanique_date": "2150-12-31 12:00:00+02",
"chimique_produit": "Le truc qui fait de la mousse",
"chimique_dose": "12",
"chimique_date": "2150-12-31 12:00:00+02",
"quantite": "12",
"modalite": { ... },
"unite": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Fertilisation - Pesée - Modalité produit - Modifier
requires authentication
Modifie un produit de modalité pesée d'une fiche fertilisation d'un événement de ferti semis d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/modalite/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"mecanique_moyen":"null","mecanique_date":"null","chimique_produit":"null","chimique_dose":"null","chimique_date":"null","quantite":"null","unite_uid":"null"}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/destruction/modalite/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"mecanique_moyen": "null",
"mecanique_date": "null",
"chimique_produit": "null",
"chimique_dose": "null",
"chimique_date": "null",
"quantite": "null",
"unite_uid": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/destruction/modalite/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'mecanique_moyen' => 'null',
'mecanique_date' => 'null',
'chimique_produit' => 'null',
'chimique_dose' => 'null',
'chimique_date' => 'null',
'quantite' => 'null',
'unite_uid' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"mecanique_moyen": null,
"mecanique_date": null,
"chimique_produit": null,
"chimique_dose": null,
"chimique_date": null,
"quantite": null,
"modalite": { ... },
"unite": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Fertilisation - Pesée - Lister
requires authentication
Liste des pesées de fiches fertilisation d'un événement de type ferti d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee?sort=nom.ASC%2Cid.DESC&page=9&limit=4" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "9",
"limit": "4",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '9',
'limit'=> '4',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"marge_securite_pesee": "0.1",
"validation_trigramme": "AZERTY123",
"date_validation": "2150-12-31 12:00:00+02",
"unite": { ... },
"unite_dose_epandue": { ... },
"composant": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Fertilisation - Pesée - Voir
requires authentication
Détails d'une pesée d'une fiche fertilisation d'un événement de type ferti d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"marge_securite_pesee": "0.1",
"validation_trigramme": "AZERTY123",
"date_validation": "2150-12-31 12:00:00+02",
"unite": { ... },
"unite_dose_epandue": { ... },
"composant": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Fertilisation - Pesée - Modifier
requires authentication
Modifie une pesée d'une fiche fertilisation d'un événement de type ferti d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"marge_securite_pesee":"null","validation_trigramme":"null","date_validation":"null","unite_uid":0,"composant_uid":0,"unite_dose_epandue_id":"null."}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"marge_securite_pesee": "null",
"validation_trigramme": "null",
"date_validation": "null",
"unite_uid": 0,
"composant_uid": 0,
"unite_dose_epandue_id": "null."
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'marge_securite_pesee' => 'null',
'validation_trigramme' => 'null',
'date_validation' => 'null',
'unite_uid' => 0,
'composant_uid' => 0,
'unite_dose_epandue_id' => 'null.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"marge_securite_pesee": null,
"validation_trigramme": null,
"date_validation": null,
"unite": null,
"unite_dose_epandue": null,
"composant": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Fertilisation - Pesée - Modalité produit - Lister
requires authentication
Liste des produits de modalités pesées de fiches fertilisation d'un événement de type ferti d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/modalite?sort=nom.ASC%2Cid.DESC&page=9&limit=19" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/modalite"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "9",
"limit": "19",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/modalite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '9',
'limit'=> '19',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"pesee_reelle": "12",
"densite": "12",
"dose_epandue": "12",
"quantite_calculee_par_microparcelle": "12",
"trigramme": "AZERTY123",
"observations": "Flemme de calculer, alors surface et quantité sont à null",
"date": "2150-12-31 12:00:00+02",
"surface_application": null,
"quantite_microparcelle": null,
"modalite": { ... },
"produit": { ... },
"composant": { ... },
"unite": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Fertilisation - Pesée - Modalité produit - Voir
requires authentication
Détails d'un produit de modalité pesée d'une fiche fertilisation d'un événement de type ferti d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/modalite/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/modalite/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/modalite/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"pesee_reelle": "12",
"densite": "12",
"dose_epandue": "12",
"quantite_calculee_par_microparcelle": "12",
"trigramme": "AZERTY123",
"observations": "Flemme de calculer, alors surface et quantité sont à null",
"date": "2150-12-31 12:00:00+02",
"surface_application": null,
"quantite_microparcelle": null,
"modalite": { ... },
"produit": { ... },
"composant": { ... },
"unite": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Fertilisation - Pesée - Modalité produit - Modifier
requires authentication
Modifie un produit de modalité pesée d'une fiche fertilisation d'un événement de ferti semis d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/modalite/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"pesee_reelle":"null","densite":"null","dose_epandue":"null","quantite_calculee_par_microparcelle":"null","trigramme":"null","observations":"null","date":"null","unite_uid":0,"composant_uid":0}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/modalite/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"pesee_reelle": "null",
"densite": "null",
"dose_epandue": "null",
"quantite_calculee_par_microparcelle": "null",
"trigramme": "null",
"observations": "null",
"date": "null",
"unite_uid": 0,
"composant_uid": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/fertilisation/pesee/modalite/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'pesee_reelle' => 'null',
'densite' => 'null',
'dose_epandue' => 'null',
'quantite_calculee_par_microparcelle' => 'null',
'trigramme' => 'null',
'observations' => 'null',
'date' => 'null',
'unite_uid' => 0,
'composant_uid' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"pesee_reelle": null,
"densite": null,
"dose_epandue": null,
"quantite_calculee_par_microparcelle": null,
"trigramme": null,
"observations": null,
"date": null,
"surface_application": null,
"quantite_microparcelle": null,
"modalite": { ... },
"produit": { ... },
"composant": null,
"unite": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Phytosanitaire - Pesée - Lister
requires authentication
Liste des pesées de fiches phytosanitaire d'un événement de type phyto d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee?sort=nom.ASC%2Cid.DESC&page=14&limit=9" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "14",
"limit": "9",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '14',
'limit'=> '9',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"marge_securite_calcul": "0.1",
"cadence_traitement": "0.1",
"tolerance_ecart_pesee": "0.1",
"pulverisation": "0.1",
"volume_bouillie_surface": "0.1",
"validation_trigramme": "AZERTY123",
"date_validation": "2150-12-31 12:00:00+02",
"unite": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Phytosanitaire - Pesée - Voir
requires authentication
Détails d'une pesée d'une fiche phytosanitaire d'un événement de type phyto d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"marge_securite_calcul": "0.1",
"cadence_traitement": "0.1",
"tolerance_ecart_pesee": "0.1",
"pulverisation": "0.1",
"volume_bouillie_surface": "0.1",
"validation_trigramme": "AZERTY123",
"date_validation": "2150-12-31 12:00:00+02",
"unite": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Phytosanitaire - Pesée - Modifier
requires authentication
Modifie une pesée d'une fiche phytosanitaire d'un événement de type phyto d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"marge_securite_calcul":"null","cadence_traitement":"null","tolerance_ecart_pesee":"null","pulverisation":"null","volume_bouillie_surface":"null","validation_trigramme":"null","date_validation":"null","unite_uid":0}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"marge_securite_calcul": "null",
"cadence_traitement": "null",
"tolerance_ecart_pesee": "null",
"pulverisation": "null",
"volume_bouillie_surface": "null",
"validation_trigramme": "null",
"date_validation": "null",
"unite_uid": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'marge_securite_calcul' => 'null',
'cadence_traitement' => 'null',
'tolerance_ecart_pesee' => 'null',
'pulverisation' => 'null',
'volume_bouillie_surface' => 'null',
'validation_trigramme' => 'null',
'date_validation' => 'null',
'unite_uid' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"marge_securite_calcul": null,
"cadence_traitement": null,
"tolerance_ecart_pesee": null,
"pulverisation": null,
"volume_bouillie_surface": null,
"validation_trigramme": null,
"date_validation": null,
"unite": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Phytosanitaire - Pesée - Modalité produit - Lister
requires authentication
Liste des produits de modalités pesées de fiches phytosanitaire d'un événement de type phyto d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/modalite?sort=nom.ASC%2Cid.DESC&page=20&limit=3" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/modalite"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "20",
"limit": "3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/modalite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '20',
'limit'=> '3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"pesee_reelle": "12",
"densite": "12",
"trigramme": "AZERTY123",
"observations": "Flemme de calculer, alors surface et quantité sont à null",
"date": "2150-12-31 12:00:00+02",
"surface_application": null,
"surface": null,
"quantite": null,
"pesee_min": null,
"pesee_max": null,
"modalite": { ... },
"produit": { ... },
"unite": null
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Phytosanitaire - Pesée - Modalité produit - Voir
requires authentication
Détails d'un produit de modalité pesée d'une fiche phytosanitaire d'un événement de type phyto d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/modalite/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/modalite/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/modalite/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"pesee_reelle": "12",
"densite": "12",
"trigramme": "AZERTY123",
"observations": "Flemme de calculer, alors surface et quantité sont à null",
"date": "2150-12-31 12:00:00+02",
"surface_application": null,
"surface": null,
"quantite": null,
"pesee_min": null,
"pesee_max": null,
"modalite": { ... },
"produit": { ... },
"unite": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Phytosanitaire - Pesée - Modalité produit - Modifier
requires authentication
Modifie un produit de modalité pesée d'une fiche phytosanitaire d'un événement de type phyto d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/modalite/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"pesee_reelle":"null","densite":"null","trigramme":"null","observations":"null","date":"null"}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/modalite/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"pesee_reelle": "null",
"densite": "null",
"trigramme": "null",
"observations": "null",
"date": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/phytosanitaire/pesee/modalite/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'pesee_reelle' => 'null',
'densite' => 'null',
'trigramme' => 'null',
'observations' => 'null',
'date' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"pesee_reelle": null,
"densite": null",
"trigramme": null,
"observations": null,
"date": null,
"surface_application": null,
"surface": null,
"quantite": null,
"pesee_min": null,
"pesee_max": null,
"modalite": { ... },
"produit": { ... },
"unite": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Prélèvement - Lister
requires authentication
Liste des fiches de prélèvement d'un événement de type traitement d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/prelevement?sort=nom.ASC%2Cid.DESC&page=1&limit=5" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/prelevement"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "1",
"limit": "5",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/prelevement',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '1',
'limit'=> '5',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"organe": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Prélèvement - Voir
requires authentication
Détails d'une fiche de prélèvement d'un événement de type traitement d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/prelevement/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/prelevement/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/prelevement/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"organe": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Prélèvement - Modifier
requires authentication
Modifie une fiche de prélèvement d'un événement de type traitement d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/prelevement/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"organe_id":"null."}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/prelevement/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"organe_id": "null."
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/prelevement/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'organe_id' => 'null.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"organe": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Récolte - Lister
requires authentication
Liste des fiches de récolte d'un événement de type traitement d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/recolte?sort=nom.ASC%2Cid.DESC&page=5&limit=5" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/recolte"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "5",
"limit": "5",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/recolte',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '5',
'limit'=> '5',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"commentaires": "récolte blablabla",
"materielrecolte1": "Petites mains",
"materielrecolte1": null,
"conditions_recolte": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Récolte - Voir
requires authentication
Détails d'une fiche de récolte d'un événement de type traitement d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/recolte/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/recolte/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/recolte/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"commentaires": "récolte blablabla",
"materielrecolte1": "Petites mains",
"materielrecolte1": null,
"conditions_recolte": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Conditions de traitement - Modifier
requires authentication
Modifie une fiche de conditions de traitement d'un événement de type traitement d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/recolte/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"commentaires":"null","materielrecolte1":"null","conditions_recolte_id":"null."}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/recolte/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"commentaires": "null",
"materielrecolte1": "null",
"conditions_recolte_id": "null."
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/recolte/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'commentaires' => 'null',
'materielrecolte1' => 'null',
'conditions_recolte_id' => 'null.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"commentaires": null,
"materielrecolte1": null,
"materielrecolte1": null,
"conditions_recolte": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Semis - Lister
requires authentication
Liste des fiches semis d'un événement de type semis d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/semis?sort=nom.ASC%2Cid.DESC&page=18&limit=14" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/semis"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "18",
"limit": "14",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/semis',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '18',
'limit'=> '14',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"produit": { ... },
"media": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Semis - Voir
requires authentication
Détails d'une fiche semis d'un événement de type semis d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/semis/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/semis/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/semis/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"produit": { ... },
"media": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Semis - Modifier
requires authentication
Modifie une fiche semis d'un événement de type semis d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/semis/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"media_id":0}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/semis/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"media_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/semis/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'media_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"produit": { ... },
"media": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Semis - Pesée - Lister
requires authentication
Liste des pesées de fiches semis d'un événement de type semis d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee?sort=nom.ASC%2Cid.DESC&page=16&limit=3" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "16",
"limit": "3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '16',
'limit'=> '3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"marge_securite_pesee": "0.1",
"validation_trigramme": "AZERTY123",
"date_validation": "2150-12-31 12:00:00+02",
"unite": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Semis - Pesée - Voir
requires authentication
Détails d'une pesée d'une fiche semis d'un événement de type semis d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"marge_securite_pesee": "0.1",
"validation_trigramme": "AZERTY123",
"date_validation": "2150-12-31 12:00:00+02",
"unite": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Semis - Pesée - Modifier
requires authentication
Modifie une pesée d'une fiche semis d'un événement de type semis d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"marge_securite_pesee":"null","validation_trigramme":"null","date_validation":"null","unite_uid":0}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"marge_securite_pesee": "null",
"validation_trigramme": "null",
"date_validation": "null",
"unite_uid": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'marge_securite_pesee' => 'null',
'validation_trigramme' => 'null',
'date_validation' => 'null',
'unite_uid' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"marge_securite_pesee": null,
"validation_trigramme": null,
"date_validation": null,
"unite": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Semis - Pesée - Modalité semence - Lister
requires authentication
Liste des semences de modalités pesées de fiches semis d'un événement de type semis d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/modalite?sort=nom.ASC%2Cid.DESC&page=8&limit=11" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/modalite"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "8",
"limit": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/modalite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '8',
'limit'=> '11',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"pmg": "42.23",
"faculte_germinative": "1",
"pesee_reelle": "12",
"trigramme": "AZERTY123",
"observations": "Flemme de calculer, alors surface et quantité sont à null",
"date": "2150-12-31 12:00:00+02",
"surface_implantation": null,
"quantite_microparcelle": null,
"modalite": { ... },
"produit": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Semis - Pesée - Modalité semence - Voir
requires authentication
Détails d'une semence de modalité pesée d'une fiche semis d'un événement de type semis d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/modalite/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/modalite/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/modalite/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"pmg": "42.23",
"faculte_germinative": "1",
"pesee_reelle": "12",
"trigramme": "AZERTY123",
"observations": "Flemme de calculer, alors surface et quantité sont à null",
"date": "2150-12-31 12:00:00+02",
"surface_implantation": null,
"quantite_microparcelle": null,
"modalite": { ... },
"produit": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Semis - Pesée - Modalité semence - Modifier
requires authentication
Modifie une semence de modalité pesée d'une fiche semis d'un événement de type semis d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/modalite/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"pmg":"null","faculte_germinative":"null","pesee_reelle":"null","trigramme":"null","observations":"null","date":"null"}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/modalite/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"pmg": "null",
"faculte_germinative": "null",
"pesee_reelle": "null",
"trigramme": "null",
"observations": "null",
"date": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/semis/pesee/modalite/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'pmg' => 'null',
'faculte_germinative' => 'null',
'pesee_reelle' => 'null',
'trigramme' => 'null',
'observations' => 'null',
'date' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"pmg": null,
"faculte_germinative": null,
"pesee_reelle": null,
"trigramme": null,
"observations": null,
"date": null,
"surface_implantation": null,
"quantite_microparcelle": null,
"modalite": { ... },
"produit": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Volume non épandus - Lister
requires authentication
Liste des fiches de volume non épandus d'un événement de type phto d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus?sort=nom.ASC%2Cid.DESC&page=15&limit=17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "15",
"limit": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '15',
'limit'=> '17',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"calcul_volume_applique": "0.1",
"volume_ha": "0.1",
"ecart_tolere": "0.1",
"validation_trigramme": "AZERTY123",
"date_validation": "2150-12-31 12:00:00+02"
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Volume non épandus - Voir
requires authentication
Détails d'une fiche de volume non épandus d'un événement de type phyto d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"calcul_volume_applique": "0.1",
"volume_ha": "0.1",
"ecart_tolere": "0.1",
"validation_trigramme": "AZERTY123",
"date_validation": "2150-12-31 12:00:00+02"
}
}
Received response:
Request failed with error:
Evenement - Fiche - Volume non épandus - Modifier
requires authentication
Modifie d'une fiche de volume non épandus d'un événement de type phyto d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"calcul_volume_applique":"null","volume_ha":"null","ecart_tolere":"null","validation_trigramme":"null","date_validation":"null"}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"calcul_volume_applique": "null",
"volume_ha": "null",
"ecart_tolere": "null",
"validation_trigramme": "null",
"date_validation": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'calcul_volume_applique' => 'null',
'volume_ha' => 'null',
'ecart_tolere' => 'null',
'validation_trigramme' => 'null',
'date_validation' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"calcul_volume_applique": null,
"volume_ha": null,
"ecart_tolere": null,
"validation_trigramme": null,
"date_validation": null
}
}
Received response:
Request failed with error:
Evenement - Fiche - Volume non épandus - Modalite - Lister
requires authentication
Liste des modalités de fiche volume non épandus d'un événement de type phto d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/modalite?sort=nom.ASC%2Cid.DESC&page=3&limit=2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/modalite"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "3",
"limit": "2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/modalite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '3',
'limit'=> '2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"volume_restant": "0.1",
"volume_applique": "0.1",
"modalite": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Fiche - Volume non épandus - Modalite - Voir
requires authentication
Détails d'une modalité de fiche volume non épandus d'un événement de type phto d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/modalite/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/modalite/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/modalite/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"volume_restant": "0.1",
"volume_applique": "0.1",
"modalite": { ... }
}
}
Received response:
Request failed with error:
Evenement - Fiche - Volume non épandus - Modalité - Modifier
requires authentication
Modifie une modalité de fiche volume non épandus d'un événement de type phto d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/modalite/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"volume_restant":"null","volume_applique":"null"}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/modalite/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"volume_restant": "null",
"volume_applique": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/volume_non_epandus/modalite/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'volume_restant' => 'null',
'volume_applique' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"volume_restant": null,
"volume_applique": null,
"modalite": { ... }
}
}
Received response:
Request failed with error:
Evenement - Notation - Lister
requires authentication
Liste des notations d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation?sort=nom.ASC%2Cid.DESC&page=1&limit=8" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "1",
"limit": "8",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '1',
'limit'=> '8',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"trigramme_validation": "AZERTY123",
"date_validation": "2150-12-31 12:00:00+02",
"chemin_personnalise": "droite,gauche,gauche,...",
"surface_comptage": "15.2",
"nb_grains_comptage_elementaire": 20,
"aveugle": false,
"coin_depart": { ... },
"saisie_objet": { ... },
"saisie_ordre": { ... },
"saisie_ordre_global": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Notation - Voir
requires authentication
Détails d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"trigramme_validation": "AZERTY123",
"date_validation": "2150-12-31 12:00:00+02",
"chemin_personnalise": "droite,gauche,gauche,...",
"surface_comptage": "15.2",
"nb_grains_comptage_elementaire": 20,
"aveugle": false,
"coin_depart": { ... },
"saisie_objet": { ... },
"saisie_ordre": { ... },
"saisie_ordre_global": { ... }
}
}
Received response:
Request failed with error:
Evenement - Notation - Ajouter
requires authentication
Ajoute une notation à un événement
Example request:
curl -X POST \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"trigramme_validation":"AZERTY12345","chemin_personnalise":"gauche,droite,gauche,...","surface_comptage":"12.5","nb_grains_comptage_elementaire":42,"aveugle":true,"date_validation":"null","coin_depart_uid":"cd1","saisie_objet_uid":"so1","saisie_ordre_uid":"so1","saisie_ordre_global_uid":"sog1"}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"trigramme_validation": "AZERTY12345",
"chemin_personnalise": "gauche,droite,gauche,...",
"surface_comptage": "12.5",
"nb_grains_comptage_elementaire": 42,
"aveugle": true,
"date_validation": "null",
"coin_depart_uid": "cd1",
"saisie_objet_uid": "so1",
"saisie_ordre_uid": "so1",
"saisie_ordre_global_uid": "sog1"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'trigramme_validation' => 'AZERTY12345',
'chemin_personnalise' => 'gauche,droite,gauche,...',
'surface_comptage' => '12.5',
'nb_grains_comptage_elementaire' => 42,
'aveugle' => true,
'date_validation' => 'null',
'coin_depart_uid' => 'cd1',
'saisie_objet_uid' => 'so1',
'saisie_ordre_uid' => 'so1',
'saisie_ordre_global_uid' => 'sog1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"trigramme_validation": "AZERTY12345",
"date_validation": null,
"chemin_personnalise": "gauche,droite,gauche,...",
"surface_comptage": "12.5",
"nb_grains_comptage_elementaire": 42,
"aveugle": true,
"coin_depart": { ... },
"saisie_objet": { ... },
"saisie_ordre": { ... },
"saisie_ordre_global": { ... }
}
}
Received response:
Request failed with error:
Evenement - Notation - Modifier
requires authentication
Modifie une notation d'un événement
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"trigramme_validation":"null","chemin_personnalise":"null","surface_comptage":"null","nb_grains_comptage_elementaire":0,"aveugle":true,"date_validation":"null","coin_depart_uid":"null","saisie_objet_uid":"so1","saisie_ordre_uid":"null","saisie_ordre_global_uid":"null"}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"trigramme_validation": "null",
"chemin_personnalise": "null",
"surface_comptage": "null",
"nb_grains_comptage_elementaire": 0,
"aveugle": true,
"date_validation": "null",
"coin_depart_uid": "null",
"saisie_objet_uid": "so1",
"saisie_ordre_uid": "null",
"saisie_ordre_global_uid": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'trigramme_validation' => 'null',
'chemin_personnalise' => 'null',
'surface_comptage' => 'null',
'nb_grains_comptage_elementaire' => 0,
'aveugle' => true,
'date_validation' => 'null',
'coin_depart_uid' => 'null',
'saisie_objet_uid' => 'so1',
'saisie_ordre_uid' => 'null',
'saisie_ordre_global_uid' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"trigramme_validation": null,
"date_validation": null,
"chemin_personnalise": null,
"surface_comptage": null,
"nb_grains_comptage_elementaire": null,
"aveugle": null,
"coin_depart": null,
"saisie_objet": { ... },
"saisie_ordre": null,
"saisie_ordre_global": null
}
}
Received response:
Request failed with error:
Evenement - Notation - Fusion
requires authentication
Fusione une notation d'un événement avec une autre
Example request:
curl -X PATCH \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/2/fusion/3" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/2/fusion/3"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/2/fusion/3',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 4,
"trigramme_validation": null,
"date_validation": null,
"chemin_personnalise": null,
"surface_comptage": null,
"nb_grains_comptage_elementaire": null,
"aveugle": null,
"coin_depart": null,
"saisie_objet": { ... },
"saisie_ordre": null,
"saisie_ordre_global": null
}
}
Received response:
Request failed with error:
Evenement - Notation - Validation
requires authentication
Revalide une notation d'un événement
Example request:
curl -X PATCH \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/2/validation" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/2/validation"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/2/validation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 4,
"trigramme_validation": null,
"date_validation": null,
"chemin_personnalise": null,
"surface_comptage": null,
"nb_grains_comptage_elementaire": null,
"aveugle": null,
"coin_depart": null,
"saisie_objet": { ... },
"saisie_ordre": null,
"saisie_ordre_global": null
}
}
Received response:
Request failed with error:
Evenement - Notation - Supprimer
requires authentication
Supprime une notation d'un événement
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Notation - Trames
requires authentication
Trames d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/trames" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/trames"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/trames',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"labo": [ {
"microparcelle": { modalite: {} ... },
"groupe": [ "ORGANE" | "ECHANTILLON" ],
"variables_etudiees": [ {
"valeurs": [] | NULL (pour les selects),
"organes": [ {
"nbr_echantillons": n,
"note": {
"valeur": [ JSON (si grp / organe ou grp / echantillon) | string (si non organe) | NULL (si premier passage) ]
}
} ],
"echantillon": n | NULL
"note": { "valeur": "string" | NULL }
} ]
} ]
}
}
Received response:
Request failed with error:
Evenement - Notation - Données
requires authentication
Données d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/donnees" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/donnees"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/donnees',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [ {
"valeur": 12,
"modalite": {},
"organe": null | {},
"echantillon": null | int
} ]
}
Received response:
Request failed with error:
Evenement - Notation - Réservation - Lister
requires authentication
Liste des réservations d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation?sort=nom.ASC%2Cid.DESC&page=1&limit=13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "1",
"limit": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '1',
'limit'=> '13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"date": "2150-12-31 12:00:00+02",
"date_validite": "2150-12-31 12:00:00+02",
"etat": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Notation - Réservation - Voir
requires authentication
Détails d'une réservation d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"date": "2150-12-31 12:00:00+02",
"date_validite": "2150-12-31 12:00:00+02",
"etat": { ... }
}
}
Received response:
Request failed with error:
Evenement - Notation - Réservation - Ajouter
requires authentication
Ajoute une réservation d'une notation à un événement
Example request:
curl -X POST \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"date":"2150-12-31 12:00:00+02","date_validite":"2150-12-31 12:00:00+02","etat_uid":"e1"}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"date": "2150-12-31 12:00:00+02",
"date_validite": "2150-12-31 12:00:00+02",
"etat_uid": "e1"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'date' => '2150-12-31 12:00:00+02',
'date_validite' => '2150-12-31 12:00:00+02',
'etat_uid' => 'e1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"date": "2150-12-31 12:00:00+02",
"date_validite": "2150-12-31 12:00:00+02",
"etat": { ... }
}
}
Received response:
Request failed with error:
Evenement - Notation - Réservation - Modifier
requires authentication
Modifie une réservation d'une notation d'un événement
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"date":"2150-12-31 12:00:00+02","date_validite":"2150-12-31 12:00:00+02","etat_uid":"e1"}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"date": "2150-12-31 12:00:00+02",
"date_validite": "2150-12-31 12:00:00+02",
"etat_uid": "e1"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'date' => '2150-12-31 12:00:00+02',
'date_validite' => '2150-12-31 12:00:00+02',
'etat_uid' => 'e1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"date": "2150-12-31 12:00:00+02",
"date_validite": "2150-12-31 12:00:00+02",
"etat": { ... }
}
}
Received response:
Request failed with error:
Evenement - Notation - Réservation - Supprimer
requires authentication
Supprime une réservation d'une notation d'un événement
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Notation - Réservation - Cloturer
requires authentication
Clôture une réservation d'une notation d'un événement
Example request:
curl -X PATCH \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation/2/cloture" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation/2/cloture"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/reservation/2/cloture',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"date": "2150-12-31 12:00:00+02",
"date_validite": "2150-12-31 12:00:00+02",
"etat": { ... }
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Lister
requires authentication
Liste des variables d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee?sort=nom.ASC%2Cid.DESC&page=1&limit=6" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "1",
"limit": "6",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '1',
'limit'=> '6',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Variable",
"ordre":1,
"valeur_min": 0,
"valeur_max": 12.5,
"laboratoire": true,
"variablepersonnalisee": false,
"type": { ... },
"variable": { ... },
"unite": { ... },
"saisie_niveau": { ... },
"cible": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Voir
requires authentication
Détails d'une variable d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": "Variable",
"ordre":1,
"valeur_min": 0,
"valeur_max": 12.5,
"laboratoire": true,
"variablepersonnalisee": false,
"type": { ... },
"variable": { ... },
"unite": { ... },
"saisie_niveau": { ... },
"cible": { ... }
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Ajouter
requires authentication
Ajoute une variable d'une notation à un événement
Example request:
curl -X POST \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Variable2","ordre":2,"valeur_min":"0","valeur_max":"42","laboratoire":true,"variablepersonnalisee":true,"type_uid":"t1","variable_uid":"v1","unite_uid":"u1","saisie_niveau_uid":"sn1","cible_id":0}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Variable2",
"ordre": 2,
"valeur_min": "0",
"valeur_max": "42",
"laboratoire": true,
"variablepersonnalisee": true,
"type_uid": "t1",
"variable_uid": "v1",
"unite_uid": "u1",
"saisie_niveau_uid": "sn1",
"cible_id": 0
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Variable2',
'ordre' => 2,
'valeur_min' => '0',
'valeur_max' => '42',
'laboratoire' => true,
'variablepersonnalisee' => true,
'type_uid' => 't1',
'variable_uid' => 'v1',
'unite_uid' => 'u1',
'saisie_niveau_uid' => 'sn1',
'cible_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Variable2",
"ordre": 2,
"valeur_min": 0,
"valeur_max": 42,
"laboratoire": true,
"variablepersonnalisee": true,
"type": { ... },
"variable": { ... },
"unite": { ... },
"saisie_niveau": { ... },
"cible": { ... }
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Modifier
requires authentication
Modifie une variable d'une notation d'un événement
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"null","ordre":0,"valeur_min":"null","valeur_max":"null","laboratoire":false,"variablepersonnalisee":false,"type_uid":"null","variable_uid":"null","unite_uid":"null","saisie_niveau_uid":"sn1","cible_id":0}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "null",
"ordre": 0,
"valeur_min": "null",
"valeur_max": "null",
"laboratoire": false,
"variablepersonnalisee": false,
"type_uid": "null",
"variable_uid": "null",
"unite_uid": "null",
"saisie_niveau_uid": "sn1",
"cible_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'null',
'ordre' => 0,
'valeur_min' => 'null',
'valeur_max' => 'null',
'laboratoire' => false,
'variablepersonnalisee' => false,
'type_uid' => 'null',
'variable_uid' => 'null',
'unite_uid' => 'null',
'saisie_niveau_uid' => 'sn1',
'cible_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": null,
"ordre": 3,
"valeur_min": null,
"valeur_max": null,
"laboratoire": false,
"variablepersonnalisee": false,
"type": null,
"variable": null,
"unite": null,
"saisie_niveau": { ... },
"cible": null
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Supprimer
requires authentication
Supprime une variable d'une notation d'un événement
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Note - Lister
requires authentication
Liste des notes des variables d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note?sort=nom.ASC%2Cid.DESC&page=1&limit=10" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "1",
"limit": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '1',
'limit'=> '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"euid": null,
"valeur": "12",
"valeurautre": "test",
"nonapplicable": false,
"numeroechantillon": 1,
"variable": { ... },
"valeur_liste": { ... },
"organe": { ... },
"microparcelle": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Note - Voir
requires authentication
Détails d'une note d'une variable d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"euid": null,
"valeur": "12",
"valeurautre": "test",
"nonapplicable": false,
"numeroechantillon": 1,
"variable": { ... },
"valeur_liste": { ... },
"organe": { ... },
"microparcelle": { ... }
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Note - Ajouter
requires authentication
Ajoute de notes une variable d'une notation à un événement
Example request:
curl -X POST \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"euid":"N42","valeur":"42","valeurautre":"42","nonapplicable":true,"numeroechantillon":1,"variable_id":0,"valeur_liste_id":0,"organe_id":0,"microparcelle_id":0}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"euid": "N42",
"valeur": "42",
"valeurautre": "42",
"nonapplicable": true,
"numeroechantillon": 1,
"variable_id": 0,
"valeur_liste_id": 0,
"organe_id": 0,
"microparcelle_id": 0
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'euid' => 'N42',
'valeur' => '42',
'valeurautre' => '42',
'nonapplicable' => true,
'numeroechantillon' => 1,
'variable_id' => 0,
'valeur_liste_id' => 0,
'organe_id' => 0,
'microparcelle_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"euid": "N42",
"valeur": "12",
"valeurautre": "test",
"nonapplicable": true,
"numeroechantillon": 2,
"variable": { ... },
"valeur_liste": { ... },
"organe": { ... },
"microparcelle": { ... }
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Note - Modifier
requires authentication
Modifie des notes une variable d'une notation d'un événement
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"euid":"null","valeur":"null","valeurautre":"null","nonapplicable":true,"numeroechantillon":0,"variable_id":0,"valeur_liste_id":0,"organe_id":0,"microparcelle_id":0}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"euid": "null",
"valeur": "null",
"valeurautre": "null",
"nonapplicable": true,
"numeroechantillon": 0,
"variable_id": 0,
"valeur_liste_id": 0,
"organe_id": 0,
"microparcelle_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'euid' => 'null',
'valeur' => 'null',
'valeurautre' => 'null',
'nonapplicable' => true,
'numeroechantillon' => 0,
'variable_id' => 0,
'valeur_liste_id' => 0,
'organe_id' => 0,
'microparcelle_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"euid": null,
"valeur": null,
"valeurautre": null,
"nonapplicable": null,
"numeroechantillon": null,
"variable": { ... },
"valeur_liste": null,
"organe": null,
"microparcelle": null
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Note - Supprimer
requires authentication
Supprime des notes une variable d'une notation d'un événement
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"id":2}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 2
}
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'id' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Note - Supprimer tout
requires authentication
Supprime toutes les notes d'une notation d'un événement
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note/all" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note/all"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/note/all',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Valeur - Lister
requires authentication
Liste des valeurs d'une variable d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur?sort=nom.ASC%2Cid.DESC&page=18&limit=19" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "18",
"limit": "19",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '18',
'limit'=> '19',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Azertyuiop"
}
]
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Valeur - Voir
requires authentication
Détails d'une valeur d'une variable d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": "Azertyuiop"
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Valeur - Ajouter
requires authentication
Ajoute une valeur à une variable d'une notation à un événement
Example request:
curl -X POST \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Poiuytreza"}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Poiuytreza"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Poiuytreza',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Poiuytreza"
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Valeur - Modifier
requires authentication
Modifie une valeur d'une variable d'une notation d'un événement
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Nouvelle valeur"}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Nouvelle valeur"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Nouvelle valeur',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Nouvelle valeur"
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Valeur - Supprimer
requires authentication
Supprime une valeur d'une variable d'une notation d'un événement
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/valeur/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Organe - Lister
requires authentication
Liste des organes d'une variable d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie?sort=nom.ASC%2Cid.DESC&page=7&limit=10" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "7",
"limit": "10",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '7',
'limit'=> '10',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Variable",
"ordre": 1,
"nb_echantillons": 1
}
]
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Organe - Voir
requires authentication
Détails d'un organe d'une variable d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": "Variable",
"ordre": 1,
"nb_echantillons": 1
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Organe - Ajouter
requires authentication
Ajoute un organe à une variable d'une notation à un événement
Example request:
curl -X POST \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Variable2","ordre":2,"nb_echantillons":2}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Variable2",
"ordre": 2,
"nb_echantillons": 2
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Variable2',
'ordre' => 2,
'nb_echantillons' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Variable2",
"ordre": 2,
"nb_echantillons": 2
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Organe - Modifier
requires authentication
Modifie un organe d'une variable d'une notation d'un événement
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Variable3","ordre":3,"nb_echantillons":3}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Variable3",
"ordre": 3,
"nb_echantillons": 3
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Variable3',
'ordre' => 3,
'nb_echantillons' => 3,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Variable3",
"ordre": 3,
"nb_echantillons": 3
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Organe - Supprimer
requires authentication
Supprime un organe d'une variable d'une notation d'un événement
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_etudiee/1/niveau_saisie/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Notation - Variable calculée - Lister
requires authentication
Liste des variables calculées d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee?sort=nom.ASC%2Cid.DESC&page=16&limit=19" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "16",
"limit": "19",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '16',
'limit'=> '19',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"calcul": { ... },
"cible": { ... },
"parametres": [ ... ]
}
]
}
Received response:
Request failed with error:
Evenement - Notation - Variable calculée - Voir
requires authentication
Détails d'une variable calculée d'une notation d'un événement
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"calcul": { ... },
"cible": { ... },
"parametres": [ ... ]
}
}
Received response:
Request failed with error:
Evenement - Notation - Variable calculée - Ajouter
requires authentication
Ajoute une variable calculée d'une notation à un événement
Example request:
curl -X POST \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"calcul_id":0,"cible_id":0,"parametres":[{"id":1,"valeur":"42.666"},{"id":1}]}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"calcul_id": 0,
"cible_id": 0,
"parametres": [
{
"id": 1,
"valeur": "42.666"
},
{
"id": 1
}
]
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'calcul_id' => 0,
'cible_id' => 0,
'parametres' => [
[
'id' => 1,
'valeur' => '42.666',
],
[
'id' => 1,
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"calcul": { ... },
"cible": { ... },
"parametres": [ ... ]
}
]
}
Received response:
Request failed with error:
Evenement - Notation - Variable calculée - Modifier
requires authentication
Modifie une variable calculée d'une notation d'un événement
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"calcul_id":0,"cible_id":0,"parametres":[{"id":2,"valeur":"42.666"},{"id":2}]}'
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"calcul_id": 0,
"cible_id": 0,
"parametres": [
{
"id": 2,
"valeur": "42.666"
},
{
"id": 2
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'calcul_id' => 0,
'cible_id' => 0,
'parametres' => [
[
'id' => 2,
'valeur' => '42.666',
],
[
'id' => 2,
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"calcul": { ... },
"cible": { ... },
"parametres": [ ... ]
}
]
}
Received response:
Request failed with error:
Evenement - Notation - Variable calculée - Supprimer
requires authentication
Supprime une variable calculée d'une notation d'un événement
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/1/evenement/1/fiche/notation/1/variable_calculee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Notation - Fichier - Export
requires authentication
Première analyse d'un fichier de données
Example request:
curl -X POST \
"https://api.oss.coop/essai/1/evenement/fiche/notation/fichier/export" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/fiche/notation/fichier/export"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai/1/evenement/fiche/notation/fichier/export',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
...
}
]
}
Received response:
Request failed with error:
Evenement - Notation - Variable - Lister
requires authentication
Liste des variables d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/evenement/fiche/notation/variable?sort=nom.ASC%2Cid.DESC&page=8&limit=6" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/evenement/fiche/notation/variable"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "8",
"limit": "6",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/evenement/fiche/notation/variable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '8',
'limit'=> '6',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Variable",
"ordre":1,
"valeur_min": 0,
"valeur_max": 12.5,
"laboratoire": true,
"variablepersonnalisee": false,
"type": { ... },
"variable": { ... },
"unite": { ... },
"saisie_niveau": { ... },
"cible": { ... }
}
]
}
Received response:
Request failed with error:
Rapport - Lister
requires authentication
Liste des rapports d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/rapport?sort=nom.ASC%2Cid.DESC&page=8&limit=1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/rapport"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "8",
"limit": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/rapport',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '8',
'limit'=> '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Rapport 1",
"details_erreur": null,
"date_creation": "2150-12-31 12:00:00+02",
"date_generation_debut": null,
"date_generation_fin": null,
"finalise": false,
"erreur": false,
"media": { ... }
}
]
}
Received response:
Request failed with error:
Rapport - Voir
requires authentication
Détails d'un rapport d'un essai
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/rapport/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/rapport/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/rapport/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": "Rapport 1",
"details_erreur": null,
"date_creation": "2150-12-31 12:00:00+02",
"date_generation_debut": null,
"date_generation_fin": null,
"finalise": false,
"erreur": false,
"media": { ... }
}
}
Received response:
Request failed with error:
Rapport - Ajouter
requires authentication
Ajoute un rapport d'un essai
Example request:
curl -X POST \
"https://api.oss.coop/essai/1/rapport" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Rapport 2"}'
const url = new URL(
"https://api.oss.coop/essai/1/rapport"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Rapport 2"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/essai/1/rapport',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Rapport 2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Rapport 2",
"details_erreur": null,
"date_creation": "2150-12-31 12:00:00+02",
"date_generation_debut": null,
"date_generation_fin": null,
"finalise": false,
"erreur": false,
"media": null
}
}
Received response:
Request failed with error:
Rapport - Modifier
requires authentication
Modifie un rapport d'un essai
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/rapport/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Rapport 3"}'
const url = new URL(
"https://api.oss.coop/essai/1/rapport/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Rapport 3"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/rapport/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Rapport 3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Rapport 3",
"details_erreur": null,
"date_creation": "2150-12-31 12:00:00+02",
"date_generation_debut": null,
"date_generation_fin": null,
"finalise": false,
"erreur": false,
"media": null
}
}
Received response:
Request failed with error:
Rapport - Supprimer
requires authentication
Supprime un rapport d'un essai
Example request:
curl -X DELETE \
"https://api.oss.coop/essai/1/rapport/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/rapport/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/essai/1/rapport/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Rapport - Statistiques
requires authentication
Génere les statistiques d'un rapport d'un essai
Example request:
curl -X PATCH \
"https://api.oss.coop/essai/1/rapport/2/statistiques" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Rapport 3"}'
const url = new URL(
"https://api.oss.coop/essai/1/rapport/2/statistiques"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Rapport 3"
}
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/essai/1/rapport/2/statistiques',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Rapport 3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Rapport 3",
"details_erreur": null,
"date_creation": "2150-12-31 12:00:00+02",
"date_generation_debut": null,
"date_generation_fin": null,
"finalise": false,
"erreur": false,
"media": null
}
}
Received response:
Request failed with error:
Rapport - Modalites - Lister
requires authentication
Liste des modalités d'un rapport
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/rapport/1/modalite" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/rapport/1/modalite"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/rapport/1/modalite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"numero": "AZERTY123",
"destruction": false,
"ordre": 1,
"type": { ... }
}
]
}
Received response:
Request failed with error:
Rapport - Modalites - Modifier
requires authentication
Modifie les modalités d'un rapport
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/rapport/1/modalite" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"modalites":[{"id":2},{"id":2}]}'
const url = new URL(
"https://api.oss.coop/essai/1/rapport/1/modalite"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"modalites": [
{
"id": 2
},
{
"id": 2
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/rapport/1/modalite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'modalites' => [
[
'id' => 2,
],
[
'id' => 2,
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"numero": "AZERTY123",
"destruction": false,
"ordre": 1,
"type": { ... }
}
]
}
Received response:
Request failed with error:
Rapport - Répétitions - Lister
requires authentication
Liste des répétitions d'un rapport
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/rapport/1/repetition" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/rapport/1/repetition"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/rapport/1/repetition',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"repetition": 1
}
]
}
Received response:
Request failed with error:
Rapport - Répétitions - Modifier
requires authentication
Modifie les répétitions d'un rapport
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/rapport/1/repetition" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"repetitions":[{"repetition":2},{"repetition":2}]}'
const url = new URL(
"https://api.oss.coop/essai/1/rapport/1/repetition"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"repetitions": [
{
"repetition": 2
},
{
"repetition": 2
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/rapport/1/repetition',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'repetitions' => [
[
'repetition' => 2,
],
[
'repetition' => 2,
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"repetition": 2
}
]
}
Received response:
Request failed with error:
Rapport - Variables - Lister
requires authentication
Liste des variables d'un rapport
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/rapport/1/variable" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/rapport/1/variable"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/rapport/1/variable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Variable",
"ordre":1,
"valeur_min": 0,
"valeur_max": 12.5,
"laboratoire": true,
"variablepersonnalisee": false,
"type": { ... },
"variable": { ... },
"unite": { ... },
"saisie_niveau": { ... },
"cible": { ... }
}
]
}
Received response:
Request failed with error:
Rapport - Variables - Modifier
requires authentication
Modifie les variables d'un rapport
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/rapport/1/variable" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"variables":[{"id":2},{"id":2}]}'
const url = new URL(
"https://api.oss.coop/essai/1/rapport/1/variable"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variables": [
{
"id": 2
},
{
"id": 2
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/rapport/1/variable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'variables' => [
[
'id' => 2,
],
[
'id' => 2,
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"designation": "Variable",
"ordre":1,
"valeur_min": 0,
"valeur_max": 12.5,
"laboratoire": true,
"variablepersonnalisee": false,
"type": { ... },
"variable": { ... },
"unite": { ... },
"saisie_niveau": { ... },
"cible": { ... }
}
]
}
Received response:
Request failed with error:
Rapport - Variables Calculées - Lister
requires authentication
Liste des variables calculées d'un rapport
Example request:
curl -X GET \
-G "https://api.oss.coop/essai/1/rapport/1/variable_calculee" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/essai/1/rapport/1/variable_calculee"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/essai/1/rapport/1/variable_calculee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"calcul": { ... },
"cible": null,
"parametres": [ ... ]
}
]
}
Received response:
Request failed with error:
Rapport - Variables Calculées - Modifier
requires authentication
Modifie les variables calculées d'un rapport
Example request:
curl -X PUT \
"https://api.oss.coop/essai/1/rapport/1/variable_calculee" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"variables_calculees":[{"id":2},{"id":2}]}'
const url = new URL(
"https://api.oss.coop/essai/1/rapport/1/variable_calculee"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variables_calculees": [
{
"id": 2
},
{
"id": 2
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/essai/1/rapport/1/variable_calculee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'variables_calculees' => [
[
'id' => 2,
],
[
'id' => 2,
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"calcul": { ... },
"cible": null,
"parametres": [ ... ]
}
]
}
Received response:
Request failed with error:
Etiquettes
Modele - Lister
requires authentication
Liste des modeles d'étiquettes
Example request:
curl -X GET \
-G "https://api.oss.coop/etiquette/modele?sort=nom.ASC%2Cid.DESC&page=10&limit=9" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/etiquette/modele"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "10",
"limit": "9",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/etiquette/modele',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '10',
'limit'=> '9',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "valeur",
"type": { ... },
"gabarit": { ... }
}
]
}
Received response:
Request failed with error:
Modele - Voir
requires authentication
Détails d'un modele d'étiquettes
Example request:
curl -X GET \
-G "https://api.oss.coop/etiquette/modele/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/etiquette/modele/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/etiquette/modele/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"nom": "valeur",
"type": { ... },
"gabarit": { ... }
}
}
Received response:
Request failed with error:
Modele - Ajouter
requires authentication
Ajoute un modele d'étiquettes
Example request:
curl -X POST \
"https://api.oss.coop/etiquette/modele" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"valeur2","type_uid":"type1","gabarit_uid":"gabarit1"}'
const url = new URL(
"https://api.oss.coop/etiquette/modele"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "valeur2",
"type_uid": "type1",
"gabarit_uid": "gabarit1"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/etiquette/modele',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'valeur2',
'type_uid' => 'type1',
'gabarit_uid' => 'gabarit1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "valeur",
"type": { ... },
"gabarit": { ... }
}
}
Received response:
Request failed with error:
Modele - Modifier
requires authentication
Modifie un modele d'étiquettes
Example request:
curl -X PUT \
"https://api.oss.coop/etiquette/modele/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"valeur2","type_uid":"type1","gabarit_uid":"null"}'
const url = new URL(
"https://api.oss.coop/etiquette/modele/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "valeur2",
"type_uid": "type1",
"gabarit_uid": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/etiquette/modele/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'valeur2',
'type_uid' => 'type1',
'gabarit_uid' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "valeur",
"type": { ... },
"gabarit": null
}
}
Received response:
Request failed with error:
Modele - Supprimer
requires authentication
Supprime un modele d'étiquettes
Example request:
curl -X DELETE \
"https://api.oss.coop/etiquette/modele/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/etiquette/modele/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/etiquette/modele/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Fichiers
Lister
requires authentication
Liste des fichiers
Example request:
curl -X GET \
-G "https://api.oss.coop/fichier?sort=nom.ASC%2Cid.DESC&page=6&limit=15" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/fichier"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "6",
"limit": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/fichier',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '6',
'limit'=> '15',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"description": "valeur",
"categorie": { ... },
"media": { ... }
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'un fichier
Example request:
curl -X GET \
-G "https://api.oss.coop/fichier/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/fichier/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/fichier/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"description": "valeur",
"categorie": { ... },
"media": { ... }
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute un fichier
Example request:
curl -X POST \
"https://api.oss.coop/fichier" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"description":"valeur2","categorie_id":1,"media_id":1}'
const url = new URL(
"https://api.oss.coop/fichier"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "valeur2",
"categorie_id": 1,
"media_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/fichier',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'description' => 'valeur2',
'categorie_id' => 1,
'media_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"description": "valeur2",
"categorie": { ... },
"media": { ... }
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie un fichier
Example request:
curl -X PUT \
"https://api.oss.coop/fichier/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"description":"valeur3","categorie_id":2,"media_id":2}'
const url = new URL(
"https://api.oss.coop/fichier/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"description": "valeur3",
"categorie_id": 2,
"media_id": 2
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/fichier/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'description' => 'valeur3',
'categorie_id' => 2,
'media_id' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"description": "valeur3",
"categorie": { ... },
"media": { ... }
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime un fichier
Example request:
curl -X DELETE \
"https://api.oss.coop/fichier/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/fichier/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/fichier/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Fournisseur
Lister
requires authentication
Liste des fournisseurs
Example request:
curl -X GET \
-G "https://api.oss.coop/fournisseur?sort=nom.ASC%2Cid.DESC&page=15&limit=8" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/fournisseur"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "15",
"limit": "8",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/fournisseur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '15',
'limit'=> '8',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"nom": "nom",
"thematiques": [ ... ]
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'un fournisseur
Example request:
curl -X GET \
-G "https://api.oss.coop/fournisseur/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/fournisseur/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/fournisseur/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"nom": "nom",
"thematiques": [ ... ]
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute un fournisseur
Example request:
curl -X POST \
"https://api.oss.coop/fournisseur" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel2","nom":"nom2","thematiques":[{"uid":"1"},{"uid":"1"}]}'
const url = new URL(
"https://api.oss.coop/fournisseur"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel2",
"nom": "nom2",
"thematiques": [
{
"uid": "1"
},
{
"uid": "1"
}
]
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/fournisseur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel2',
'nom' => 'nom2',
'thematiques' => [
[
'uid' => '1',
],
[
'uid' => '1',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel2",
"nom": "nom2",
"thematiques": [ ... ]
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie un fournisseur
Example request:
curl -X PUT \
"https://api.oss.coop/fournisseur/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel3","nom":"nom3","thematiques":[{"uid":"1"},{"uid":"1"}]}'
const url = new URL(
"https://api.oss.coop/fournisseur/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel3",
"nom": "nom3",
"thematiques": [
{
"uid": "1"
},
{
"uid": "1"
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/fournisseur/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel3',
'nom' => 'nom3',
'thematiques' => [
[
'uid' => '1',
],
[
'uid' => '1',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel3",
"nom": "nom3",
"thematiques": [ ... ]
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime un fournisseur
Example request:
curl -X DELETE \
"https://api.oss.coop/fournisseur/13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/fournisseur/13"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/fournisseur/13',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Contact - Lister
requires authentication
Liste des contacts d'un fournisseur
Example request:
curl -X GET \
-G "https://api.oss.coop/fournisseur/1/contact?sort=nom.ASC%2Cid.DESC&page=14&limit=8" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/fournisseur/1/contact"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "14",
"limit": "8",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/fournisseur/1/contact',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '14',
'limit'=> '8',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "nom",
"prenom": "prenom",
"fonction": "fonction",
"email": "email",
"telephonefixe": "0123456789",
"telephoneportable": "0607123456",
"telephoneentreprise": "0123456789",
"remarques": "remarques",
"actif": true,
"fournisseur": { ... }
}
]
}
Received response:
Request failed with error:
Contact - Voir
requires authentication
Détails d'un contact d'un fournisseur
Example request:
curl -X GET \
-G "https://api.oss.coop/fournisseur/1/contact/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/fournisseur/1/contact/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/fournisseur/1/contact/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"nom": "nom",
"prenom": "prenom",
"fonction": "fonction",
"email": "n.prenom@societe.com",
"telephonefixe": "0123456789",
"telephoneportable": "0607123456",
"telephoneentreprise": "0123456789",
"remarques": "remarques",
"actif": true,
"fournisseur": { ... }
}
}
Received response:
Request failed with error:
Contact - Ajouter
requires authentication
Ajoute un contact à un fournisseur
Example request:
curl -X POST \
"https://api.oss.coop/fournisseur/1/contact" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"nom2","prenom":"prenom2","fonction":"fonction2","email":"n2.prenom2@societe.com","telephonefixe":"0123456789","telephoneportable":"0607123456","telephoneentreprise":"0123456789","remarques":"remarques2","actif":true}'
const url = new URL(
"https://api.oss.coop/fournisseur/1/contact"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "nom2",
"prenom": "prenom2",
"fonction": "fonction2",
"email": "n2.prenom2@societe.com",
"telephonefixe": "0123456789",
"telephoneportable": "0607123456",
"telephoneentreprise": "0123456789",
"remarques": "remarques2",
"actif": true
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/fournisseur/1/contact',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'nom2',
'prenom' => 'prenom2',
'fonction' => 'fonction2',
'email' => 'n2.prenom2@societe.com',
'telephonefixe' => '0123456789',
'telephoneportable' => '0607123456',
'telephoneentreprise' => '0123456789',
'remarques' => 'remarques2',
'actif' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "nom2",
"prenom": "prenom2",
"fonction": "fonction2",
"email": "n2.prenom2@societe.com",
"telephonefixe": "0123456789",
"telephoneportable": "0607123456",
"telephoneentreprise": "0123456789",
"remarques": "remarques2",
"actif": true,
"fournisseur": { ... }
}
}
Received response:
Request failed with error:
Contact - Modifier
requires authentication
Modifie un contact d'un fournisseur
Example request:
curl -X PUT \
"https://api.oss.coop/fournisseur/1/contact/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"nom3","prenom":"prenom3","fonction":"null","email":"n3.prenom3@societe.com","telephonefixe":"null","telephoneportable":"null","telephoneentreprise":"null","remarques":"null","actif":true}'
const url = new URL(
"https://api.oss.coop/fournisseur/1/contact/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "nom3",
"prenom": "prenom3",
"fonction": "null",
"email": "n3.prenom3@societe.com",
"telephonefixe": "null",
"telephoneportable": "null",
"telephoneentreprise": "null",
"remarques": "null",
"actif": true
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/fournisseur/1/contact/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'nom3',
'prenom' => 'prenom3',
'fonction' => 'null',
'email' => 'n3.prenom3@societe.com',
'telephonefixe' => 'null',
'telephoneportable' => 'null',
'telephoneentreprise' => 'null',
'remarques' => 'null',
'actif' => true,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "nom3",
"prenom": "prenom3",
"fonction": null,
"email": "n3.prenom3@societe.com",
"telephonefixe": null,
"telephoneportable": null,
"telephoneentreprise": null,
"remarques": null,
"actif": true,
"fournisseur": { ... }
}
}
Received response:
Request failed with error:
Contact - Supprimer
requires authentication
Supprime un contact d'un fournisseur
Example request:
curl -X DELETE \
"https://api.oss.coop/fournisseur/1/contact/7" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/fournisseur/1/contact/7"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/fournisseur/1/contact/7',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Internal
interne/{user_id:[0-9]+}/donnees/{type:notation|variable|rapport}/{uid:[0-9]+}
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/interne/{user_id:[0-9]+}/donnees/{type:notation|variable|rapport}/{uid:[0-9]+}" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/interne/{user_id:[0-9]+}/donnees/{type:notation|variable|rapport}/{uid:[0-9]+}"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/interne/{user_id:[0-9]+}/donnees/{type:notation|variable|rapport}/{uid:[0-9]+}',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Received response:
Request failed with error:
interne/{user_id:[0-9]+}/resultats/variable_calculee/{uid:[0-9]+}/microparcelle/{muid:[0-9]+}
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/interne/{user_id:[0-9]+}/resultats/variable_calculee/{uid:[0-9]+}/microparcelle/{muid:[0-9]+}" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/interne/{user_id:[0-9]+}/resultats/variable_calculee/{uid:[0-9]+}/microparcelle/{muid:[0-9]+}"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/interne/{user_id:[0-9]+}/resultats/variable_calculee/{uid:[0-9]+}/microparcelle/{muid:[0-9]+}',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Received response:
Request failed with error:
interne/{user_id:[0-9]+}/export/{type:[a-z]+}/{ressource:[a-zA-Z-]+}/{rid:[0-9]+}[/{child_ressource:[a-zA-Z-]+}]
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/interne/{user_id:[0-9]+}/export/{type:[a-z]+}/{ressource:[a-zA-Z-]+}/{rid:[0-9]+}[/{child_ressource:[a-zA-Z-]+}]" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/interne/{user_id:[0-9]+}/export/{type:[a-z]+}/{ressource:[a-zA-Z-]+}/{rid:[0-9]+}[/{child_ressource:[a-zA-Z-]+}]"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/interne/{user_id:[0-9]+}/export/{type:[a-z]+}/{ressource:[a-zA-Z-]+}/{rid:[0-9]+}[/{child_ressource:[a-zA-Z-]+}]',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Received response:
Request failed with error:
Logs
Lister
requires authentication
Liste des logs
Example request:
curl -X GET \
-G "https://api.oss.coop/log?sort=nom.ASC%2Cid.DESC&page=6&limit=16" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/log"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "6",
"limit": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/log',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '6',
'limit'=> '16',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"type": {
"id": 1,
"uid": "CREATE",
"designation": "Création"
},
"date": "2021-04-18 21:00:12",
"objet": "{ \"id\": 2, \"uid\": \"id_unique_universel2\", \"designation\": \"valeur2\" }",
"ressource": "profil",
"ressource_id": "2",
"ressource_secondaire_id": ""
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'un log
Example request:
curl -X GET \
-G "https://api.oss.coop/log/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/log/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/log/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"type": {
"id": 1,
"uid": "CREATE",
"designation": "Création"
},
"date": "2021-04-18 21:00:12",
"objet": "{ \"id\": 2, \"uid\": \"id_unique_universel2\", \"designation\": \"valeur2\" }",
"ressource": "profil",
"ressource_id": "2",
"ressource_secondaire_id": ""
}
}
Received response:
Request failed with error:
Noms Commerciaux
Lister
requires authentication
Liste des noms commerciaux
Example request:
curl -X GET \
-G "https://api.oss.coop/nom_commercial?sort=nom.ASC%2Cid.DESC&page=5&limit=12" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/nom_commercial"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "5",
"limit": "12",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/nom_commercial',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '5',
'limit'=> '12',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "produit",
"code_ean13": "barcode",
"code_interne": "produit42",
"fournisseur": { ... }
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'un nom commercial
Example request:
curl -X GET \
-G "https://api.oss.coop/nom_commercial/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/nom_commercial/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/nom_commercial/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"nom": "produit",
"code_ean13": "barcode",
"code_interne": "produit42",
"fournisseur": { ... }
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute un nom commercial
Example request:
curl -X POST \
"https://api.oss.coop/nom_commercial" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"produit2","code_ean13":"facilis","code_interne":"repellendus","produit_id":1,"fournisseur_uid":1}'
const url = new URL(
"https://api.oss.coop/nom_commercial"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "produit2",
"code_ean13": "facilis",
"code_interne": "repellendus",
"produit_id": 1,
"fournisseur_uid": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/nom_commercial',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'produit2',
'code_ean13' => 'facilis',
'code_interne' => 'repellendus',
'produit_id' => 1,
'fournisseur_uid' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "produit2",
"code_ean13": null,
"code_interne": null,
"fournisseur": { ... }
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie un nom commercial
Example request:
curl -X PUT \
"https://api.oss.coop/nom_commercial/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"produit2","code_ean13":"barcode2","code_interne":"OSS42","produit_id":1,"fournisseur_uid":1}'
const url = new URL(
"https://api.oss.coop/nom_commercial/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "produit2",
"code_ean13": "barcode2",
"code_interne": "OSS42",
"produit_id": 1,
"fournisseur_uid": 1
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/nom_commercial/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'produit2',
'code_ean13' => 'barcode2',
'code_interne' => 'OSS42',
'produit_id' => 1,
'fournisseur_uid' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "produit2",
"code_ean13": "barcode2",
"code_interne": "OSS42",
"fournisseur": { ... }
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime un nom commercial
Example request:
curl -X DELETE \
"https://api.oss.coop/nom_commercial/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/nom_commercial/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/nom_commercial/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Parcelles
Lister
requires authentication
Liste des parcelles
Example request:
curl -X GET \
-G "https://api.oss.coop/parcelle?sort=nom.ASC%2Cid.DESC&page=4&limit=1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/parcelle"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "4",
"limit": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/parcelle',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '4',
'limit'=> '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Diatem",
"adresse": "2 Rue de Dublin",
"cp": "67300",
"ville": "SCHILTIGHEIM",
"latitude": "48.612769045719666",
"longitude": "7.710393441008134",
"nom_agriculteur": "Mathieu",
"tel": "0123456789",
"email": "dev@diatem.net",
"cpmeteo": "67000",
"villemeteo": "Strasbourg",
"plateforme": false,
"media": { ... }
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'une parcelle
Example request:
curl -X GET \
-G "https://api.oss.coop/parcelle/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/parcelle/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/parcelle/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": "Diatem",
"adresse": "2 Rue de Dublin",
"cp": "67300",
"ville": "SCHILTIGHEIM",
"latitude": "48.612769045719666",
"longitude": "7.710393441008134",
"nom_agriculteur": "Mathieu",
"tel": "0123456789",
"email": "dev@diatem.net",
"cpmeteo": "67000",
"villemeteo": "Strasbourg",
"plateforme": false,
"media": { ... }
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute une parcelle
Example request:
curl -X POST \
"https://api.oss.coop/parcelle" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Enfer","adresse":"42 rue Pacool","cp":"42666","ville":"DIATEM","latitude":"48.612769045719666","longitude":"7.710393441008134","nom_agriculteur":"Lo\u00efc","tel":"0123456789","email":"lgerard@diatem.net","cpmeteo":"67000","villemeteo":"Strasbourg","plateforme":false,"media_id":1}'
const url = new URL(
"https://api.oss.coop/parcelle"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Enfer",
"adresse": "42 rue Pacool",
"cp": "42666",
"ville": "DIATEM",
"latitude": "48.612769045719666",
"longitude": "7.710393441008134",
"nom_agriculteur": "Lo\u00efc",
"tel": "0123456789",
"email": "lgerard@diatem.net",
"cpmeteo": "67000",
"villemeteo": "Strasbourg",
"plateforme": false,
"media_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/parcelle',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Enfer',
'adresse' => '42 rue Pacool',
'cp' => '42666',
'ville' => 'DIATEM',
'latitude' => '48.612769045719666',
'longitude' => '7.710393441008134',
'nom_agriculteur' => 'Loïc',
'tel' => '0123456789',
'email' => 'lgerard@diatem.net',
'cpmeteo' => '67000',
'villemeteo' => 'Strasbourg',
'plateforme' => false,
'media_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Enfer",
"adresse": "42 rue Pacool",
"cp": "42666",
"ville": "DIATEM",
"latitude": "48.612769045719666",
"longitude": "7.710393441008134",
"nom_agriculteur": "Loïc",
"tel": "0123456789",
"email": "lgerard@diatem.net",
"cpmeteo": "67000",
"villemeteo": "Strasbourg",
"plateforme": false,
"media": { ... }
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie une parcelle
Example request:
curl -X PUT \
"https://api.oss.coop/parcelle/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Enfer","adresse":"null","cp":"null","ville":"null","latitude":"null","longitude":"null","nom_agriculteur":"null","tel":"null","email":"null","cpmeteo":"null","villemeteo":"null","plateforme":true,"media_id":0}'
const url = new URL(
"https://api.oss.coop/parcelle/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Enfer",
"adresse": "null",
"cp": "null",
"ville": "null",
"latitude": "null",
"longitude": "null",
"nom_agriculteur": "null",
"tel": "null",
"email": "null",
"cpmeteo": "null",
"villemeteo": "null",
"plateforme": true,
"media_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/parcelle/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Enfer',
'adresse' => 'null',
'cp' => 'null',
'ville' => 'null',
'latitude' => 'null',
'longitude' => 'null',
'nom_agriculteur' => 'null',
'tel' => 'null',
'email' => 'null',
'cpmeteo' => 'null',
'villemeteo' => 'null',
'plateforme' => true,
'media_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Enfer",
"adresse": null,
"cp": null,
"ville": null,
"latitude": null,
"longitude": null,
"nom_agriculteur": null,
"tel": null,
"email": null,
"cpmeteo": null,
"villemeteo": null,
"plateforme": null,
"media": null
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime une parcelle
Example request:
curl -X DELETE \
"https://api.oss.coop/parcelle/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/parcelle/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/parcelle/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Fiche - Lister
requires authentication
Liste des fiches d'une parcelle
Example request:
curl -X GET \
-G "https://api.oss.coop/parcelle/1/fiche?sort=nom.ASC%2Cid.DESC&page=14&limit=18" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/parcelle/1/fiche"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "14",
"limit": "18",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/parcelle/1/fiche',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '14',
'limit'=> '18',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"variete": "Développeur",
"exposition": "Non",
"situation_particuliere": "Télétravail",
"conditionssemis": "Paslaforme",
"fumure_mineraux_date": "2150-12-31 12:00:00+02",
"fumure_mineraux_produits": "Cailloux",
"fumure_organique_date": "2150-12-31 12:00:00+02",
"fumure_organique_produits": "Pas cailloux",
"fumure_calcaire_date": "2150-12-31 12:00:00+02",
"fumure_calcaire_produits": "Cailloux aussi",
"fumure_oligo_date": "2150-12-31 12:00:00+02",
"fumure_oligo_produits": "Pas cailloux non plus",
"protection_herbicides_date": "2150-12-31 12:00:00+02",
"protection_herbicides_produits": "Tuelesol",
"protection_fongicides_date": "2150-12-31 12:00:00+02",
"protection_fongicides_produits": "Tuelesbestioles",
"protection_inscticides_date": "2150-12-31 12:00:00+02",
"protection_insecticides_produits": "Tuelesbestiolesaussimaispaslesmemes",
"protection_regulateurs_date": "2150-12-31 12:00:00+02",
"protection_regulateurs_produits": "Tuedestrucs?",
"protection_autres_date": "2150-12-31 12:00:00+02",
"protection_autres_produits": "Tuelereste",
"argile": "42",
"limon": "42",
"sable": "42",
"ecartement_rangs": "42",
"objectifs_rendement": "42",
"densitesemis": "42",
"sensibilite_secheresse": true,
"sensibilite_exces_eau": true,
"irrigation": true,
"drainage": true,
"sol_en_pente": true,
"cultureproduction": true,
"analyse_sol_dispo": true,
"date_analyse_sol": "2150-12-31 12:00:00+02",
"date_semis": "2150-12-31 12:00:00+02",
"date_levee": "2150-12-31 12:00:00+02",
"unite": { ... },
"culture": { ... },
"culture_precedante": { ... },
"cailloux": { ... },
"reserve_utile": { ... },
"densite_semis": { ... },
"sol_type": { ... },
"sol_profondeur": { ... },
"sol_travail": { ... }
}
]
}
Received response:
Request failed with error:
Fiche - Voir
requires authentication
Détails d'une fiche d'une parcelle
Example request:
curl -X GET \
-G "https://api.oss.coop/parcelle/1/fiche/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/parcelle/1/fiche/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/parcelle/1/fiche/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"variete": "Développeur",
"exposition": "Non",
"situation_particuliere": "Télétravail",
"conditionssemis": "Paslaforme",
"fumure_mineraux_date": "2150-12-31 12:00:00+02",
"fumure_mineraux_produits": "Cailloux",
"fumure_organique_date": "2150-12-31 12:00:00+02",
"fumure_organique_produits": "Pas cailloux",
"fumure_calcaire_date": "2150-12-31 12:00:00+02",
"fumure_calcaire_produits": "Cailloux aussi",
"fumure_oligo_date": "2150-12-31 12:00:00+02",
"fumure_oligo_produits": "Pas cailloux non plus",
"protection_herbicides_date": "2150-12-31 12:00:00+02",
"protection_herbicides_produits": "Tuelesol",
"protection_fongicides_date": "2150-12-31 12:00:00+02",
"protection_fongicides_produits": "Tuelesbestioles",
"protection_inscticides_date": "2150-12-31 12:00:00+02",
"protection_insecticides_produits": "Tuelesbestiolesaussimaispaslesmemes",
"protection_regulateurs_date": "2150-12-31 12:00:00+02",
"protection_regulateurs_produits": "Tuedestrucs?",
"protection_autres_date": "2150-12-31 12:00:00+02",
"protection_autres_produits": "Tuelereste",
"argile": "42",
"limon": "42",
"sable": "42",
"ecartement_rangs": "42",
"objectifs_rendement": "42",
"densitesemis": "42",
"sensibilite_secheresse": true,
"sensibilite_exces_eau": true,
"irrigation": true,
"drainage": true,
"sol_en_pente": true,
"cultureproduction": true,
"analyse_sol_dispo": true,
"date_analyse_sol": "2150-12-31 12:00:00+02",
"date_semis": "2150-12-31 12:00:00+02",
"date_levee": "2150-12-31 12:00:00+02",
"unite": { ... },
"culture": { ... },
"culture_precedante": { ... },
"cailloux": { ... },
"reserve_utile": { ... },
"densite_semis": { ... },
"sol_type": { ... },
"sol_profondeur": { ... },
"sol_travail": { ... }
}
}
Received response:
Request failed with error:
Fiche - Modifier
requires authentication
Modifie une fiche d'une parcelle
Example request:
curl -X PUT \
"https://api.oss.coop/parcelle/1/fiche/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"variete":"null","exposition":"null","situation_particuliere":"null","conditionssemis":"null","fumure_mineraux_date":"null","fumure_mineraux_produits":"null","fumure_organique_date":"null","fumure_organique_produits":"null","fumure_calcaire_date":"null","fumure_calcaire_produits":"null","fumure_oligo_date":"null","fumure_oligo_produits":"null","protection_herbicides_date":"null","protection_herbicides_produits":"null","protection_fongicides_date":"null","protection_inscticides_date":"null","protection_insecticides_produits":"null","protection_regulateurs_date":"null","protection_regulateurs_produits":"null","protection_autres_date":"null","protection_autres_produits":"null","argile":"null","limon":"null","sable":"null","ecartement_rangs":"null","objectifs_rendement":"null","sensibilite_secheresse":true,"sensibilite_exces_eau":true,"irrigation":true,"drainage":true,"sol_en_pente":true,"cultureproduction":true,"analyse_sol_dispo":true,"densitesemis":"null","date_analyse_sol":"null","date_semis":"null","date_levee":"null","unite_uid":"null","culture_uid":"null","culture_precedante_uid":"null","densite_semis_uid":"null","cailloux_id":0,"reserve_utile_id":0,"sol_type_id":0,"sol_profondeur_id":0,"sol_travail_id":0}'
const url = new URL(
"https://api.oss.coop/parcelle/1/fiche/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variete": "null",
"exposition": "null",
"situation_particuliere": "null",
"conditionssemis": "null",
"fumure_mineraux_date": "null",
"fumure_mineraux_produits": "null",
"fumure_organique_date": "null",
"fumure_organique_produits": "null",
"fumure_calcaire_date": "null",
"fumure_calcaire_produits": "null",
"fumure_oligo_date": "null",
"fumure_oligo_produits": "null",
"protection_herbicides_date": "null",
"protection_herbicides_produits": "null",
"protection_fongicides_date": "null",
"protection_inscticides_date": "null",
"protection_insecticides_produits": "null",
"protection_regulateurs_date": "null",
"protection_regulateurs_produits": "null",
"protection_autres_date": "null",
"protection_autres_produits": "null",
"argile": "null",
"limon": "null",
"sable": "null",
"ecartement_rangs": "null",
"objectifs_rendement": "null",
"sensibilite_secheresse": true,
"sensibilite_exces_eau": true,
"irrigation": true,
"drainage": true,
"sol_en_pente": true,
"cultureproduction": true,
"analyse_sol_dispo": true,
"densitesemis": "null",
"date_analyse_sol": "null",
"date_semis": "null",
"date_levee": "null",
"unite_uid": "null",
"culture_uid": "null",
"culture_precedante_uid": "null",
"densite_semis_uid": "null",
"cailloux_id": 0,
"reserve_utile_id": 0,
"sol_type_id": 0,
"sol_profondeur_id": 0,
"sol_travail_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/parcelle/1/fiche/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'variete' => 'null',
'exposition' => 'null',
'situation_particuliere' => 'null',
'conditionssemis' => 'null',
'fumure_mineraux_date' => 'null',
'fumure_mineraux_produits' => 'null',
'fumure_organique_date' => 'null',
'fumure_organique_produits' => 'null',
'fumure_calcaire_date' => 'null',
'fumure_calcaire_produits' => 'null',
'fumure_oligo_date' => 'null',
'fumure_oligo_produits' => 'null',
'protection_herbicides_date' => 'null',
'protection_herbicides_produits' => 'null',
'protection_fongicides_date' => 'null',
'protection_inscticides_date' => 'null',
'protection_insecticides_produits' => 'null',
'protection_regulateurs_date' => 'null',
'protection_regulateurs_produits' => 'null',
'protection_autres_date' => 'null',
'protection_autres_produits' => 'null',
'argile' => 'null',
'limon' => 'null',
'sable' => 'null',
'ecartement_rangs' => 'null',
'objectifs_rendement' => 'null',
'sensibilite_secheresse' => true,
'sensibilite_exces_eau' => true,
'irrigation' => true,
'drainage' => true,
'sol_en_pente' => true,
'cultureproduction' => true,
'analyse_sol_dispo' => true,
'densitesemis' => 'null',
'date_analyse_sol' => 'null',
'date_semis' => 'null',
'date_levee' => 'null',
'unite_uid' => 'null',
'culture_uid' => 'null',
'culture_precedante_uid' => 'null',
'densite_semis_uid' => 'null',
'cailloux_id' => 0,
'reserve_utile_id' => 0,
'sol_type_id' => 0,
'sol_profondeur_id' => 0,
'sol_travail_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"variete": null,
"exposition": null,
"situation_particuliere": null,
"conditionssemis": null,
"fumure_mineraux_date": null,
"fumure_mineraux_produits": null,
"fumure_organique_date": null,
"fumure_organique_produits": null,
"fumure_calcaire_date": null,
"fumure_calcaire_produits": null,
"fumure_oligo_date": null,
"fumure_oligo_produits": null,
"protection_herbicides_date": null,
"protection_herbicides_produits": null,
"protection_fongicides_date": null,
"protection_fongicides_produits": null,
"protection_inscticides_date": null,
"protection_insecticides_produits": null,
"protection_regulateurs_date": null,
"protection_regulateurs_produits": null,
"protection_autres_date": null,
"protection_autres_produits": null,
"argile": null,
"limon": null,
"sable": null,
"ecartement_rangs": null,
"objectifs_rendement": null,
"densitesemis": null,
"sensibilite_secheresse": null,
"sensibilite_exces_eau": null,
"irrigation": null,
"drainage": null,
"sol_en_pente": null,
"cultureproduction": null,
"analyse_sol_dispo": null,
"date_analyse_sol": null,
"date_semis": null,
"date_levee": null,
"unite": null,
"culture": null,
"culture_precedante": null,
"cailloux": null,
"reserve_utile": null,
"densite_semis": null,
"sol_type": null,
"sol_profondeur": null,
"sol_travail": null
}
}
Received response:
Request failed with error:
Pictogrammes
Lister
requires authentication
Liste des pictogrammes
Example request:
curl -X GET \
-G "https://api.oss.coop/pictogramme?sort=nom.ASC%2Cid.DESC&page=14&limit=5" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/pictogramme"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "14",
"limit": "5",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/pictogramme',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '14',
'limit'=> '5',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"nom": "produitpascool",
"valeur": "valeur"
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'un pictogramme
Example request:
curl -X GET \
-G "https://api.oss.coop/pictogramme/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/pictogramme/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/pictogramme/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"nom": "produitpascool",
"media": { ... }
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute un pictogramme
Example request:
curl -X POST \
"https://api.oss.coop/pictogramme" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel2","nom":"produitpascool2","media_id":2}'
const url = new URL(
"https://api.oss.coop/pictogramme"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel2",
"nom": "produitpascool2",
"media_id": 2
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/pictogramme',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel2',
'nom' => 'produitpascool2',
'media_id' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel2",
"nom": "produitpascool2",
"media": { ... }
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie un pictogramme
Example request:
curl -X PUT \
"https://api.oss.coop/pictogramme/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel3","nom":"null","media_id":3}'
const url = new URL(
"https://api.oss.coop/pictogramme/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel3",
"nom": "null",
"media_id": 3
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/pictogramme/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel3',
'nom' => 'null',
'media_id' => 3,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel3",
"nom": null,
"media": { ... }
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime un pictogramme
Example request:
curl -X DELETE \
"https://api.oss.coop/pictogramme/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/pictogramme/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/pictogramme/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Produits
Lister
requires authentication
Liste des produits
Example request:
curl -X GET \
-G "https://api.oss.coop/produit?sort=nom.ASC%2Cid.DESC&page=15&limit=18" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/produit"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "15",
"limit": "18",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/produit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '15',
'limit'=> '18',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"euid": "encore un code",
"nom": "test",
"remarques": null,
"informations_complementaires": null,
"annee_inscription": null,
"code_cooperative": null,
"code_invivo": null,
"code_bpe": null,
"code_obtenteur": null,
"code_ctps": null,
"code_gnis": null,
"numero_amm": null,
"numero_homologation": null,
"serie": null,
"typ_var1": null,
"typ_var2": null,
"typ_var3": null,
"typ_var4": null,
"typ_var5": null,
"date_fincommercialisation": null,
"date_finutilisation": null,
"biocontrole": null,
"agriculturebiologique": null,
"actif": true,
"type": {
"id": 1,
"uid": "SANTEVEGETALE",
"designation": "Produit de santé végétale"
},
"famille": null,
"entite": {
"id": 1,
"nom": "Diatem",
"adresse": "2 Rue de Dublin",
"cp": "67300",
"ville": "Schiltigheim",
"actif": true,
"description": "Une entreprise pas comme les autres",
"type": {
"id": 1,
"uid": "CENTRALEACHATNATIONALE",
"designation": "Centrale d'achat nationale"
},
"parent": null,
"pays": null,
"logo_prim": null,
"logo_sec": null,
"logo_ter": null
},
"unite": null,
"norme": null,
"formulation": null,
"categorie_fonctionnelle": null,
"categorie_matieres_constitutives": null
}
]
}
Received response:
Request failed with error:
Lister
requires authentication
Liste des produits des protocoles
Example request:
curl -X GET \
-G "https://api.oss.coop/produit/protocoles?sort=nom.ASC%2Cid.DESC&page=14&limit=2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/produit/protocoles"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "14",
"limit": "2",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/produit/protocoles',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '14',
'limit'=> '2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"euid": "encore un code",
"nom": "test",
"remarques": null,
"informations_complementaires": null,
"annee_inscription": null,
"code_cooperative": null,
"code_invivo": null,
"code_bpe": null,
"code_obtenteur": null,
"code_ctps": null,
"code_gnis": null,
"numero_amm": null,
"numero_homologation": null,
"serie": null,
"typ_var1": null,
"typ_var2": null,
"typ_var3": null,
"typ_var4": null,
"typ_var5": null,
"date_fincommercialisation": null,
"date_finutilisation": null,
"biocontrole": null,
"agriculturebiologique": null,
"actif": true,
"type": {
"id": 1,
"uid": "SANTEVEGETALE",
"designation": "Produit de santé végétale"
},
"famille": null,
"entite": {
"id": 1,
"nom": "Diatem",
"adresse": "2 Rue de Dublin",
"cp": "67300",
"ville": "Schiltigheim",
"actif": true,
"description": "Une entreprise pas comme les autres",
"type": {
"id": 1,
"uid": "CENTRALEACHATNATIONALE",
"designation": "Centrale d'achat nationale"
},
"parent": null,
"pays": null,
"logo_prim": null,
"logo_sec": null,
"logo_ter": null
},
"unite": null,
"norme": null,
"formulation": null,
"categorie_fonctionnelle": null,
"categorie_matieres_constitutives": null
}
]
}
Received response:
Request failed with error:
Lister
requires authentication
Liste des produits des protocoles enfants
Example request:
curl -X GET \
-G "https://api.oss.coop/produit/protocoles_enfants?sort=nom.ASC%2Cid.DESC&page=8&limit=13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/produit/protocoles_enfants"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "8",
"limit": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/produit/protocoles_enfants',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '8',
'limit'=> '13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"euid": "encore un code",
"nom": "test",
"remarques": null,
"informations_complementaires": null,
"annee_inscription": null,
"code_cooperative": null,
"code_invivo": null,
"code_bpe": null,
"code_obtenteur": null,
"code_ctps": null,
"code_gnis": null,
"numero_amm": null,
"numero_homologation": null,
"serie": null,
"typ_var1": null,
"typ_var2": null,
"typ_var3": null,
"typ_var4": null,
"typ_var5": null,
"date_fincommercialisation": null,
"date_finutilisation": null,
"biocontrole": null,
"agriculturebiologique": null,
"actif": true,
"type": {
"id": 1,
"uid": "SANTEVEGETALE",
"designation": "Produit de santé végétale"
},
"famille": null,
"entite": {
"id": 1,
"nom": "Diatem",
"adresse": "2 Rue de Dublin",
"cp": "67300",
"ville": "Schiltigheim",
"actif": true,
"description": "Une entreprise pas comme les autres",
"type": {
"id": 1,
"uid": "CENTRALEACHATNATIONALE",
"designation": "Centrale d'achat nationale"
},
"parent": null,
"pays": null,
"logo_prim": null,
"logo_sec": null,
"logo_ter": null
},
"unite": null,
"norme": null,
"formulation": null,
"categorie_fonctionnelle": null,
"categorie_matieres_constitutives": null
}
]
}
Received response:
Request failed with error:
Lister commandables
requires authentication
Liste des produits commandables
Example request:
curl -X GET \
-G "https://api.oss.coop/produit/commandable?sort=nom.ASC%2Cid.DESC&page=15&limit=12" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/produit/commandable"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "15",
"limit": "12",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/produit/commandable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '15',
'limit'=> '12',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"euid": "encore un code",
"nom": "test",
"remarques": null,
"informations_complementaires": null,
"annee_inscription": null,
"code_cooperative": null,
"code_invivo": null,
"code_bpe": null,
"code_obtenteur": null,
"code_ctps": null,
"code_gnis": null,
"numero_amm": null,
"numero_homologation": null,
"serie": null,
"typ_var1": null,
"typ_var2": null,
"typ_var3": null,
"typ_var4": null,
"typ_var5": null,
"date_fincommercialisation": null,
"date_finutilisation": null,
"biocontrole": null,
"agriculturebiologique": null,
"actif": true,
"type": {
"id": 1,
"uid": "SANTEVEGETALE",
"designation": "Produit de santé végétale"
},
"famille": null,
"entite": {
"id": 1,
"nom": "Diatem",
"adresse": "2 Rue de Dublin",
"cp": "67300",
"ville": "Schiltigheim",
"actif": true,
"description": "Une entreprise pas comme les autres",
"type": {
"id": 1,
"uid": "CENTRALEACHATNATIONALE",
"designation": "Centrale d'achat nationale"
},
"parent": null,
"pays": null,
"logo_prim": null,
"logo_sec": null,
"logo_ter": null
},
"unite": null,
"norme": null,
"formulation": null,
"categorie_fonctionnelle": null,
"categorie_matieres_constitutives": null
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'un produit
Example request:
curl -X GET \
-G "https://api.oss.coop/produit/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/produit/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/produit/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"euid": "encore un code",
"nom": "Kiturien",
"remarques": null,
"informations_complementaires": null,
"annee_inscription": null,
"code_cooperative": null,
"code_invivo": null,
"code_bpe": null,
"code_obtenteur": null,
"code_ctps": null,
"code_gnis": null,
"numero_amm": null,
"numero_homologation": null,
"serie": null,
"typ_var1": null,
"typ_var2": null,
"typ_var3": null,
"typ_var4": null,
"typ_var5": null,
"date_fincommercialisation": null,
"date_finutilisation": null,
"biocontrole": null,
"agriculturebiologique": null,
"actif": true,
"type": {
"id": 1,
"uid": "SANTEVEGETALE",
"designation": "Produit de santé végétale"
},
"famille": null,
"entite": {
"id": 1,
"nom": "Diatem",
"adresse": "2 Rue de Dublin",
"cp": "67300",
"ville": "Schiltigheim",
"actif": true,
"description": "Une entreprise pas comme les autres",
"type": {
"id": 1,
"uid": "CENTRALEACHATNATIONALE",
"designation": "Centrale d'achat nationale"
},
"parent": null,
"pays": null,
"logo_prim": null,
"logo_sec": null,
"logo_ter": null
},
"unite": null,
"norme": null,
"formulation": null,
"categorie_fonctionnelle": null,
"categorie_matieres_constitutives": null
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute un produit
Example request:
curl -X POST \
"https://api.oss.coop/produit" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"eui":"Kitutout","nom":"Kitutout","remarques":"Kitutout tue tout et m\u00eame plus","code_cooperative":"COOP21","type_uid":"SANTEVEGETALE","obtenteur_uid":"FOURNISSEUR1","famille_uid":"id_unique_universel","entite_id":1,"unite_uid":"id_unique_universel","pictogrammes":[{"uid":"1"},{"uid":"1"}],"cultures":[{"uid":"1"},[]],"sous_thematiques":[{"uid":"1"},{"uid":"1"}],"numero_amm":"AMM0123456789","agriculturebiologique":false,"formulation_id":1,"code_invivo":"INVIVO0123456789","code_bpe":"BPE0123456789","date_fincommercialisation":"2150-12-31 12:00:00+0200","date_finutilisation":"2150-12-31 12:00:00+0200","biocontrole":false,"numero_homologation":"H0123456789","norme_id":2,"categorie_fonctionnelle_id":3,"categorie_matieres_constitutives_id":4,"annee_inscription":2021,"informations_complementaires":"Kitutout tue tout et m\u00eame plus que Kituriensauftasante","serie":"S0123456789","typ_var1":"string","typ_var2":"integer","typ_var3":"float","typ_var4":"datetime","typ_var5":"boolean","code_obtenteur":"O0123456789","code_ctps":"CTPS0123456789","code_gnis":"GNIS0123456789"}'
const url = new URL(
"https://api.oss.coop/produit"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"eui": "Kitutout",
"nom": "Kitutout",
"remarques": "Kitutout tue tout et m\u00eame plus",
"code_cooperative": "COOP21",
"type_uid": "SANTEVEGETALE",
"obtenteur_uid": "FOURNISSEUR1",
"famille_uid": "id_unique_universel",
"entite_id": 1,
"unite_uid": "id_unique_universel",
"pictogrammes": [
{
"uid": "1"
},
{
"uid": "1"
}
],
"cultures": [
{
"uid": "1"
},
[]
],
"sous_thematiques": [
{
"uid": "1"
},
{
"uid": "1"
}
],
"numero_amm": "AMM0123456789",
"agriculturebiologique": false,
"formulation_id": 1,
"code_invivo": "INVIVO0123456789",
"code_bpe": "BPE0123456789",
"date_fincommercialisation": "2150-12-31 12:00:00+0200",
"date_finutilisation": "2150-12-31 12:00:00+0200",
"biocontrole": false,
"numero_homologation": "H0123456789",
"norme_id": 2,
"categorie_fonctionnelle_id": 3,
"categorie_matieres_constitutives_id": 4,
"annee_inscription": 2021,
"informations_complementaires": "Kitutout tue tout et m\u00eame plus que Kituriensauftasante",
"serie": "S0123456789",
"typ_var1": "string",
"typ_var2": "integer",
"typ_var3": "float",
"typ_var4": "datetime",
"typ_var5": "boolean",
"code_obtenteur": "O0123456789",
"code_ctps": "CTPS0123456789",
"code_gnis": "GNIS0123456789"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/produit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'eui' => 'Kitutout',
'nom' => 'Kitutout',
'remarques' => 'Kitutout tue tout et même plus',
'code_cooperative' => 'COOP21',
'type_uid' => 'SANTEVEGETALE',
'obtenteur_uid' => 'FOURNISSEUR1',
'famille_uid' => 'id_unique_universel',
'entite_id' => 1,
'unite_uid' => 'id_unique_universel',
'pictogrammes' => [
[
'uid' => '1',
],
[
'uid' => '1',
],
],
'cultures' => [
[
'uid' => '1',
],
[],
],
'sous_thematiques' => [
[
'uid' => '1',
],
[
'uid' => '1',
],
],
'numero_amm' => 'AMM0123456789',
'agriculturebiologique' => false,
'formulation_id' => 1,
'code_invivo' => 'INVIVO0123456789',
'code_bpe' => 'BPE0123456789',
'date_fincommercialisation' => '2150-12-31 12:00:00+0200',
'date_finutilisation' => '2150-12-31 12:00:00+0200',
'biocontrole' => false,
'numero_homologation' => 'H0123456789',
'norme_id' => 2,
'categorie_fonctionnelle_id' => 3,
'categorie_matieres_constitutives_id' => 4,
'annee_inscription' => 2021,
'informations_complementaires' => 'Kitutout tue tout et même plus que Kituriensauftasante',
'serie' => 'S0123456789',
'typ_var1' => 'string',
'typ_var2' => 'integer',
'typ_var3' => 'float',
'typ_var4' => 'datetime',
'typ_var5' => 'boolean',
'code_obtenteur' => 'O0123456789',
'code_ctps' => 'CTPS0123456789',
'code_gnis' => 'GNIS0123456789',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"euid": "encore un autre code",
"nom": "Kitutout",
"remarques": "Kitutout tue tout et même plus",
"informations_complementaires": "Kitutout tue tout et même plus que Kituriensauftasante",
"annee_inscription": 2021,
"code_cooperative": "COOP21",
"code_invivo": "INVIVO0123456789",
"code_bpe": "BPE0123456789",
"code_obtenteur": "O0123456789",
"code_ctps": "CTPS0123456789",
"code_gnis": "GNIS0123456789",
"numero_amm": "AMM0123456789",
"numero_homologation": "H0123456789",
"serie": "S0123456789",
"typ_var1": "string",
"typ_var2": "integer",
"typ_var3": "float",
"typ_var4": "datetime",
"typ_var5": "boolean",
"date_fincommercialisation": "2150-12-31 12:00:00+02",
"date_finutilisation": "2150-12-31 12:00:00+02",
"biocontrole": false,
"agriculturebiologique": false,
"actif": true,
"type": {
"id": 1,
"uid": "SANTEVEGETALE",
"designation": "Produit de santé végétale"
},
"famille": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
},
"entite": {
"id": 1,
"nom": "Diatem",
"adresse": "2 Rue de Dublin",
"cp": "67300",
"ville": "Schiltigheim",
"actif": true,
"description": "Une entreprise pas comme les autres",
"type": {
"id": 1,
"uid": "CENTRALEACHATNATIONALE",
"designation": "Centrale d'achat nationale"
},
"parent": null,
"pays": null,
"logo_prim": null,
"logo_sec": null,
"logo_ter": null
},
"unite": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
},
"norme": {
"id": 2,
"valeur": "norme"
},
"formulation": {
"id": 1,
"valeur": "formulation"
},
"categorie_fonctionnelle": {
"id": 3,
"valeur": "categorie_fonctionnelle"
},
"categorie_matieres_constitutives": {
"id": 4,
"valeur": "categorie_matieres_constitutives"
}
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie un produit
Example request:
curl -X PUT \
"https://api.oss.coop/produit/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"eui":"Kitutout","nom":"Kitutout","remarques":"Kitutout tue tout et m\u00eame plus","code_cooperative":"COOP21","type_uid":"SANTEVEGETALE","obtenteur_uid":"FOURNISSEUR2","famille_uid":"id_unique_universel","entite_id":1,"unite_uid":"id_unique_universel","pictogrammes":[{"uid":"2"},[]],"cultures":[{"uid":"2"},[]],"sous_thematiques":[{"uid":"2"},{"uid":"2"}],"numero_amm":"AMM0123456789","agriculturebiologique":false,"formulation_id":1,"code_invivo":"INVIVO0123456789","code_bpe":"BPE0123456789","date_fincommercialisation":"2150-12-31 12:00:00+0200","date_finutilisation":"2150-12-31 12:00:00+0200","biocontrole":false,"numero_homologation":"H0123456789","norme_id":2,"categorie_fonctionnelle_id":3,"categorie_matieres_constitutives_id":4,"annee_inscription":2021,"informations_complementaires":"Kitutout tue tout et m\u00eame plus que Kituriensauftasante","serie":"S0123456789","typ_var1":"string","typ_var2":"integer","typ_var3":"float","typ_var4":"datetime","typ_var5":"boolean","code_obtenteur":"O0123456789","code_ctps":"CTPS0123456789","code_gnis":"GNIS0123456789"}'
const url = new URL(
"https://api.oss.coop/produit/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"eui": "Kitutout",
"nom": "Kitutout",
"remarques": "Kitutout tue tout et m\u00eame plus",
"code_cooperative": "COOP21",
"type_uid": "SANTEVEGETALE",
"obtenteur_uid": "FOURNISSEUR2",
"famille_uid": "id_unique_universel",
"entite_id": 1,
"unite_uid": "id_unique_universel",
"pictogrammes": [
{
"uid": "2"
},
[]
],
"cultures": [
{
"uid": "2"
},
[]
],
"sous_thematiques": [
{
"uid": "2"
},
{
"uid": "2"
}
],
"numero_amm": "AMM0123456789",
"agriculturebiologique": false,
"formulation_id": 1,
"code_invivo": "INVIVO0123456789",
"code_bpe": "BPE0123456789",
"date_fincommercialisation": "2150-12-31 12:00:00+0200",
"date_finutilisation": "2150-12-31 12:00:00+0200",
"biocontrole": false,
"numero_homologation": "H0123456789",
"norme_id": 2,
"categorie_fonctionnelle_id": 3,
"categorie_matieres_constitutives_id": 4,
"annee_inscription": 2021,
"informations_complementaires": "Kitutout tue tout et m\u00eame plus que Kituriensauftasante",
"serie": "S0123456789",
"typ_var1": "string",
"typ_var2": "integer",
"typ_var3": "float",
"typ_var4": "datetime",
"typ_var5": "boolean",
"code_obtenteur": "O0123456789",
"code_ctps": "CTPS0123456789",
"code_gnis": "GNIS0123456789"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/produit/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'eui' => 'Kitutout',
'nom' => 'Kitutout',
'remarques' => 'Kitutout tue tout et même plus',
'code_cooperative' => 'COOP21',
'type_uid' => 'SANTEVEGETALE',
'obtenteur_uid' => 'FOURNISSEUR2',
'famille_uid' => 'id_unique_universel',
'entite_id' => 1,
'unite_uid' => 'id_unique_universel',
'pictogrammes' => [
[
'uid' => '2',
],
[],
],
'cultures' => [
[
'uid' => '2',
],
[],
],
'sous_thematiques' => [
[
'uid' => '2',
],
[
'uid' => '2',
],
],
'numero_amm' => 'AMM0123456789',
'agriculturebiologique' => false,
'formulation_id' => 1,
'code_invivo' => 'INVIVO0123456789',
'code_bpe' => 'BPE0123456789',
'date_fincommercialisation' => '2150-12-31 12:00:00+0200',
'date_finutilisation' => '2150-12-31 12:00:00+0200',
'biocontrole' => false,
'numero_homologation' => 'H0123456789',
'norme_id' => 2,
'categorie_fonctionnelle_id' => 3,
'categorie_matieres_constitutives_id' => 4,
'annee_inscription' => 2021,
'informations_complementaires' => 'Kitutout tue tout et même plus que Kituriensauftasante',
'serie' => 'S0123456789',
'typ_var1' => 'string',
'typ_var2' => 'integer',
'typ_var3' => 'float',
'typ_var4' => 'datetime',
'typ_var5' => 'boolean',
'code_obtenteur' => 'O0123456789',
'code_ctps' => 'CTPS0123456789',
'code_gnis' => 'GNIS0123456789',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"euid": null,
"nom": "Kitutout",
"remarques": "Kitutout tue tout et même plus",
"informations_complementaires": "Kitutout tue tout et même plus que Kituriensauftasante",
"annee_inscription": 2021,
"code_cooperative": "COOP21",
"code_invivo": "INVIVO0123456789",
"code_bpe": "BPE0123456789",
"code_obtenteur": "O0123456789",
"code_ctps": "CTPS0123456789",
"code_gnis": "GNIS0123456789",
"numero_amm": "AMM0123456789",
"numero_homologation": "H0123456789",
"serie": "S0123456789",
"typ_var1": "string",
"typ_var2": "integer",
"typ_var3": "float",
"typ_var4": "datetime",
"typ_var5": "boolean",
"date_fincommercialisation": "2150-12-31 12:00:00+02",
"date_finutilisation": "2150-12-31 12:00:00+02",
"biocontrole": false,
"agriculturebiologique": false,
"actif": true,
"type": {
"id": 1,
"uid": "SANTEVEGETALE",
"designation": "Produit de santé végétale"
},
"famille": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
},
"entite": {
"id": 1,
"nom": "Diatem",
"adresse": "2 Rue de Dublin",
"cp": "67300",
"ville": "Schiltigheim",
"actif": true,
"description": "Une entreprise pas comme les autres",
"type": {
"id": 1,
"uid": "CENTRALEACHATNATIONALE",
"designation": "Centrale d'achat nationale"
},
"parent": null,
"pays": null,
"logo_prim": null,
"logo_sec": null,
"logo_ter": null
},
"unite": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
},
"norme": {
"id": 2,
"valeur": "norme"
},
"formulation": {
"id": 1,
"valeur": "formulation"
},
"categorie_fonctionnelle": {
"id": 3,
"valeur": "categorie_fonctionnelle"
},
"categorie_matieres_constitutives": {
"id": 4,
"valeur": "categorie_matieres_constitutives"
}
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime un produit
Example request:
curl -X DELETE \
"https://api.oss.coop/produit/17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/produit/17"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/produit/17',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Composant - Lister
requires authentication
Liste des composants d'un produit
Example request:
curl -X GET \
-G "https://api.oss.coop/produit/1/composition" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/produit/1/composition"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/produit/1/composition',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "composant1",
"nom": "composant",
"observation": null,
"pivot": {
"quantite": "12",
"unite": { ... }
},
"produit_type": { ... },
"thematique": { ... }
}
]
}
Received response:
Request failed with error:
Composant - Modifier
requires authentication
Modifie les composants d'un produit
Example request:
curl -X PUT \
"https://api.oss.coop/produit/1/composition" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"composants":[{"uid":"2","quantite":"20","unite_uid":"unite1"},{"uid":"2","quantite":"20","unite_uid":"unite1"}]}'
const url = new URL(
"https://api.oss.coop/produit/1/composition"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"composants": [
{
"uid": "2",
"quantite": "20",
"unite_uid": "unite1"
},
{
"uid": "2",
"quantite": "20",
"unite_uid": "unite1"
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/produit/1/composition',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'composants' => [
[
'uid' => '2',
'quantite' => '20',
'unite_uid' => 'unite1',
],
[
'uid' => '2',
'quantite' => '20',
'unite_uid' => 'unite1',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"uid": "composant2",
"nom": "composant2",
"observation": null,
"pivot": {
"quantite": "20",
"unite": { ... }
},
"produit_type": null,
"thematique": null
}
]
}
Received response:
Request failed with error:
Dose - Lister
requires authentication
Liste des doses d'un produit
Example request:
curl -X GET \
-G "https://api.oss.coop/produit/1/dose?sort=nom.ASC%2Cid.DESC&page=9&limit=15" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/produit/1/dose"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "9",
"limit": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/produit/1/dose',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '9',
'limit'=> '15',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"dose": "12",
"unite": { ... },
"culture": { ... },
"cible": { ... }
}
]
}
Received response:
Request failed with error:
Dose - Voir
requires authentication
Détails d'une dose d'un produit
Example request:
curl -X GET \
-G "https://api.oss.coop/produit/1/dose/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/produit/1/dose/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/produit/1/dose/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"dose": "12",
"unite": { ... },
"culture": { ... },
"cible": { ... }
}
}
Received response:
Request failed with error:
Dose - Ajouter
requires authentication
Ajoute une dose à un produit
Example request:
curl -X POST \
"https://api.oss.coop/produit/1/dose" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"dose":"42","unite_uid":"unite1","culture_uid":"culture1","cible_id":"1"}'
const url = new URL(
"https://api.oss.coop/produit/1/dose"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"dose": "42",
"unite_uid": "unite1",
"culture_uid": "culture1",
"cible_id": "1"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/produit/1/dose',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'dose' => '42',
'unite_uid' => 'unite1',
'culture_uid' => 'culture1',
'cible_id' => '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"dose": "42",
"unite": { ... },
"culture": { ... },
"cible": { ... }
}
}
Received response:
Request failed with error:
Dose - Modifier
requires authentication
Modifie une dose d'un produit
Example request:
curl -X PUT \
"https://api.oss.coop/produit/1/dose/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"dose":"42","unite_uid":"unite1","culture_uid":"null","cible_id":"null"}'
const url = new URL(
"https://api.oss.coop/produit/1/dose/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"dose": "42",
"unite_uid": "unite1",
"culture_uid": "null",
"cible_id": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/produit/1/dose/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'dose' => '42',
'unite_uid' => 'unite1',
'culture_uid' => 'null',
'cible_id' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"dose": "42",
"unite": { ... },
"culture": null,
"cible": null
}
}
Received response:
Request failed with error:
Dose - Supprimer
requires authentication
Supprime une dose d'un produit
Example request:
curl -X DELETE \
"https://api.oss.coop/produit/1/dose/13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/produit/1/dose/13"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/produit/1/dose/13',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Profils
Lister
requires authentication
Liste des profils
Example request:
curl -X GET \
-G "https://api.oss.coop/profil?sort=nom.ASC%2Cid.DESC&page=16&limit=14" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/profil"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "16",
"limit": "14",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/profil',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '16',
'limit'=> '14',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'un profil
Example request:
curl -X GET \
-G "https://api.oss.coop/profil/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/profil/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/profil/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute un profil
Example request:
curl -X POST \
"https://api.oss.coop/profil" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel2","designation":"valeur2"}'
const url = new URL(
"https://api.oss.coop/profil"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel2",
"designation": "valeur2"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/profil',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel2',
'designation' => 'valeur2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel2",
"designation": "valeur2"
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie un profil
Example request:
curl -X PUT \
"https://api.oss.coop/profil/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel3","designation":"valeur3"}'
const url = new URL(
"https://api.oss.coop/profil/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel3",
"designation": "valeur3"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/profil/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel3',
'designation' => 'valeur3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel3",
"designation": "valeur3"
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime un profil
Example request:
curl -X DELETE \
"https://api.oss.coop/profil/18" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/profil/18"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/profil/18',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Droit - Lister
requires authentication
Liste des droits d'un profil
Example request:
curl -X GET \
-G "https://api.oss.coop/profil/1/droit" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/profil/1/droit"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/profil/1/droit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"categorie": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
},
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Droit - Modifier
requires authentication
Modifie les droits d'un profil
Example request:
curl -X PUT \
"https://api.oss.coop/profil/1/droit" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"droits":[{"uid":"id_unique_universel2"},{"uid":"id_unique_universel2"}]}'
const url = new URL(
"https://api.oss.coop/profil/1/droit"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"droits": [
{
"uid": "id_unique_universel2"
},
{
"uid": "id_unique_universel2"
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/profil/1/droit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'droits' => [
[
'uid' => 'id_unique_universel2',
],
[
'uid' => 'id_unique_universel2',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"categorie": {
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
},
"uid": "id_unique_universel2",
"designation": "valeur2"
}
]
}
Received response:
Request failed with error:
Type Entité - Lister
requires authentication
Liste des types d'entités d'un profil
Example request:
curl -X GET \
-G "https://api.oss.coop/profil/1/entite_type" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/profil/1/entite_type"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/profil/1/entite_type',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Type Entité - Modifier
requires authentication
Modifie les types d'entités d'un profil
Example request:
curl -X PUT \
"https://api.oss.coop/profil/1/entite_type" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"entite_types":[{"uid":"id_unique_universel2"},{"uid":"id_unique_universel2"}]}'
const url = new URL(
"https://api.oss.coop/profil/1/entite_type"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"entite_types": [
{
"uid": "id_unique_universel2"
},
{
"uid": "id_unique_universel2"
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/profil/1/entite_type',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'entite_types' => [
[
'uid' => 'id_unique_universel2',
],
[
'uid' => 'id_unique_universel2',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"uid": "id_unique_universel2",
"designation": "valeur2"
}
]
}
Received response:
Request failed with error:
Protocoles
Lister
requires authentication
Liste des protocoles créés ou acceptés
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole?sort=nom.ASC%2Cid.DESC&page=2&limit=19" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "2",
"limit": "19",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '2',
'limit'=> '19',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"titre": "Super protocole",
"donneur_ordre": "Mathieu",
"donneur_ordre_code": "God",
"donneur_ordre_contact": "Grand bureau",
"numero_devis": "AZERTYUIOP123",
"commentaires": "Un commentaire",
"objectifs": "Finir le dev de la phase C",
"situation_a_favoriser": "La glande",
"secteur_geographique": "Le lac",
"orientation_semis": "↑↑↓↓←→←→BA",
"type_sol": "Cendres",
"mode_appl_phyto": "La j'ai pas d'idée",
"methodes_internes": "Pas mieux",
"methode_ceb_reference": "Mais c'est quoi ces noms de champs ?",
"guidelines_oepp_reference": "Quelqu'un comprend ?",
"observations": "ça je sais, c'est une observation mais pas un commentaire",
"couvertures_possibles": "Couette",
"couvertures_interdites": "Peau d'ours vivant",
"tests_statistiques": "Mes valeurs de champs sont-elles drôles ?",
"national_qualification": "Concour de dad jokes !",
"type_qualification": "La grosse poilade !",
"objectif_qualification": "Être drôle avec des blagues pourrites",
"code_national": "FR",
"code_regional": "AL",
"code_entite": "Dia",
"surface_microparcelles": "0.4",
"volume_bouillie": "12.4",
"nombre_blocs": 145,
"agriculture_biologique": true,
"utilisation_phyto": true,
"contamination_artificielle": true,
"brumisation": true,
"prestation_service": true,
"agriculture_biologique": false,
"bpe": true,
"partage_accepte": null,
"date_partage": null,
"type": { ... },
"statut": { ... },
"dispositif_experimental": { ... },
"thematique": { ... },
"unite": { ... },
"implantation_temoins": { ... },
"annee_recolte": { ... },
"declaration_protocole": { ... }
"cibles": [ ... ]
}
]
}
Received response:
Request failed with error:
Lister - Paratages
requires authentication
Liste des protocoles partagés avec mon entité
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/partage?sort=nom.ASC%2Cid.DESC&page=1&limit=4" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/partage"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "1",
"limit": "4",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/partage',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '1',
'limit'=> '4',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"titre": "Super protocole",
"donneur_ordre": "Mathieu",
"donneur_ordre_code": "God",
"donneur_ordre_contact": "Grand bureau",
"numero_devis": "AZERTYUIOP123",
"commentaires": "Un commentaire",
"objectifs": "Finir le dev de la phase C",
"situation_a_favoriser": "La glande",
"secteur_geographique": "Le lac",
"orientation_semis": "↑↑↓↓←→←→BA",
"type_sol": "Cendres",
"mode_appl_phyto": "La j'ai pas d'idée",
"methodes_internes": "Pas mieux",
"methode_ceb_reference": "Mais c'est quoi ces noms de champs ?",
"guidelines_oepp_reference": "Quelqu'un comprend ?",
"observations": "ça je sais, c'est une observation mais pas un commentaire",
"couvertures_possibles": "Couette",
"couvertures_interdites": "Peau d'ours vivant",
"tests_statistiques": "Mes valeurs de champs sont-elles drôles ?",
"national_qualification": "Concour de dad jokes !",
"type_qualification": "La grosse poilade !",
"objectif_qualification": "Être drôle avec des blagues pourrites",
"code_national": "FR",
"code_regional": "AL",
"code_entite": "Dia",
"surface_microparcelles": "0.4",
"volume_bouillie": "12.4",
"nombre_blocs": 145,
"agriculture_biologique": true,
"utilisation_phyto": true,
"contamination_artificielle": true,
"brumisation": true,
"prestation_service": true,
"agriculture_biologique": false,
"bpe": true,
"partage_accepte": null,
"date_partage": null,
"type": { ... },
"statut": { ... },
"dispositif_experimental": { ... },
"thematique": { ... },
"unite": { ... },
"implantation_temoins": { ... },
"annee_recolte": { ... },
"declaration_protocole": { ... }
"cibles": [ ... ]
}
]
}
Received response:
Request failed with error:
Lister - Enfants accèptés
requires authentication
Liste des protocoles des entitées enfant
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/enfants?sort=nom.ASC%2Cid.DESC&page=7&limit=9" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/enfants"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "7",
"limit": "9",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/enfants',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '7',
'limit'=> '9',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"titre": "Super protocole",
"donneur_ordre": "Mathieu",
"donneur_ordre_code": "God",
"donneur_ordre_contact": "Grand bureau",
"numero_devis": "AZERTYUIOP123",
"commentaires": "Un commentaire",
"objectifs": "Finir le dev de la phase C",
"situation_a_favoriser": "La glande",
"secteur_geographique": "Le lac",
"orientation_semis": "↑↑↓↓←→←→BA",
"type_sol": "Cendres",
"mode_appl_phyto": "La j'ai pas d'idée",
"methodes_internes": "Pas mieux",
"methode_ceb_reference": "Mais c'est quoi ces noms de champs ?",
"guidelines_oepp_reference": "Quelqu'un comprend ?",
"observations": "ça je sais, c'est une observation mais pas un commentaire",
"couvertures_possibles": "Couette",
"couvertures_interdites": "Peau d'ours vivant",
"tests_statistiques": "Mes valeurs de champs sont-elles drôles ?",
"national_qualification": "Concour de dad jokes !",
"type_qualification": "La grosse poilade !",
"objectif_qualification": "Être drôle avec des blagues pourrites",
"code_national": "FR",
"code_regional": "AL",
"code_entite": "Dia",
"surface_microparcelles": "0.4",
"volume_bouillie": "12.4",
"nombre_blocs": 145,
"agriculture_biologique": true,
"utilisation_phyto": true,
"contamination_artificielle": true,
"brumisation": true,
"prestation_service": true,
"agriculture_biologique": false,
"bpe": true,
"partage_accepte": null,
"date_partage": null,
"type": { ... },
"statut": { ... },
"dispositif_experimental": { ... },
"thematique": { ... },
"unite": { ... },
"implantation_temoins": { ... },
"annee_recolte": { ... },
"declaration_protocole": { ... }
"cibles": [ ... ]
}
]
}
Received response:
Request failed with error:
Lister - Enfants
requires authentication
Liste des protocoles partagés de mon entité
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/{uid:[0-9]+}/enfants?sort=nom.ASC%2Cid.DESC&page=17&limit=15" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/{uid:[0-9]+}/enfants"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "17",
"limit": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/{uid:[0-9]+}/enfants',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '17',
'limit'=> '15',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"titre": "Super protocole",
"donneur_ordre": "Mathieu",
"donneur_ordre_code": "God",
"donneur_ordre_contact": "Grand bureau",
"numero_devis": "AZERTYUIOP123",
"commentaires": "Un commentaire",
"objectifs": "Finir le dev de la phase C",
"situation_a_favoriser": "La glande",
"secteur_geographique": "Le lac",
"orientation_semis": "↑↑↓↓←→←→BA",
"type_sol": "Cendres",
"mode_appl_phyto": "La j'ai pas d'idée",
"methodes_internes": "Pas mieux",
"methode_ceb_reference": "Mais c'est quoi ces noms de champs ?",
"guidelines_oepp_reference": "Quelqu'un comprend ?",
"observations": "ça je sais, c'est une observation mais pas un commentaire",
"couvertures_possibles": "Couette",
"couvertures_interdites": "Peau d'ours vivant",
"tests_statistiques": "Mes valeurs de champs sont-elles drôles ?",
"national_qualification": "Concour de dad jokes !",
"type_qualification": "La grosse poilade !",
"objectif_qualification": "Être drôle avec des blagues pourrites",
"code_national": "FR",
"code_regional": "AL",
"code_entite": "Dia",
"surface_microparcelles": "0.4",
"volume_bouillie": "12.4",
"nombre_blocs": 145,
"agriculture_biologique": true,
"utilisation_phyto": true,
"contamination_artificielle": true,
"brumisation": true,
"prestation_service": true,
"agriculture_biologique": false,
"bpe": true,
"partage_accepte": null,
"date_partage": null,
"type": { ... },
"statut": { ... },
"dispositif_experimental": { ... },
"thematique": { ... },
"unite": { ... },
"implantation_temoins": { ... },
"annee_recolte": { ... },
"declaration_protocole": { ... }
"cibles": [ ... ]
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"titre": "Super protocole",
"donneur_ordre": "Mathieu",
"donneur_ordre_code": "God",
"donneur_ordre_contact": "Grand bureau",
"numero_devis": "AZERTYUIOP123",
"commentaires": "Un commentaire",
"objectifs": "Finir le dev de la phase C",
"situation_a_favoriser": "La glande",
"secteur_geographique": "Le lac",
"orientation_semis": "↑↑↓↓←→←→BA",
"type_sol": "Cendres",
"mode_appl_phyto": "La j'ai pas d'idée",
"methodes_internes": "Pas mieux",
"methode_ceb_reference": "Mais c'est quoi ces noms de champs ?",
"guidelines_oepp_reference": "Quelqu'un comprend ?",
"observations": "ça je sais, c'est une observation mais pas un commentaire",
"couvertures_possibles": "Couette",
"couvertures_interdites": "Peau d'ours vivant",
"tests_statistiques": "Mes valeurs de champs sont-elles drôles ?",
"national_qualification": "Concour de dad jokes !",
"type_qualification": "La grosse poilade !",
"objectif_qualification": "Être drôle avec des blagues pourrites",
"code_national": "FR",
"code_regional": "AL",
"code_entite": "Dia",
"surface_microparcelles": "0.4",
"volume_bouillie": "12.4",
"nombre_blocs": 145,
"agriculture_biologique": true,
"utilisation_phyto": true,
"contamination_artificielle": true,
"brumisation": true,
"prestation_service": true,
"agriculture_biologique": false,
"bpe": true,
"partage_accepte": null,
"date_partage": null,
"type": { ... },
"statut": { ... },
"dispositif_experimental": { ... },
"thematique": { ... },
"unite": { ... },
"implantation_temoins": { ... },
"annee_recolte": { ... },
"declaration_protocole": { ... }
"cibles": [ ... ]
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"titre":"Protocole2","donneur_ordre":"Barbapapa","donneur_ordre_code":"ULAHUP","donneur_ordre_contact":"Barbatruc","numero_devis":"AZERTYUIOP789","commentaires":"Un autre commentaire","objectifs":"Passer au dev de la phase D","situation_a_favoriser":"La communication !","secteur_geographique":"Sous l'oc\u00e9an","orientation_semis":"Vers la mecque","type_sol":"Tapis","mode_appl_phyto":"Avion","methodes_internes":"L'imagination me manque","methode_ceb_reference":"Je renonce \u00e0 tout... \u00e0 l'amour, aux plaisirs, \u00e0 la vie...","guidelines_oepp_reference":"Beware, beware. I am the prince of drakness. Beware ! Beware !","observations":"Comme commentaire \u00e9tait d\u00e9j\u00e0 utilis\u00e9...","couvertures_possibles":"Y'a des jours comme \u00e7a, on ne sait plus qui on est ni o\u00f9 on va...","couvertures_interdites":"Qui suis-je ? O\u00f9 vais-je ? Dans quel \u00e9tat j'erre...","tests_statistiques":"Le nombre moyen d'imb\u00e9ciles qui vont lire les d\u00e9scriptifs de la doc","national_qualification":"Celui qui \u00e0 lu le commentaire de param\u00e8tre pr\u00e9c\u00e9dent \u00e0 \u00e9t\u00e9 nationalement qualifi\u00e9 d'imb\u00e9cile...","type_qualification":"Imb\u00e9cile est une insulte mais c'est gentil quand c'est \u00e9crit avec hamour (c'est de l'amour dr\u00f4le, une blague orthographique quoi)","objectif_qualification":"Faire rire, pleurer, ... Mais surtout, m'occuper","code_national":"Franchemant, qui aime \u00e9crire de la doc ?","code_regional":"Sur 4h de dev, je passe 1h \u00e0 code et 3h \u00e0 faire la doc...","code_entite":"Je suis gav\u00e9. Comme mort \u00e0 l'int\u00e9rieur","surface_microparcelles":"D\u00e9senchant\u00e9, cette documentation m'a vol\u00e9 mes r\u00eaves","volume_bouillie":"Un volume de bouillie ? S\u00e9rieusement ?","nombre_blocs":42,"agriculture_biologique":false,"utilisation_phyto":false,"prestation_service":false,"contamination_artificielle":false,"brumisation":false,"bpe":false,"type_uid":"type1","dispositif_experimental_uid":"de1","thematique_uid":"thematique1","unite_uid":"unite1","implantation_temoins_id":1,"annee_recolte_id":1,"declaration_protocole_id":1,"sous_thematiques":[{"uid":"1"},[]],"cultures":[{"uid":"1"},{"uid":"1"}],"cibles":[{"id":1},{"id":1}]}'
const url = new URL(
"https://api.oss.coop/protocole"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"titre": "Protocole2",
"donneur_ordre": "Barbapapa",
"donneur_ordre_code": "ULAHUP",
"donneur_ordre_contact": "Barbatruc",
"numero_devis": "AZERTYUIOP789",
"commentaires": "Un autre commentaire",
"objectifs": "Passer au dev de la phase D",
"situation_a_favoriser": "La communication !",
"secteur_geographique": "Sous l'oc\u00e9an",
"orientation_semis": "Vers la mecque",
"type_sol": "Tapis",
"mode_appl_phyto": "Avion",
"methodes_internes": "L'imagination me manque",
"methode_ceb_reference": "Je renonce \u00e0 tout... \u00e0 l'amour, aux plaisirs, \u00e0 la vie...",
"guidelines_oepp_reference": "Beware, beware. I am the prince of drakness. Beware ! Beware !",
"observations": "Comme commentaire \u00e9tait d\u00e9j\u00e0 utilis\u00e9...",
"couvertures_possibles": "Y'a des jours comme \u00e7a, on ne sait plus qui on est ni o\u00f9 on va...",
"couvertures_interdites": "Qui suis-je ? O\u00f9 vais-je ? Dans quel \u00e9tat j'erre...",
"tests_statistiques": "Le nombre moyen d'imb\u00e9ciles qui vont lire les d\u00e9scriptifs de la doc",
"national_qualification": "Celui qui \u00e0 lu le commentaire de param\u00e8tre pr\u00e9c\u00e9dent \u00e0 \u00e9t\u00e9 nationalement qualifi\u00e9 d'imb\u00e9cile...",
"type_qualification": "Imb\u00e9cile est une insulte mais c'est gentil quand c'est \u00e9crit avec hamour (c'est de l'amour dr\u00f4le, une blague orthographique quoi)",
"objectif_qualification": "Faire rire, pleurer, ... Mais surtout, m'occuper",
"code_national": "Franchemant, qui aime \u00e9crire de la doc ?",
"code_regional": "Sur 4h de dev, je passe 1h \u00e0 code et 3h \u00e0 faire la doc...",
"code_entite": "Je suis gav\u00e9. Comme mort \u00e0 l'int\u00e9rieur",
"surface_microparcelles": "D\u00e9senchant\u00e9, cette documentation m'a vol\u00e9 mes r\u00eaves",
"volume_bouillie": "Un volume de bouillie ? S\u00e9rieusement ?",
"nombre_blocs": 42,
"agriculture_biologique": false,
"utilisation_phyto": false,
"prestation_service": false,
"contamination_artificielle": false,
"brumisation": false,
"bpe": false,
"type_uid": "type1",
"dispositif_experimental_uid": "de1",
"thematique_uid": "thematique1",
"unite_uid": "unite1",
"implantation_temoins_id": 1,
"annee_recolte_id": 1,
"declaration_protocole_id": 1,
"sous_thematiques": [
{
"uid": "1"
},
[]
],
"cultures": [
{
"uid": "1"
},
{
"uid": "1"
}
],
"cibles": [
{
"id": 1
},
{
"id": 1
}
]
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'titre' => 'Protocole2',
'donneur_ordre' => 'Barbapapa',
'donneur_ordre_code' => 'ULAHUP',
'donneur_ordre_contact' => 'Barbatruc',
'numero_devis' => 'AZERTYUIOP789',
'commentaires' => 'Un autre commentaire',
'objectifs' => 'Passer au dev de la phase D',
'situation_a_favoriser' => 'La communication !',
'secteur_geographique' => 'Sous l\'océan',
'orientation_semis' => 'Vers la mecque',
'type_sol' => 'Tapis',
'mode_appl_phyto' => 'Avion',
'methodes_internes' => 'L\'imagination me manque',
'methode_ceb_reference' => 'Je renonce à tout... à l\'amour, aux plaisirs, à la vie...',
'guidelines_oepp_reference' => 'Beware, beware. I am the prince of drakness. Beware ! Beware !',
'observations' => 'Comme commentaire était déjà utilisé...',
'couvertures_possibles' => 'Y\'a des jours comme ça, on ne sait plus qui on est ni où on va...',
'couvertures_interdites' => 'Qui suis-je ? Où vais-je ? Dans quel état j\'erre...',
'tests_statistiques' => 'Le nombre moyen d\'imbéciles qui vont lire les déscriptifs de la doc',
'national_qualification' => 'Celui qui à lu le commentaire de paramètre précédent à été nationalement qualifié d\'imbécile...',
'type_qualification' => 'Imbécile est une insulte mais c\'est gentil quand c\'est écrit avec hamour (c\'est de l\'amour drôle, une blague orthographique quoi)',
'objectif_qualification' => 'Faire rire, pleurer, ... Mais surtout, m\'occuper',
'code_national' => 'Franchemant, qui aime écrire de la doc ?',
'code_regional' => 'Sur 4h de dev, je passe 1h à code et 3h à faire la doc...',
'code_entite' => 'Je suis gavé. Comme mort à l\'intérieur',
'surface_microparcelles' => 'Désenchanté, cette documentation m\'a volé mes rêves',
'volume_bouillie' => 'Un volume de bouillie ? Sérieusement ?',
'nombre_blocs' => 42,
'agriculture_biologique' => false,
'utilisation_phyto' => false,
'prestation_service' => false,
'contamination_artificielle' => false,
'brumisation' => false,
'bpe' => false,
'type_uid' => 'type1',
'dispositif_experimental_uid' => 'de1',
'thematique_uid' => 'thematique1',
'unite_uid' => 'unite1',
'implantation_temoins_id' => 1,
'annee_recolte_id' => 1,
'declaration_protocole_id' => 1,
'sous_thematiques' => [
[
'uid' => '1',
],
[],
],
'cultures' => [
[
'uid' => '1',
],
[
'uid' => '1',
],
],
'cibles' => [
[
'id' => 1,
],
[
'id' => 1,
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"titre": "Protocole2",
"donneur_ordre": "Barbapapa",
"donneur_ordre_code": "ULAHUP",
"donneur_ordre_contact": "Barbatruc",
"numero_devis": "AZERTYUIOP789",
"commentaires": "Un autre commentaire",
"objectifs": "Passer au dev de la phase DC",
"situation_a_favoriser": "La communication !",
"secteur_geographique": "Sous l'océan",
"orientation_semis": "Vers la mecque",
"type_sol": "Tapis",
"mode_appl_phyto": "Avion",
"methodes_internes": "L'imagination me manque",
"methode_ceb_reference": "Je renonce à tout... à l'amour, aux plaisirs, à la vie...",
"guidelines_oepp_reference": "Beware, beware. I am the prince of drakness. Beware ! Beware !",
"observations": "Comme commentaire était déjà utilisé...",
"couvertures_possibles": "Y'a des jours comme ça, on ne sait plus qui on est ni où on va...",
"couvertures_interdites": "Qui suis-je ? Où vais-je ? Dans quel état j'erre...",
"tests_statistiques": "Le nombre moyen d'imbéciles qui vont lire les déscriptifs de la doc",
"national_qualification": "Celui qui à lu le commentaire de paramètre précédent à été nationalement qualifié d'imbécile...",
"type_qualification": "Imbécile est une insulte mais c'est gentil quand c'est écrit avec hamour (c'est de l'amour drôle)",
"objectif_qualification": "Faire rire, pleurer, ... Mais surtout, m'occuper",
"code_national": "Franchemant, qui aime écrire de la doc ?",
"code_regional": "Sur 4h de dev, je passe 1h à code et 3h à faire la doc...",
"code_entite": "Je suis gavé. Comme mort à l'intérieur",
"surface_microparcelles": "Désenchanté, cette documentation m'a volé mes rêves",
"volume_bouillie": "Un volume de bouillie ? Sérieusement ?",
"nombre_blocs": 42,
"agriculture_biologique": false,
"utilisation_phyto": false,
"contamination_artificielle": false,
"brumisation": false,
"prestation_service": false,
"agriculture_biologique": false,
"bpe": false,
"partage_accepte": null,
"date_partage": "2021-06-14 17:27:35.911688+02",
"type": { ... },
"statut": { ... },
"dispositif_experimental": { ... },
"thematique": { ... },
"unite": { ... },
"implantation_temoins": { ... },
"annee_recolte": { ... },
"declaration_protocole": { ... },
"cibles": [ ... ]
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"titre":"Protocole2","donneur_ordre":"Barbapapa","donneur_ordre_code":"ULAHUP","donneur_ordre_contact":"Barbatruc","numero_devis":"AZERTYUIOP789","commentaires":"Un autre commentaire","objectifs":"Passer au dev de la phase D","situation_a_favoriser":"La communication !","secteur_geographique":"Sous l'oc\u00e9an","orientation_semis":"Vers la mecque","type_sol":"Tapis","mode_appl_phyto":"Avion","methodes_internes":"L'imagination me manque","methode_ceb_reference":"Je renonce \u00e0 tout... \u00e0 l'amour, aux plaisirs, \u00e0 la vie...","guidelines_oepp_reference":"Beware, beware. I am the prince of drakness. Beware ! Beware !","observations":"Comme commentaire \u00e9tait d\u00e9j\u00e0 utilis\u00e9...","couvertures_possibles":"Y'a des jours comme \u00e7a, on ne sait plus qui on est ni o\u00f9 on va...","couvertures_interdites":"Qui suis-je ? O\u00f9 vais-je ? Dans quel \u00e9tat j'erre...","tests_statistiques":"Le nombre moyen d'imb\u00e9ciles qui vont lire les d\u00e9scriptifs de la doc","national_qualification":"Celui qui \u00e0 lu le commentaire de param\u00e8tre pr\u00e9c\u00e9dent \u00e0 \u00e9t\u00e9 nationalement qualifi\u00e9 d'imb\u00e9cile...","type_qualification":"Imb\u00e9cile est une insulte mais c'est gentil quand c'est \u00e9crit avec hamour (c'est de l'amour dr\u00f4le, une blague orthographique quoi)","objectif_qualification":"Faire rire, pleurer, ... Mais surtout, m'occuper","code_national":"Franchemant, qui aime \u00e9crire de la doc ?","code_regional":"Sur 4h de dev, je passe 1h \u00e0 code et 3h \u00e0 faire la doc...","code_entite":"Je suis gav\u00e9. Comme mort \u00e0 l'int\u00e9rieur","surface_microparcelles":"D\u00e9senchant\u00e9, cette documentation m'a vol\u00e9 mes r\u00eaves","volume_bouillie":"Un volume de bouillie ? S\u00e9rieusement ?","nombre_blocs":42,"agriculture_biologique":true,"utilisation_phyto":false,"prestation_service":false,"contamination_artificielle":false,"brumisation":false,"bpe":false,"type_uid":"type1","dispositif_experimental_uid":"de1","thematique_uid":"thematique1","unite_uid":"unite1","implantation_temoins_id":1,"annee_recolte_id":1,"declaration_protocole_id":1,"sous_thematiques":[{"uid":"2"},[]],"cultures":[{"uid":"2"},{"uid":"2"}],"cibles":[{"id":1},{"id":1}]}'
const url = new URL(
"https://api.oss.coop/protocole/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"titre": "Protocole2",
"donneur_ordre": "Barbapapa",
"donneur_ordre_code": "ULAHUP",
"donneur_ordre_contact": "Barbatruc",
"numero_devis": "AZERTYUIOP789",
"commentaires": "Un autre commentaire",
"objectifs": "Passer au dev de la phase D",
"situation_a_favoriser": "La communication !",
"secteur_geographique": "Sous l'oc\u00e9an",
"orientation_semis": "Vers la mecque",
"type_sol": "Tapis",
"mode_appl_phyto": "Avion",
"methodes_internes": "L'imagination me manque",
"methode_ceb_reference": "Je renonce \u00e0 tout... \u00e0 l'amour, aux plaisirs, \u00e0 la vie...",
"guidelines_oepp_reference": "Beware, beware. I am the prince of drakness. Beware ! Beware !",
"observations": "Comme commentaire \u00e9tait d\u00e9j\u00e0 utilis\u00e9...",
"couvertures_possibles": "Y'a des jours comme \u00e7a, on ne sait plus qui on est ni o\u00f9 on va...",
"couvertures_interdites": "Qui suis-je ? O\u00f9 vais-je ? Dans quel \u00e9tat j'erre...",
"tests_statistiques": "Le nombre moyen d'imb\u00e9ciles qui vont lire les d\u00e9scriptifs de la doc",
"national_qualification": "Celui qui \u00e0 lu le commentaire de param\u00e8tre pr\u00e9c\u00e9dent \u00e0 \u00e9t\u00e9 nationalement qualifi\u00e9 d'imb\u00e9cile...",
"type_qualification": "Imb\u00e9cile est une insulte mais c'est gentil quand c'est \u00e9crit avec hamour (c'est de l'amour dr\u00f4le, une blague orthographique quoi)",
"objectif_qualification": "Faire rire, pleurer, ... Mais surtout, m'occuper",
"code_national": "Franchemant, qui aime \u00e9crire de la doc ?",
"code_regional": "Sur 4h de dev, je passe 1h \u00e0 code et 3h \u00e0 faire la doc...",
"code_entite": "Je suis gav\u00e9. Comme mort \u00e0 l'int\u00e9rieur",
"surface_microparcelles": "D\u00e9senchant\u00e9, cette documentation m'a vol\u00e9 mes r\u00eaves",
"volume_bouillie": "Un volume de bouillie ? S\u00e9rieusement ?",
"nombre_blocs": 42,
"agriculture_biologique": true,
"utilisation_phyto": false,
"prestation_service": false,
"contamination_artificielle": false,
"brumisation": false,
"bpe": false,
"type_uid": "type1",
"dispositif_experimental_uid": "de1",
"thematique_uid": "thematique1",
"unite_uid": "unite1",
"implantation_temoins_id": 1,
"annee_recolte_id": 1,
"declaration_protocole_id": 1,
"sous_thematiques": [
{
"uid": "2"
},
[]
],
"cultures": [
{
"uid": "2"
},
{
"uid": "2"
}
],
"cibles": [
{
"id": 1
},
{
"id": 1
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'titre' => 'Protocole2',
'donneur_ordre' => 'Barbapapa',
'donneur_ordre_code' => 'ULAHUP',
'donneur_ordre_contact' => 'Barbatruc',
'numero_devis' => 'AZERTYUIOP789',
'commentaires' => 'Un autre commentaire',
'objectifs' => 'Passer au dev de la phase D',
'situation_a_favoriser' => 'La communication !',
'secteur_geographique' => 'Sous l\'océan',
'orientation_semis' => 'Vers la mecque',
'type_sol' => 'Tapis',
'mode_appl_phyto' => 'Avion',
'methodes_internes' => 'L\'imagination me manque',
'methode_ceb_reference' => 'Je renonce à tout... à l\'amour, aux plaisirs, à la vie...',
'guidelines_oepp_reference' => 'Beware, beware. I am the prince of drakness. Beware ! Beware !',
'observations' => 'Comme commentaire était déjà utilisé...',
'couvertures_possibles' => 'Y\'a des jours comme ça, on ne sait plus qui on est ni où on va...',
'couvertures_interdites' => 'Qui suis-je ? Où vais-je ? Dans quel état j\'erre...',
'tests_statistiques' => 'Le nombre moyen d\'imbéciles qui vont lire les déscriptifs de la doc',
'national_qualification' => 'Celui qui à lu le commentaire de paramètre précédent à été nationalement qualifié d\'imbécile...',
'type_qualification' => 'Imbécile est une insulte mais c\'est gentil quand c\'est écrit avec hamour (c\'est de l\'amour drôle, une blague orthographique quoi)',
'objectif_qualification' => 'Faire rire, pleurer, ... Mais surtout, m\'occuper',
'code_national' => 'Franchemant, qui aime écrire de la doc ?',
'code_regional' => 'Sur 4h de dev, je passe 1h à code et 3h à faire la doc...',
'code_entite' => 'Je suis gavé. Comme mort à l\'intérieur',
'surface_microparcelles' => 'Désenchanté, cette documentation m\'a volé mes rêves',
'volume_bouillie' => 'Un volume de bouillie ? Sérieusement ?',
'nombre_blocs' => 42,
'agriculture_biologique' => true,
'utilisation_phyto' => false,
'prestation_service' => false,
'contamination_artificielle' => false,
'brumisation' => false,
'bpe' => false,
'type_uid' => 'type1',
'dispositif_experimental_uid' => 'de1',
'thematique_uid' => 'thematique1',
'unite_uid' => 'unite1',
'implantation_temoins_id' => 1,
'annee_recolte_id' => 1,
'declaration_protocole_id' => 1,
'sous_thematiques' => [
[
'uid' => '2',
],
[],
],
'cultures' => [
[
'uid' => '2',
],
[
'uid' => '2',
],
],
'cibles' => [
[
'id' => 1,
],
[
'id' => 1,
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"titre": "Protocole2",
"donneur_ordre": "Barbapapa",
"donneur_ordre_code": "ULAHUP",
"donneur_ordre_contact": "Barbatruc",
"numero_devis": "AZERTYUIOP789",
"commentaires": "Un autre commentaire",
"objectifs": "Passer au dev de la phase DC",
"situation_a_favoriser": "La communication !",
"secteur_geographique": "Sous l'océan",
"orientation_semis": "Vers la mecque",
"type_sol": "Tapis",
"mode_appl_phyto": "Avion",
"methodes_internes": "L'imagination me manque",
"methode_ceb_reference": "Je renonce à tout... à l'amour, aux plaisirs, à la vie...",
"guidelines_oepp_reference": "Beware, beware. I am the prince of drakness. Beware ! Beware !",
"observations": "Comme commentaire était déjà utilisé...",
"couvertures_possibles": "Y'a des jours comme ça, on ne sait plus qui on est ni où on va...",
"couvertures_interdites": "Qui suis-je ? Où vais-je ? Dans quel état j'erre...",
"tests_statistiques": "Le nombre moyen d'imbéciles qui vont lire les déscriptifs de la doc",
"national_qualification": "Celui qui à lu le commentaire de paramètre précédent à été nationalement qualifié d'imbécile...",
"type_qualification": "Imbécile est une insulte mais c'est gentil quand c'est écrit avec hamour (c'est de l'amour drôle)",
"objectif_qualification": "Faire rire, pleurer, ... Mais surtout, m'occuper",
"code_national": "Franchemant, qui aime écrire de la doc ?",
"code_regional": "Sur 4h de dev, je passe 1h à code et 3h à faire la doc...",
"code_entite": "Je suis gavé. Comme mort à l'intérieur",
"surface_microparcelles": "Désenchanté, cette documentation m'a volé mes rêves",
"volume_bouillie": "Un volume de bouillie ? Sérieusement ?",
"nombre_blocs": 42,
"agriculture_biologique": false,
"utilisation_phyto": false,
"contamination_artificielle": false,
"brumisation": false,
"prestation_service": false,
"partage_accepte": true,
"date_partage": "2021-06-14 17:27:35.911688+02",
"agriculture_biologique": true,
"bpe": false,
"type": { ... },
"statut": { ... },
"dispositif_experimental": { ... },
"thematique": { ... },
"unite": { ... },
"implantation_temoins": { ... },
"annee_recolte": { ... },
"declaration_protocole": { ... },
"cibles": [ ... ]
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime un protocole
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Partager
requires authentication
Partage un protocole
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/2/partager" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"entite_id":1,"modalites":[{"id":"2"},[]]}'
const url = new URL(
"https://api.oss.coop/protocole/2/partager"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"entite_id": 1,
"modalites": [
{
"id": "2"
},
[]
]
}
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/2/partager',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'entite_id' => 1,
'modalites' => [
[
'id' => '2',
],
[],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Dupliquer
requires authentication
Duplique un protocole
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/2/dupliquer" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"modalites":[{"id":"2"},[]]}'
const url = new URL(
"https://api.oss.coop/protocole/2/dupliquer"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"modalites": [
{
"id": "2"
},
[]
]
}
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/2/dupliquer',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'modalites' => [
[
'id' => '2',
],
[],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Reconduit - Années
requires authentication
Liste des années disponnibles pour la recondution du protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/2/reconduire/annees" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/2/reconduire/annees"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/2/reconduire/annees',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Reconduit
requires authentication
Reconduit un protocole sur une nouvelle année
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/2/reconduire" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"modalites":[{"id":"2"},[]]}'
const url = new URL(
"https://api.oss.coop/protocole/2/reconduire"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"modalites": [
{
"id": "2"
},
[]
]
}
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/2/reconduire',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'modalites' => [
[
'id' => '2',
],
[],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Accepter
requires authentication
Accepte un partage de protocole
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/2/accepter" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/2/accepter"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/2/accepter',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Refuser
requires authentication
Refuse un partage de protocole
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/2/refuser" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/2/refuser"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/2/refuser',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Ordonnancer
requires authentication
Ordonnance les modalités d'un protocole
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/2/ordonnancer" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/2/ordonnancer"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/2/ordonnancer',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Valider
requires authentication
Valide un protocole (non BPE uniquement)
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/2/valider" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/2/valider"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/2/valider',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Archiver
requires authentication
Archive un protocole
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/2/archiver" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/2/archiver"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/2/archiver',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Modalité d'observation - Lister
requires authentication
Liste des modalités d'observation d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/modalite_observation?sort=nom.ASC%2Cid.DESC&page=12&limit=3" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/modalite_observation"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "12",
"limit": "3",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/modalite_observation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '12',
'limit'=> '3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"periode_observation": "Du vendredi au lundi, quand tout le monde est bourré.",
"modalites_observees": "Le prix (lol y'en a pas)",
"type_notation": "Sur 20",
"organes_observes": "Les mouches qui pètent",
"adaptation_ceb": "Encore un acronyme à la c*"
}
]
}
Received response:
Request failed with error:
Modalité d'observation - Voir
requires authentication
Détails d'une modalité d'observation d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/modalite_observation/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/modalite_observation/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/modalite_observation/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"periode_observation": "Du vendredi au lundi, quand tout le monde est bourré.",
"modalites_observees": "Le prix (lol y'en a pas)",
"type_notation": "Sur 20",
"organes_observes": "Les mouches qui pètent",
"adaptation_ceb": "Encore un acronyme à la c*"
}
}
Received response:
Request failed with error:
Modalité d'observation - Ajouter
requires authentication
Ajoute une modalité d'observation d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/modalite_observation" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"periode_observation":"Jamais sinon c'est une particule et pas une onde.","modalites_observees":"Les semences ?","type_notation":"Sur 20","organes_observes":"Les c* (je sais elle \u00e9tait facile)","adaptation_ceb":"J'ai pas de vanne qui me vient l\u00e0 maintenant..."}'
const url = new URL(
"https://api.oss.coop/protocole/1/modalite_observation"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"periode_observation": "Jamais sinon c'est une particule et pas une onde.",
"modalites_observees": "Les semences ?",
"type_notation": "Sur 20",
"organes_observes": "Les c* (je sais elle \u00e9tait facile)",
"adaptation_ceb": "J'ai pas de vanne qui me vient l\u00e0 maintenant..."
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/modalite_observation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'periode_observation' => 'Jamais sinon c\'est une particule et pas une onde.',
'modalites_observees' => 'Les semences ?',
'type_notation' => 'Sur 20',
'organes_observes' => 'Les c* (je sais elle était facile)',
'adaptation_ceb' => 'J\'ai pas de vanne qui me vient là maintenant...',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"periode_observation": "Jamais sinon c'est une particule et pas une onde.",
"modalites_observees": "Les semences ?",
"type_notation": "Sur 20",
"organes_observes": "Les c* (je sais elle était facile)",
"adaptation_ceb": "J'ai pas de vanne qui me vient là maintenant..."
}
}
Received response:
Request failed with error:
Modalité d'observation - Modifier
requires authentication
Modifie une modalité d'observation d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/modalite_observation/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"periode_observation":"null","modalites_observees":"null","type_notation":"null","organes_observes":"null","adaptation_ceb":"null"}'
const url = new URL(
"https://api.oss.coop/protocole/1/modalite_observation/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"periode_observation": "null",
"modalites_observees": "null",
"type_notation": "null",
"organes_observes": "null",
"adaptation_ceb": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/modalite_observation/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'periode_observation' => 'null',
'modalites_observees' => 'null',
'type_notation' => 'null',
'organes_observes' => 'null',
'adaptation_ceb' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"periode_observation": null,
"modalites_observees": null,
"type_notation": null,
"organes_observes": null,
"adaptation_ceb": null."
}
}
Received response:
Request failed with error:
Modalité d'observation - Supprimer
requires authentication
Supprime une modalité d'observation d'un protocole
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/modalite_observation/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/modalite_observation/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/modalite_observation/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Modalité - Lister
requires authentication
Liste des modalités d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/modalite?sort=nom.ASC%2Cid.DESC&page=4&limit=20" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/modalite"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "4",
"limit": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/modalite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '4',
'limit'=> '20',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"numero": "AZERTY123",
"destruction": false,
"ordre": 1,
"type": { ... }
}
]
}
Received response:
Request failed with error:
Modalité - Voir
requires authentication
Détails d'une modalité d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/modalite/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/modalite/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/modalite/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"numero": "AZERTY123",
"destruction": false,
"ordre": 1,
"type": { ... }
}
}
Received response:
Request failed with error:
Modalité - Ajouter
requires authentication
Ajoute une modalité d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/modalite" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"numero":"AZERTY124","destruction":"true","ordre":2,"type_uid":"type1"}'
const url = new URL(
"https://api.oss.coop/protocole/1/modalite"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"numero": "AZERTY124",
"destruction": "true",
"ordre": 2,
"type_uid": "type1"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/modalite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'numero' => 'AZERTY124',
'destruction' => 'true',
'ordre' => 2,
'type_uid' => 'type1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"numero": "AZERTY124",
"destruction": true,
"ordre": 2,
"type": { ... }
}
}
Received response:
Request failed with error:
Modalité - Modifier
requires authentication
Modifie une modalité d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/modalite/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"numero":"null","destruction":"false","ordre":0,"type_uid":"type1"}'
const url = new URL(
"https://api.oss.coop/protocole/1/modalite/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"numero": "null",
"destruction": "false",
"ordre": 0,
"type_uid": "type1"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/modalite/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'numero' => 'null',
'destruction' => 'false',
'ordre' => 0,
'type_uid' => 'type1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"numero": null,
"destruction": false,
"ordre": null,
"type": { ... }
}
}
Received response:
Request failed with error:
Modalité - Supprimer
requires authentication
Supprime une modalité d'un protocole
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/modalite/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/modalite/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/modalite/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Modalité - Dupliquer
requires authentication
Dupliquer une modalité d'un protocole
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/1/modalite/2/dupliquer" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/modalite/2/dupliquer"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/1/modalite/2/dupliquer',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Modalité - Semence - Lister
requires authentication
Liste des semences d'une modalité d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/modalite/1/semence?sort=nom.ASC%2Cid.DESC&page=19&limit=17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/modalite/1/semence"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "19",
"limit": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/modalite/1/semence',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '19',
'limit'=> '17',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"variete": "variete 1",
"traitementsemence": "Des pesticides qu'on préfère appeller des produits phytosanitaires car c'est plus politiquement correct et moins flippant",
"densite": 14.2,
"pmg": 66.6,
"facteur": { ... },
"unite": { ... },
"produit": { ... },
"fournisseur": { ... }
}
]
}
Received response:
Request failed with error:
Modalité - Semence - Voir
requires authentication
Détails d'une semence d'une modalité d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/modalite/1/semence/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/modalite/1/semence/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/modalite/1/semence/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"variete": "variete 1",
"traitementsemence": "Des pesticides qu'on préfère appeller des produits phytosanitaires car c'est plus politiquement correct et moins flippant",
"densite": 14.2,
"pmg": 66.6,
"facteur": { ... },
"unite": { ... },
"produit": { ... },
"fournisseur": { ... }
}
}
Received response:
Request failed with error:
Modalité - Semence - Ajouter
requires authentication
Ajoute des semences à une modalité d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/modalite/1/semence" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"variete":"variete 2","traitementsemence":"Rien, nada, niet","densite":"14.2","pmg":"66.6","facteur_id":1,"unite_uid":1,"produit_id":1,"fournisseur_id":1}'
const url = new URL(
"https://api.oss.coop/protocole/1/modalite/1/semence"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variete": "variete 2",
"traitementsemence": "Rien, nada, niet",
"densite": "14.2",
"pmg": "66.6",
"facteur_id": 1,
"unite_uid": 1,
"produit_id": 1,
"fournisseur_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/modalite/1/semence',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'variete' => 'variete 2',
'traitementsemence' => 'Rien, nada, niet',
'densite' => '14.2',
'pmg' => '66.6',
'facteur_id' => 1,
'unite_uid' => 1,
'produit_id' => 1,
'fournisseur_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"variete": "variete 2",
"traitementsemence": "Rien, nada, niet",
"densite": 14.2,
"pmg": 66.6,
"facteur": { ... },
"unite": { ... },
"produit": { ... },
"fournisseur": { ... }
}
}
Received response:
Request failed with error:
Modalité - Semence - Modifier
requires authentication
Modifie des semence d'une modalité d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/modalite/1/semence" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"variete":"null","traitementsemence":"null","densite":"null","pmg":"null","facteur_id":1,"unite_uid":1,"produit_id":1,"fournisseur_id":2}'
const url = new URL(
"https://api.oss.coop/protocole/1/modalite/1/semence"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variete": "null",
"traitementsemence": "null",
"densite": "null",
"pmg": "null",
"facteur_id": 1,
"unite_uid": 1,
"produit_id": 1,
"fournisseur_id": 2
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/modalite/1/semence',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'variete' => 'null',
'traitementsemence' => 'null',
'densite' => 'null',
'pmg' => 'null',
'facteur_id' => 1,
'unite_uid' => 1,
'produit_id' => 1,
'fournisseur_id' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"variete": null,
"traitementsemence": null,
"densite": null,
"pmg": null,
"facteur": { ... },
"unite": { ... },
"produit": { ... },
"fournisseur": { ... }
}
}
Received response:
Request failed with error:
Modalité - Semence - Supprimer
requires authentication
Supprime des semence d'une modalité d'un protocole
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/modalite/1/semence" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/modalite/1/semence"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/modalite/1/semence',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Facteur - Lister
requires authentication
Liste des fateurs d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/facteur?sort=nom.ASC%2Cid.DESC&page=18&limit=15" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "18",
"limit": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/facteur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '18',
'limit'=> '15',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Mon super facteur",
"numero": "AZERTY123",
"destruction": false,
"ordre": 1,
"type": { ... }
}
]
}
Received response:
Request failed with error:
Facteur - Voir
requires authentication
Détails d'un fateur d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/facteur/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/facteur/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": "Mon super facteur",
"numero": "AZERTY123",
"destruction": false,
"ordre": 1,
"type": { ... }
}
}
Received response:
Request failed with error:
Facteur - Ajouter
requires authentication
Ajoute un fateur d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/facteur" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Facteur 2","ordre":2,"type_uid":"type1"}'
const url = new URL(
"https://api.oss.coop/protocole/1/facteur"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Facteur 2",
"ordre": 2,
"type_uid": "type1"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/facteur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Facteur 2',
'ordre' => 2,
'type_uid' => 'type1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": "Facteur 2",
"numero": "AZERTY124",
"destruction": true,
"ordre": 2,
"type": { ... }
}
}
Received response:
Request failed with error:
Facteur - Modifier
requires authentication
Modifie un fateur d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/facteur/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"null","ordre":0,"type_uid":"type1"}'
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "null",
"ordre": 0,
"type_uid": "type1"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/facteur/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'null',
'ordre' => 0,
'type_uid' => 'type1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": null,
"numero": null,
"destruction": false,
"ordre": null,
"type": { ... }
}
}
Received response:
Request failed with error:
Facteur - Supprimer
requires authentication
Supprime un fateur d'un protocole
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/facteur/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/facteur/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Facteur - Variable - Lister
requires authentication
Liste des variables d'un facteur d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/facteur/1/variable?sort=nom.ASC%2Cid.DESC&page=5&limit=1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/variable"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "5",
"limit": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/facteur/1/variable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '5',
'limit'=> '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "variable 1",
"type": { ... },
"unite": { ... }
}
]
}
Received response:
Request failed with error:
Facteur - Variable - Voir
requires authentication
Détails d'une variable d'un facteur d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/facteur/1/variable/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/variable/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/facteur/1/variable/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": "variable 1",
"type": { ... },
"unite": { ... }
}
}
Received response:
Request failed with error:
Facteur - Variable - Ajouter
requires authentication
Ajoute une variable d'un facteur d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/facteur/1/variable" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"variable 2","unite_uid":"unite1","type_id":1}'
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/variable"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "variable 2",
"unite_uid": "unite1",
"type_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/facteur/1/variable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'variable 2',
'unite_uid' => 'unite1',
'type_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "variable 2",
"type": { ... },
"unite": { ... }
}
}
Received response:
Request failed with error:
Facteur - Variable - Modifier
requires authentication
Modifie une variable d'un facteur d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/facteur/1/variable/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"variable 3","unite_uid":"unite1","type_id":1}'
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/variable/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "variable 3",
"unite_uid": "unite1",
"type_id": 1
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/facteur/1/variable/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'variable 3',
'unite_uid' => 'unite1',
'type_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "variable 3",
"type": { ... },
"unite": { ... }
}
}
Received response:
Request failed with error:
Facteur - Variable - Supprimer
requires authentication
Supprime une variable d'un facteur d'un protocole
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/facteur/1/variable/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/variable/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/facteur/1/variable/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Facteur - Variable - Valeur - Lister
requires authentication
Liste des valeurs d'une variable d'un facteur d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur?sort=nom.ASC%2Cid.DESC&page=4&limit=1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "4",
"limit": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '4',
'limit'=> '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"valeur": "valeur 1",
"modalite": { ... }
}
]
}
Received response:
Request failed with error:
Facteur - Variable - Valeur - Voir
requires authentication
Détails d'une valeur d'une variable d'un facteur d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"valeur": "valeur 1",
"modalite": { ... }
}
}
Received response:
Request failed with error:
Facteur - Variable - Valeur - Ajouter
requires authentication
Ajoute une valeur à une variable d'un facteur d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"valeur":"valeur 2","modalite_id":1}'
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"valeur": "valeur 2",
"modalite_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'valeur' => 'valeur 2',
'modalite_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"valeur": "valeur 2",
"modalite": { ... }
}
}
Received response:
Request failed with error:
Facteur - Variable - Valeur - Modifier
requires authentication
Modifie une valeur d'une variable d'un facteur d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"valeur":"valeur 3","modalite_id":1}'
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"valeur": "valeur 3",
"modalite_id": 1
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'valeur' => 'valeur 3',
'modalite_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"valeur": "valeur 3",
"modalite": { ... }
}
}
Received response:
Request failed with error:
Facteur - Variable - Valeur - Supprimer
requires authentication
Supprime une valeur d'une variable d'un facteur d'un protocole
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/facteur/1/variable/1/valeur/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Facteur - Passage - Lister
requires authentication
Liste des passages d'un facteur d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/facteur/1/passage?sort=nom.ASC%2Cid.DESC&page=13&limit=6" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "13",
"limit": "6",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/facteur/1/passage',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '13',
'limit'=> '6',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"ordre": 1,
"stade": { ... }
}
]
}
Received response:
Request failed with error:
Facteur - Passage - Voir
requires authentication
Détails d'un passage d'un facteur d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/facteur/1/passage/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/facteur/1/passage/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"ordre": 1,
"stade": { ... }
}
}
Received response:
Request failed with error:
Facteur - Passage - Ajouter
requires authentication
Ajoute un passage d'un facteur d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/facteur/1/passage" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"ordre":2,"stade_uid":"1"}'
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ordre": 2,
"stade_uid": "1"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/facteur/1/passage',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'ordre' => 2,
'stade_uid' => '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"ordre": 2,
"stade": { ... }
}
}
Received response:
Request failed with error:
Facteur - Passage - Modifier
requires authentication
Modifie un passage d'un facteur d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/facteur/1/passage" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"ordre":2,"stade_uid":"null"}'
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"ordre": 2,
"stade_uid": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/facteur/1/passage',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'ordre' => 2,
'stade_uid' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"ordre": 2,
"stade": null
}
}
Received response:
Request failed with error:
Facteur - Passage - Supprimer
requires authentication
Supprime un passage d'un facteur d'un protocole
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/facteur/1/passage" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/facteur/1/passage',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Facteur - Passage - Produit - Lister
requires authentication
Liste des produits d'un passage d'un facteur d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/facteur/1/passage/produit?sort=nom.ASC%2Cid.DESC&page=19&limit=17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage/produit"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "19",
"limit": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/facteur/1/passage/produit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '19',
'limit'=> '17',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"dose": 66.6,
"modalite": { ... },
"produit": { ... },
"unite": { ... },
"fournisseur": { ... }
}
]
}
Received response:
Request failed with error:
Facteur - Passage - Produit - Voir
requires authentication
Détails d'un produit d'un passage d'un facteur d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/facteur/1/passage/produit/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage/produit/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/facteur/1/passage/produit/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"dose": 66.6,
"modalite": { ... },
"produit": { ... },
"unite": { ... },
"fournisseur": { ... }
}
}
Received response:
Request failed with error:
Facteur - Passage - Produit - Ajouter
requires authentication
Ajoute un produit à un passage d'un facteur d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/facteur/1/passage/produit" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"dose":"42.2","modalite_id":1,"produit_id":1,"unite_uid":"1","fournisseur_id":1}'
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage/produit"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"dose": "42.2",
"modalite_id": 1,
"produit_id": 1,
"unite_uid": "1",
"fournisseur_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/facteur/1/passage/produit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'dose' => '42.2',
'modalite_id' => 1,
'produit_id' => 1,
'unite_uid' => '1',
'fournisseur_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"dose": 42.2,
"modalite": { ... },
"produit": { ... },
"unite": { ... },
"fournisseur": { ... }
}
]
}
Received response:
Request failed with error:
Facteur - Passage - Produit - Modifier
requires authentication
Modifie un produit d'un passage d'un facteur d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/facteur/1/passage/produit" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"id":1,"dose":"null","modalite_id":1,"produit_id":1,"unite_uid":"1","fournisseur_id":1}'
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage/produit"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 1,
"dose": "null",
"modalite_id": 1,
"produit_id": 1,
"unite_uid": "1",
"fournisseur_id": 1
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/facteur/1/passage/produit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'id' => 1,
'dose' => 'null',
'modalite_id' => 1,
'produit_id' => 1,
'unite_uid' => '1',
'fournisseur_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"dose": null,
"modalite": { ... },
"produit": { ... },
"unite": { ... },
"fournisseur": { ... }
}
]
}
Received response:
Request failed with error:
Facteur - Passage - Produit - Supprimer
requires authentication
Supprime un produit d'un passage d'un facteur d'un protocole
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/facteur/1/passage/produit" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"id":1}'
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage/produit"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"id": 1
}
fetch(url, {
method: "DELETE",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/facteur/1/passage/produit',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Facteur - Passage - Travail du sol - Lister
requires authentication
Liste des "travail du sol" d'un passage d'un facteur d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol?sort=nom.ASC%2Cid.DESC&page=19&limit=16" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "19",
"limit": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '19',
'limit'=> '16',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"dose": 66.6,
"modalite": { ... },
"sol_travail": { ... }
}
]
}
Received response:
Request failed with error:
Facteur - Passage - Travail du sol - Voir
requires authentication
Détails d'un "travail du sol" d'un passage d'un facteur d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"dose": 66.6,
"modalite": { ... },
"sol_travail": { ... }
}
}
Received response:
Request failed with error:
Facteur - Passage - Travail du sol - Ajouter
requires authentication
Ajoute des "travail du sol" à un passage d'un facteur d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"modalite_id":1,"sol_travail_id":1}'
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"modalite_id": 1,
"sol_travail_id": 1
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'modalite_id' => 1,
'sol_travail_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"dose": 42.2,
"modalite": { ... },
"sol_travail": { ... }
}
]
}
Received response:
Request failed with error:
Facteur - Passage - Travail du sol - Modifier
requires authentication
Modifie les "travail du sol" d'un passage d'un facteur d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"modalite_id":1,"sol_travail_id":1}'
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"modalite_id": 1,
"sol_travail_id": 1
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'modalite_id' => 1,
'sol_travail_id' => 1,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"dose": null,
"modalite": { ... },
"sol_travail": { ... }
}
]
}
Received response:
Request failed with error:
Facteur - Passage - Travail du sol - Supprimer
requires authentication
Supprime des "travail du sol" d'un passage d'un facteur d'un protocole
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/facteur/1/passage/1/travail_du_sol',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Version - Lister
requires authentication
Liste des versions d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/version?sort=nom.ASC%2Cid.DESC&page=16&limit=9" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/version"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "16",
"limit": "9",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/version',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '16',
'limit'=> '9',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"version": 1,
"date": "2021-09-09 12:29:03+02",
"ressource":"{...}"
}
]
}
Received response:
Request failed with error:
Version - Voir
requires authentication
Détails d'une version d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/version/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/version/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/version/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"version": 1,
"date": "2021-09-09 12:29:03+02",
"ressource":"{...}"
}
}
Received response:
Request failed with error:
Version - Validation - Lister
requires authentication
Liste des validations d'une version d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/version/1/validation?sort=nom.ASC%2Cid.DESC&page=6&limit=1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/version/1/validation"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "6",
"limit": "1",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/version/1/validation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '6',
'limit'=> '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"date": "2150-12-31 12:00:00+02",
"trigramme": "Franchement, quelqu'un sait ce que c'est ?",
"type": { ... },
"remarques": "remarque"
}
]
}
Received response:
Request failed with error:
Version - Validation - Voir
requires authentication
Détails d'une validation d'une version d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/version/1/validation/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/version/1/validation/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/version/1/validation/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"date": "2150-12-31 12:00:00+02",
"trigramme": "Franchement, quelqu'un sait ce que c'est ?",
"type": { ... },
"remarques": "remarque"
}
}
Received response:
Request failed with error:
Version - Validation - Ajouter
requires authentication
Ajoute une validation à une version d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/version/1/validation" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"trigramme":"Franchement, quelqu'un sait ce que c'est ?","type_uid":"validation1","remarques":"null"}'
const url = new URL(
"https://api.oss.coop/protocole/1/version/1/validation"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"trigramme": "Franchement, quelqu'un sait ce que c'est ?",
"type_uid": "validation1",
"remarques": "null"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/version/1/validation',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'trigramme' => 'Franchement, quelqu\'un sait ce que c\'est ?',
'type_uid' => 'validation1',
'remarques' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"date": "2150-12-31 12:00:00+02",
"trigramme": "Franchement, quelqu'un sait ce que c'est ?",
"type": { ... },
"remarques": null
}
}
Received response:
Request failed with error:
Fichier - Lister
requires authentication
Liste des fichiers d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/fichier" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/fichier"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/fichier',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"description": "valeur",
"categorie": { ... },
"media": { ... }
}
]
}
Received response:
Request failed with error:
Fichier - Modifier
requires authentication
Modifie les fichiers d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/fichier" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"fichiers":[{"id":"2"},{"id":"2"}]}'
const url = new URL(
"https://api.oss.coop/protocole/1/fichier"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"fichiers": [
{
"id": "2"
},
{
"id": "2"
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/fichier',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'fichiers' => [
[
'id' => '2',
],
[
'id' => '2',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"description": "valeur2",
"categorie": { ... },
"media": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Lister
requires authentication
Liste des événements d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/evenement?sort=nom.ASC%2Cid.DESC&page=14&limit=9" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/evenement"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "14",
"limit": "9",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/evenement',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '14',
'limit'=> '9',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Evénement 1",
"date_previsionnelle": "2150-12-31 12:00:00+02",
"type": { ... },
"stade": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Lister Passages
requires authentication
Liste des événements implicites (passages) d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/evenement/passages?sort=nom.ASC%2Cid.DESC&page=4&limit=16" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/passages"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "4",
"limit": "16",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/evenement/passages',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '4',
'limit'=> '16',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"ordre": 1,
"stade": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Voir
requires authentication
Détails d'un événement d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/evenement/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/evenement/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": "Evénement 1",
"date_previsionnelle": "2150-12-31 12:00:00+02",
"type": { ... },
"stade": { ... }
}
}
Received response:
Request failed with error:
Evenement - Ajouter
requires authentication
Ajoute un événement d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/evenement" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Ev\u00e9nement 2","observations":"Un autre \u00e9v\u00e9nement","date_previsionnelle":"2150-12-31 12:00:00+02","date_realisation":"2150-12-31 12:00:00+02","type_uid":"type1","passage_id":1,"stade_uid":"1"}'
const url = new URL(
"https://api.oss.coop/protocole/1/evenement"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Ev\u00e9nement 2",
"observations": "Un autre \u00e9v\u00e9nement",
"date_previsionnelle": "2150-12-31 12:00:00+02",
"date_realisation": "2150-12-31 12:00:00+02",
"type_uid": "type1",
"passage_id": 1,
"stade_uid": "1"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/evenement',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Evénement 2',
'observations' => 'Un autre événement',
'date_previsionnelle' => '2150-12-31 12:00:00+02',
'date_realisation' => '2150-12-31 12:00:00+02',
'type_uid' => 'type1',
'passage_id' => 1,
'stade_uid' => '1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"observations": "Un autre événement",
"date_previsionnelle": "2150-12-31 12:00:00+02",
"type": { ... },
"stade": { ... }
}
}
Received response:
Request failed with error:
Evenement - Modifier
requires authentication
Modifie un événement d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/evenement/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"null","observations":"null","date_previsionnelle":"null","date_realisation":"null","type_uid":"type1","passage_id":0,"stade_uid":"null"}'
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "null",
"observations": "null",
"date_previsionnelle": "null",
"date_realisation": "null",
"type_uid": "type1",
"passage_id": 0,
"stade_uid": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/evenement/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'null',
'observations' => 'null',
'date_previsionnelle' => 'null',
'date_realisation' => 'null',
'type_uid' => 'type1',
'passage_id' => 0,
'stade_uid' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": null,
"date_previsionnelle": null,
"type": { ... },
"stade": null
}
}
Received response:
Request failed with error:
Evenement - Supprimer
requires authentication
Supprime un événement d'un protocole
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/evenement/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/evenement/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Variable - Lister
requires authentication
Liste des variables d'un événement d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/evenement/1/variable?sort=nom.ASC%2Cid.DESC&page=14&limit=11" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "14",
"limit": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/evenement/1/variable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '14',
'limit'=> '11',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Variable",
"ordre":1,
"valeur_min": 0,
"valeur_max": 12.5,
"laboratoire": true,
"variablepersonnalisee": false,
"type": { ... },
"variable": { ... },
"unite": { ... },
"saisie_niveau": { ... },
"cible": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Variable - Voir
requires authentication
Détails d'une variable d'un événement d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/evenement/1/variable/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/evenement/1/variable/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": "Variable",
"ordre":1,
"valeur_min": 0,
"valeur_max": 12.5,
"laboratoire": true,
"variablepersonnalisee": false,
"type": { ... },
"variable": { ... },
"unite": { ... },
"saisie_niveau": { ... },
"cible": { ... }
}
}
Received response:
Request failed with error:
Evenement - Variable - Ajouter
requires authentication
Ajoute une variable à un événement d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/evenement/1/variable" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Variable2","ordre":2,"valeur_min":"0","valeur_max":"42","laboratoire":true,"variablepersonnalisee":true,"type_uid":"t1","variable_uid":"v1","unite_uid":"u1","saisie_niveau_uid":"sn1","cible_id":0}'
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Variable2",
"ordre": 2,
"valeur_min": "0",
"valeur_max": "42",
"laboratoire": true,
"variablepersonnalisee": true,
"type_uid": "t1",
"variable_uid": "v1",
"unite_uid": "u1",
"saisie_niveau_uid": "sn1",
"cible_id": 0
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/evenement/1/variable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Variable2',
'ordre' => 2,
'valeur_min' => '0',
'valeur_max' => '42',
'laboratoire' => true,
'variablepersonnalisee' => true,
'type_uid' => 't1',
'variable_uid' => 'v1',
'unite_uid' => 'u1',
'saisie_niveau_uid' => 'sn1',
'cible_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Variable2",
"ordre": 2,
"valeur_min": 0,
"valeur_max": 42,
"laboratoire": true,
"variablepersonnalisee": true,
"type": { ... },
"variable": { ... },
"unite": { ... },
"saisie_niveau": { ... },
"cible": { ... }
}
}
Received response:
Request failed with error:
Evenement - Variable - Modifier
requires authentication
Modifie une variable d'un événement d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/evenement/1/variable/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"null","ordre":0,"valeur_min":"null","valeur_max":"null","laboratoire":false,"variablepersonnalisee":false,"type_uid":"null","variable_uid":"null","unite_uid":"null","saisie_niveau_uid":"sn1","cible_id":0}'
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "null",
"ordre": 0,
"valeur_min": "null",
"valeur_max": "null",
"laboratoire": false,
"variablepersonnalisee": false,
"type_uid": "null",
"variable_uid": "null",
"unite_uid": "null",
"saisie_niveau_uid": "sn1",
"cible_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/evenement/1/variable/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'null',
'ordre' => 0,
'valeur_min' => 'null',
'valeur_max' => 'null',
'laboratoire' => false,
'variablepersonnalisee' => false,
'type_uid' => 'null',
'variable_uid' => 'null',
'unite_uid' => 'null',
'saisie_niveau_uid' => 'sn1',
'cible_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": null,
"ordre": 3,
"valeur_min": null,
"valeur_max": null,
"laboratoire": false,
"variablepersonnalisee": false,
"type": null,
"variable": null,
"unite": null,
"saisie_niveau": { ... },
"cible": null
}
}
Received response:
Request failed with error:
Evenement - Variable - Supprimer
requires authentication
Supprime une variable d'un événement
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/evenement/1/variable/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/evenement/1/variable/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Variable - Organe - Lister
requires authentication
Liste des organes d'une variable d'un événement d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/evenement/1/variable/1/organe?sort=nom.ASC%2Cid.DESC&page=16&limit=17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable/1/organe"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "16",
"limit": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/evenement/1/variable/1/organe',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '16',
'limit'=> '17',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Variable",
"ordre": 1,
"nb_echantillons": 1
}
]
}
Received response:
Request failed with error:
Evenement - Variable - Organe - Voir
requires authentication
Détails d'un organe d'une variable d'un événement d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/evenement/1/variable/1/organe/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable/1/organe/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/evenement/1/variable/1/organe/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": "Variable",
"ordre": 1,
"nb_echantillons": 1
}
}
Received response:
Request failed with error:
Evenement - Variable - Organe - Ajouter
requires authentication
Ajoute un organe à une variable à un événement d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/evenement/1/variable/1/organe" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Variable2","ordre":2,"nb_echantillons":2}'
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable/1/organe"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Variable2",
"ordre": 2,
"nb_echantillons": 2
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/evenement/1/variable/1/organe',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Variable2',
'ordre' => 2,
'nb_echantillons' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Variable2",
"ordre": 2,
"nb_echantillons": 2
}
}
Received response:
Request failed with error:
Evenement - Variable - Organe - Modifier
requires authentication
Modifie un organe d'une variable d'un événement d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/evenement/1/variable/1/organe/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Variable3","ordre":3,"nb_echantillons":3}'
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable/1/organe/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Variable3",
"ordre": 3,
"nb_echantillons": 3
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/evenement/1/variable/1/organe/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Variable3',
'ordre' => 3,
'nb_echantillons' => 3,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Variable3",
"ordre": 3,
"nb_echantillons": 3
}
}
Received response:
Request failed with error:
Evenement - Variable - Organe - Supprimer
requires authentication
Supprime un organe d'une variable d'un événement
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/evenement/1/variable/1/organe/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable/1/organe/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/evenement/1/variable/1/organe/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Evenement - Variable calculée - Lister
requires authentication
Liste des variables calculées d'un événement d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/evenement/1/variable_calculee?sort=nom.ASC%2Cid.DESC&page=16&limit=9" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable_calculee"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "16",
"limit": "9",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/evenement/1/variable_calculee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '16',
'limit'=> '9',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"calcul": { ... }
}
]
}
Received response:
Request failed with error:
Evenement - Variable calculée - Voir
requires authentication
Détails d'une variable calculée d'un événement d'un protocole
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/1/evenement/1/variable_calculee/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable_calculee/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/1/evenement/1/variable_calculee/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"calcul": { ... }
}
}
Received response:
Request failed with error:
Evenement - Variable calculée - Ajouter
requires authentication
Ajoute une variable calculée à un événement d'un protocole
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/evenement/1/variable_calculee" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"calcul_id":0}'
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable_calculee"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"calcul_id": 0
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/evenement/1/variable_calculee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'calcul_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"calcul": { ... }
}
}
Received response:
Request failed with error:
Evenement - Variable calculée - Modifier
requires authentication
Modifie une variable calculée d'un événement d'un protocole
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/evenement/1/variable_calculee" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"calcul_id":0}'
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable_calculee"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"calcul_id": 0
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/evenement/1/variable_calculee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'calcul_id' => 0,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"calcul": { ... }
}
}
Received response:
Request failed with error:
Evenement - Variable calculée - Supprimer
requires authentication
Supprime une variable calculée d'un événement d'un protocole
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/evenement/1/variable_calculee" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/evenement/1/variable_calculee"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/evenement/1/variable_calculee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Regroupement d'Essais - Lister
requires authentication
Liste des regroupements d'essais
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/{puid:[0-9]+}/regroupement_essai?sort=nom.ASC%2Cid.DESC&page=17&limit=14" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/{puid:[0-9]+}/regroupement_essai"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "17",
"limit": "14",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/{puid:[0-9]+}/regroupement_essai',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '17',
'limit'=> '14',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "valeur",
"essais": "[essai1,essai2]",
"filtres": "[filtre1,filtre2]",
"modalites": "[modalite1,modalite2]",
"variables": "[variable1,variable2]",
"creation": "2021-06-14 17:27:35.911688+02",
"modification": "2021-06-14 17:27:35.911688+02",
"generation": "2021-06-14 17:27:35.911688+02",
"media": { ... },
"etat": { ... }
}
]
}
Received response:
Request failed with error:
Regroupement d'Essais - Ajouter
requires authentication
Ajoute un regroupement d'essais
Example request:
curl -X POST \
"https://api.oss.coop/protocole/1/regroupement_essai" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"valeur","filtres":"[filtre1,filtre2]"}'
const url = new URL(
"https://api.oss.coop/protocole/1/regroupement_essai"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "valeur",
"filtres": "[filtre1,filtre2]"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/protocole/1/regroupement_essai',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'valeur',
'filtres' => '[filtre1,filtre2]',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "valeur",
"essais": "[essai1,essai2]",
"filtres": "[filtre1,filtre2]",
"modalites": "[modalite1,modalite2]",
"variables": "[variable1,variable2]",
"creation": "2021-06-14 17:27:35.911688+02",
"modification": null,
"generation": null,
"media": null,
"etat": { ... }
}
}
Received response:
Request failed with error:
Regroupement d'Essais - Modifier
requires authentication
Modifie un regroupement d'essais
Example request:
curl -X PUT \
"https://api.oss.coop/protocole/1/regroupement_essai/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"null","filtres":"null"}'
const url = new URL(
"https://api.oss.coop/protocole/1/regroupement_essai/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "null",
"filtres": "null"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/protocole/1/regroupement_essai/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'null',
'filtres' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "null",
"essais": "null",
"filtres": "null",
"modalites": "null",
"variables": "null",
"creation": "2021-06-14 17:27:35.911688+02",
"modification": "2021-06-14 17:27:35.911688+02",
"generation": null,
"media": null,
"etat": { ... }
}
}
Received response:
Request failed with error:
Regroupement d'Essais - Supprimer
requires authentication
Supprime un regroupement d'essais
Example request:
curl -X DELETE \
"https://api.oss.coop/protocole/1/regroupement_essai/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/1/regroupement_essai/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/protocole/1/regroupement_essai/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
protocole/{puid:[0-9]+}/regroupement_essai/annee_regroupable
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/{puid:[0-9]+}/regroupement_essai/annee_regroupable" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/{puid:[0-9]+}/regroupement_essai/annee_regroupable"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/{puid:[0-9]+}/regroupement_essai/annee_regroupable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Received response:
Request failed with error:
Regroupement d'Essais - Essais - Lister
requires authentication
Liste des essais regroupables
Example request:
curl -X GET \
-G "https://api.oss.coop/protocole/{puid:[0-9]+}/regroupement_essai/{rid:[0-9]+}/essai_regroupable?sort=nom.ASC%2Cid.DESC&page=8&limit=18" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/protocole/{puid:[0-9]+}/regroupement_essai/{rid:[0-9]+}/essai_regroupable"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "8",
"limit": "18",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/protocole/{puid:[0-9]+}/regroupement_essai/{rid:[0-9]+}/essai_regroupable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '8',
'limit'=> '18',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "essai",
"numero": "azerty123",
"surface_implantation_largeur": "123.456",
"surface_implantation_longueur": "123.456",
"surface_application_largeur": "123.456",
"surface_application_longueur": "123.456",
"surface_recoltee_largeur": "123.456",
"surface_recoltee_longueur": "123.456",
"plate_forme": false,
"protocole": { ... },
"parcelle": { ... },
"modalite": { ... },
"technicien": { ... }
}
]
}
Received response:
Request failed with error:
Regroupement d'Essais - Statistiques
requires authentication
Génere les statistiques d'un regroupement d'essais
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/1/regroupement_essai/2/statistiques" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Rapport 3"}'
const url = new URL(
"https://api.oss.coop/protocole/1/regroupement_essai/2/statistiques"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Rapport 3"
}
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/1/regroupement_essai/2/statistiques',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Rapport 3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Rapport 3",
"details_erreur": null,
"date_creation": "2150-12-31 12:00:00+02",
"date_generation_debut": null,
"date_generation_fin": null,
"finalise": false,
"erreur": false,
"media": null
}
}
Received response:
Request failed with error:
Regroupement d'Essais - Essais
requires authentication
Modifie un regroupement d'essais
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/1/regroupement_essai/2/essai" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"essais":"null"}'
const url = new URL(
"https://api.oss.coop/protocole/1/regroupement_essai/2/essai"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"essais": "null"
}
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/1/regroupement_essai/2/essai',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'essais' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "null",
"essais": [ ... ],
"filtres": "null",
"modalites": [ ... ],
"variables": [ ... ],
"creation": "2021-06-14 17:27:35.911688+02",
"modification": "2021-06-14 17:27:35.911688+02",
"generation": null,
"media": null,
"etat": { ... }
}
}
Received response:
Request failed with error:
Regroupement d'Essais - Modalites
requires authentication
Modifie un regroupement d'essais
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/1/regroupement_essai/2/modalite" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"modalites":"null"}'
const url = new URL(
"https://api.oss.coop/protocole/1/regroupement_essai/2/modalite"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"modalites": "null"
}
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/1/regroupement_essai/2/modalite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'modalites' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "null",
"essais": [ ... ],
"filtres": "null",
"modalites": [ ... ],
"variables": [ ... ],
"creation": "2021-06-14 17:27:35.911688+02",
"modification": "2021-06-14 17:27:35.911688+02",
"generation": null,
"media": null,
"etat": { ... }
}
}
Received response:
Request failed with error:
Regroupement d'Essais - Variables
requires authentication
Modifie un regroupement d'essais
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/1/regroupement_essai/2/variable" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"variables":"null"}'
const url = new URL(
"https://api.oss.coop/protocole/1/regroupement_essai/2/variable"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variables": "null"
}
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/1/regroupement_essai/2/variable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'variables' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "null",
"essais": [ ... ],
"filtres": "null",
"modalites": [ ... ],
"variables": [ ... ],
"creation": "2021-06-14 17:27:35.911688+02",
"modification": "2021-06-14 17:27:35.911688+02",
"generation": null,
"media": null,
"etat": { ... }
}
}
Received response:
Request failed with error:
Regroupement d'Essais - annees
requires authentication
Modifie un regroupement d'essais
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/1/regroupement_essai/2/annee" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"annees":"null"}'
const url = new URL(
"https://api.oss.coop/protocole/1/regroupement_essai/2/annee"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"annees": "null"
}
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/1/regroupement_essai/2/annee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'annees' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "null",
"essais": [ ... ],
"filtres": "null",
"modalites": [ ... ],
"variables": [ ... ],
"repetitions": [ ... ],
"creation": "2021-06-14 17:27:35.911688+02",
"modification": "2021-06-14 17:27:35.911688+02",
"generation": null,
"media": null,
"etat": { ... }
}
}
Received response:
Request failed with error:
Regroupement d'Essais - Repetitions
requires authentication
Modifie un regroupement d'essais
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/1/regroupement_essai/2/repetition" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"repetitions":"null"}'
const url = new URL(
"https://api.oss.coop/protocole/1/regroupement_essai/2/repetition"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"repetitions": "null"
}
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/1/regroupement_essai/2/repetition',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'repetitions' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "null",
"essais": [ ... ],
"filtres": "null",
"modalites": [ ... ],
"variables": [ ... ],
"repetitions": [ ... ],
"creation": "2021-06-14 17:27:35.911688+02",
"modification": "2021-06-14 17:27:35.911688+02",
"generation": null,
"media": null,
"etat": { ... }
}
}
Received response:
Request failed with error:
Regroupement d'Essais - Variables calculées
requires authentication
Modifie un regroupement d'essais
Example request:
curl -X PATCH \
"https://api.oss.coop/protocole/1/regroupement_essai/2/variable-calculee" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"variables":"null"}'
const url = new URL(
"https://api.oss.coop/protocole/1/regroupement_essai/2/variable-calculee"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"variables": "null"
}
fetch(url, {
method: "PATCH",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/protocole/1/regroupement_essai/2/variable-calculee',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'variables' => 'null',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "null",
"essais": [ ... ],
"filtres": "null",
"modalites": [ ... ],
"variables": [ ... ],
"creation": "2021-06-14 17:27:35.911688+02",
"modification": "2021-06-14 17:27:35.911688+02",
"generation": null,
"media": null,
"etat": { ... }
}
}
Received response:
Request failed with error:
Zone - Lister
requires authentication
Liste des zones d'un modele d'étiquettes
Example request:
curl -X GET \
-G "https://api.oss.coop/etiquette/modele/1/zone?sort=nom.ASC%2Cid.DESC&page=2&limit=20" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/etiquette/modele/1/zone"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "2",
"limit": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/etiquette/modele/1/zone',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '2',
'limit'=> '20',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"couleur": "#00FFFF",
"taille_texte": "12.5",
"gras": false,
"italic": false,
"gabarit_zone": { ... }
}
]
}
Received response:
Request failed with error:
Zone - Voir
requires authentication
Détails d'une zone d'un modele d'étiquettes
Example request:
curl -X GET \
-G "https://api.oss.coop/etiquette/modele/1/zone/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/etiquette/modele/1/zone/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/etiquette/modele/1/zone/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"couleur": "#00FFFF",
"taille_texte": "12.5",
"gras": false,
"italic": false,
"gabarit_zone": { ... }
}
}
Received response:
Request failed with error:
Zone - Ajouter
requires authentication
Ajoute une zone d'un modele d'étiquettes
Example request:
curl -X POST \
"https://api.oss.coop/etiquette/modele/1/zone" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"couleur":"#F00","taille_texte":"16.5","gras":"true","italic":"true","gabarit_zone_uid":"gabarit1"}'
const url = new URL(
"https://api.oss.coop/etiquette/modele/1/zone"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"couleur": "#F00",
"taille_texte": "16.5",
"gras": "true",
"italic": "true",
"gabarit_zone_uid": "gabarit1"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/etiquette/modele/1/zone',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'couleur' => '#F00',
'taille_texte' => '16.5',
'gras' => 'true',
'italic' => 'true',
'gabarit_zone_uid' => 'gabarit1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"couleur": "#F00",
"taille_texte": "16.5",
"gras": true,
"italic": true,
"gabarit_zone": { ... }
}
}
Received response:
Request failed with error:
Zone - Modifier
requires authentication
Modifie une zone d'un modele d'étiquettes
Example request:
curl -X PUT \
"https://api.oss.coop/etiquette/modele/1/zone/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"couleur":"#F00","taille_texte":"12.5","gras":"false","italique":"false","gabarit_zone_id":"gabarit1","type_valeuretiquette_uid":"valeur1"}'
const url = new URL(
"https://api.oss.coop/etiquette/modele/1/zone/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"couleur": "#F00",
"taille_texte": "12.5",
"gras": "false",
"italique": "false",
"gabarit_zone_id": "gabarit1",
"type_valeuretiquette_uid": "valeur1"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/etiquette/modele/1/zone/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'couleur' => '#F00',
'taille_texte' => '12.5',
'gras' => 'false',
'italique' => 'false',
'gabarit_zone_id' => 'gabarit1',
'type_valeuretiquette_uid' => 'valeur1',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"couleur": "#F00",
"taille_texte": "12.5",
"gras": false,
"italic": false,
"gabarit_zone": { ... }
"type_valeur": { ... }
}
}
Received response:
Request failed with error:
Zone - Supprimer
requires authentication
Supprime une zone d'un modele d'étiquettes
Example request:
curl -X DELETE \
"https://api.oss.coop/etiquette/modele/1/zone/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/etiquette/modele/1/zone/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/etiquette/modele/1/zone/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Rapports
Generate
Génération d'un rapport fixe
requires authentication
Example request:
curl -X POST \
"https://api.oss.coop/rapport/9/generate" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/rapport/9/generate"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/rapport/9/generate',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta" : { ... },
"data" : { ... }
}
Received response:
Request failed with error:
Server status
Retourne le statut du serveur statistiques
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/server/stats/status" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/server/stats/status"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/server/stats/status',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta" : { ... },
"data" : { ... }
}
Received response:
Request failed with error:
Regroupement Exports
Generate
Génération d'un rapport fixe
requires authentication
Example request:
curl -X POST \
"https://api.oss.coop/regroupement/3/generate" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/regroupement/3/generate"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/regroupement/3/generate',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta" : { ... },
"data" : { ... }
}
Received response:
Request failed with error:
Tableau de bord
Essais
Liste des essais du tableau de bord
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/tableau-de-bord/essai?sort=nom.ASC%2Cid.DESC&page=14&limit=11" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/tableau-de-bord/essai"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "14",
"limit": "11",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/tableau-de-bord/essai',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '14',
'limit'=> '11',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "essai",
"numero": "azerty123",
"surface_implantation_largeur": "123.456",
"surface_implantation_longueur": "123.456",
"surface_application_largeur": "123.456",
"surface_application_longueur": "123.456",
"surface_recoltee_largeur": "123.456",
"surface_recoltee_longueur": "123.456",
"plate_forme": false,
"protocole": { ... },
"parcelle": { ... },
"modalite": { ... },
"technicien": { ... }
}
]
}
Received response:
Request failed with error:
Essais - Carte
Liste des essais et essais issus du partage du tableau de bord pour la carte
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/tableau-de-bord/map?sort=nom.ASC%2Cid.DESC&page=5&limit=17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/tableau-de-bord/map"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "5",
"limit": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/tableau-de-bord/map',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '5',
'limit'=> '17',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "essai",
"numero": "azerty123",
"surface_implantation_largeur": "123.456",
"surface_implantation_longueur": "123.456",
"surface_application_largeur": "123.456",
"surface_application_longueur": "123.456",
"surface_recoltee_largeur": "123.456",
"surface_recoltee_longueur": "123.456",
"plate_forme": false,
"protocole": { ... },
"parcelle": { ... },
"modalite": { ... },
"technicien": { ... }
}
]
}
Received response:
Request failed with error:
Essais - Protocole
Liste des essais issus d'un protocole du tableau de bord
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/tableau-de-bord/protocole/1?sort=nom.ASC%2Cid.DESC&page=9&limit=19" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/tableau-de-bord/protocole/1"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "9",
"limit": "19",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/tableau-de-bord/protocole/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '9',
'limit'=> '19',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"nom": "essai",
"numero": "azerty123",
"surface_implantation_largeur": "123.456",
"surface_implantation_longueur": "123.456",
"surface_application_largeur": "123.456",
"surface_application_longueur": "123.456",
"surface_recoltee_largeur": "123.456",
"surface_recoltee_longueur": "123.456",
"plate_forme": false,
"protocole": { ... },
"parcelle": { ... },
"modalite": { ... },
"technicien": { ... }
}
]
}
Received response:
Request failed with error:
Essais - Evenement
Liste des événements du tableau de bord
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/tableau-de-bord/essai/evenement?sort=nom.ASC%2Cid.DESC&page=18&limit=13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/tableau-de-bord/essai/evenement"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "18",
"limit": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/tableau-de-bord/essai/evenement',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '18',
'limit'=> '13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Evénement 1",
"observations": "Un événement",
"date_previsionnelle": "2150-12-31 12:00:00+02",
"date_realisation": "2150-12-31 12:00:00+02",
"type": { ... },
"passage": { ... },
"stade": { ... }
}
]
}
Received response:
Request failed with error:
Chiffres
Chiffres sur les essais du tableau de bord
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/tableau-de-bord/essai/chiffres[/{year:[0-9\,]+}]?sort=nom.ASC%2Cid.DESC&page=4&limit=20" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/tableau-de-bord/essai/chiffres[/{year:[0-9\,]+}]"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "4",
"limit": "20",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/tableau-de-bord/essai/chiffres[/{year:[0-9\,]+}]',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '4',
'limit'=> '20',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
]
}
Received response:
Request failed with error:
Taches Asynchrones
Lister
requires authentication
Liste des taches asynchrones
Example request:
curl -X GET \
-G "https://api.oss.coop/tache-asynchrone?sort=nom.ASC%2Cid.DESC&page=9&limit=8" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/tache-asynchrone"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "9",
"limit": "8",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/tache-asynchrone',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '9',
'limit'=> '8',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"creation": "2150-12-31 12:00:00+02",
"reception": null,
"adresse": null,
"codepostal": null,
"ville": null,
"informationscomplementaires": null,
"nom": null,
"contact": null,
"tel": null,
"pays": null,
"statut": { ... }
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'une tache asynchrone
Example request:
curl -X GET \
-G "https://api.oss.coop/tache-asynchrone/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/tache-asynchrone/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/tache-asynchrone/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"creation": "2150-12-31 12:00:00+02",
"reception": null,
"adresse": null,
"codepostal": null,
"ville": null,
"informationscomplementaires": null,
"nom": null,
"contact": null,
"tel": null,
"pays": null,
"statut": { ... }
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute une tache asynchrone
Example request:
curl -X POST \
"https://api.oss.coop/tache-asynchrone" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"type":"export_excel_essai_all_notations","parameters":"{\"essai_id\":1}"}'
const url = new URL(
"https://api.oss.coop/tache-asynchrone"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"type": "export_excel_essai_all_notations",
"parameters": "{\"essai_id\":1}"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/tache-asynchrone',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'type' => 'export_excel_essai_all_notations',
'parameters' => '{"essai_id":1}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"creation": "2150-12-31 12:00:00+02",
"reception": null,
"adresse": "2 Rue de Dublin",
"codepostal": "67300",
"ville": "Schiltigheim",
"informationscomplementaires": "Informations complementaires,"
"nom": "Mathieu",
"contact": "mhaller@diatem.net",
"tel": "0123456789",
"pays": { ... },
"statut": { ... }
}
}
Received response:
Request failed with error:
Annuler
requires authentication
Annule une commande
Example request:
curl -X PATCH \
"https://api.oss.coop/tache-asynchrone/2/annuler" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/tache-asynchrone/2/annuler"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/tache-asynchrone/2/annuler',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Relancer
requires authentication
Relance une commande
Example request:
curl -X PATCH \
"https://api.oss.coop/tache-asynchrone/2/relancer" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/tache-asynchrone/2/relancer"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "PATCH",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->patch(
'https://api.oss.coop/tache-asynchrone/2/relancer',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime une tache asynchrone
Example request:
curl -X DELETE \
"https://api.oss.coop/tache-asynchrone/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/tache-asynchrone/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/tache-asynchrone/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Taches
Tâches
Télécharger un document
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/taches/type/aut/ressource/quo/11/qui?position_geographique=1&modalite_bloc=&numero_ligne=1&numero_colonne=&numero_modalite=1&numero_bloc=&libelle_modalite=&type_modalite=1&couleurs=&modalites_off=veritatis&all=1&all_modalities=" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/taches/type/aut/ressource/quo/11/qui"
);
let params = {
"position_geographique": "1",
"modalite_bloc": "",
"numero_ligne": "1",
"numero_colonne": "",
"numero_modalite": "1",
"numero_bloc": "",
"libelle_modalite": "",
"type_modalite": "1",
"couleurs": "",
"modalites_off": "veritatis",
"all": "1",
"all_modalities": "",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/taches/type/aut/ressource/quo/11/qui',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'position_geographique'=> '1',
'modalite_bloc'=> '',
'numero_ligne'=> '1',
'numero_colonne'=> '',
'numero_modalite'=> '1',
'numero_bloc'=> '',
'libelle_modalite'=> '',
'type_modalite'=> '1',
'couleurs'=> '',
'modalites_off'=> 'veritatis',
'all'=> '1',
'all_modalities'=> '',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
Le document
}
Received response:
Request failed with error:
Etiquettes parcelles
Télécharger une planche d'étiquettes parcelles
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/taches/type/officiis/ressource/essai/11/etiquettes/12/parcelles?niveausaisie_uid=omnis&tuple=13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/taches/type/officiis/ressource/essai/11/etiquettes/12/parcelles"
);
let params = {
"niveausaisie_uid": "omnis",
"tuple": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/taches/type/officiis/ressource/essai/11/etiquettes/12/parcelles',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'niveausaisie_uid'=> 'omnis',
'tuple'=> '13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
Le document
}
Received response:
Request failed with error:
Etiquettes produits
Télécharger une planche d'étiquettes produits
requires authentication
Example request:
curl -X GET \
-G "https://api.oss.coop/taches/type/eum/ressource/evenement/12/etiquettes/10/produits" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/taches/type/eum/ressource/evenement/12/etiquettes/10/produits"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/taches/type/eum/ressource/evenement/12/etiquettes/10/produits',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
Le document
}
Received response:
Request failed with error:
Unités
Lister
requires authentication
Liste des unités
Example request:
curl -X GET \
-G "https://api.oss.coop/unite?sort=nom.ASC%2Cid.DESC&page=14&limit=13" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/unite"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "14",
"limit": "13",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/unite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '14',
'limit'=> '13',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"valeur": "valeur"
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'une unité
Example request:
curl -X GET \
-G "https://api.oss.coop/unite/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/unite/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/unite/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "id_unique_universel",
"valeur": "valeur"
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute une unité
Example request:
curl -X POST \
"https://api.oss.coop/unite" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel2","valeur":"valeur2"}'
const url = new URL(
"https://api.oss.coop/unite"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel2",
"valeur": "valeur2"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/unite',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel2',
'valeur' => 'valeur2',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel2",
"valeur": "valeur2"
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie une unité
Example request:
curl -X PUT \
"https://api.oss.coop/unite/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"id_unique_universel3","valeur":"valeur3"}'
const url = new URL(
"https://api.oss.coop/unite/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "id_unique_universel3",
"valeur": "valeur3"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/unite/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'id_unique_universel3',
'valeur' => 'valeur3',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "id_unique_universel3",
"valeur": "valeur3"
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime une unité
Example request:
curl -X DELETE \
"https://api.oss.coop/unite/14" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/unite/14"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/unite/14',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Utilisateurs
Lister
requires authentication
Liste des utilisateurs
Example request:
curl -X GET \
-G "https://api.oss.coop/utilisateur?sort=nom.ASC%2Cid.DESC&page=6&limit=4" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/utilisateur"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "6",
"limit": "4",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/utilisateur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '6',
'limit'=> '4',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"entite": { ... },
"profils": [ ... ],
"avatar": { ... },
"nom": "Louis",
"prenom": "JAEGER",
"nom_complet": "Louis JAEGER",
"email": "ljaeger@diatem.net",
"identifiant": "ljaeger",
"telportable": "012345789",
"couleur": 2
}
]
}
Received response:
Request failed with error:
Voir
requires authentication
Détails d'un utliisateur
Example request:
curl -X GET \
-G "https://api.oss.coop/utilisateur/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/utilisateur/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/utilisateur/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"entite": { ... },
"profils": [ ... ],
"avatar": { ... },
"nom": "Louis",
"prenom": "JAEGER",
"nom_complet": "Louis JAEGER",
"email": "ljaeger@diatem.net",
"identifiant": "ljaeger",
"telportable": "012345789",
"couleur": 2
}
}
Received response:
Request failed with error:
Ajouter
requires authentication
Ajoute un utliisateur
Example request:
curl -X POST \
"https://api.oss.coop/utilisateur" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"Jean-Luc","prenom":"Fritz","email":"jlfritz@diatem.net","actif":true,"telportable":"quo","entite_id":1,"avatar_id":5}'
const url = new URL(
"https://api.oss.coop/utilisateur"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "Jean-Luc",
"prenom": "Fritz",
"email": "jlfritz@diatem.net",
"actif": true,
"telportable": "quo",
"entite_id": 1,
"avatar_id": 5
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/utilisateur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'Jean-Luc',
'prenom' => 'Fritz',
'email' => 'jlfritz@diatem.net',
'actif' => true,
'telportable' => 'quo',
'entite_id' => 1,
'avatar_id' => 5,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"entite": { ... },
"profils": [ ... ],
"avatar": { ... },
"avatar": null,
"nom": "Jean-Luc",
"prenom": "Fritz",
"nom_complet": "Jean-Luc Fritz",
"email": "jlfritz@diatem.net",
"identifiant": "jlfritz",
"telportable": null,
"couleur": 3
}
}
Received response:
Request failed with error:
Modifier
requires authentication
Modifie un utliisateur
Example request:
curl -X PUT \
"https://api.oss.coop/utilisateur/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"nom":"Luc-Jean","prenom":"Ztirf","email":"ljztirf@diatem.net","actif":true,"telportable":"0123456789","entite_id":1,"avatar_id":2}'
const url = new URL(
"https://api.oss.coop/utilisateur/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"nom": "Luc-Jean",
"prenom": "Ztirf",
"email": "ljztirf@diatem.net",
"actif": true,
"telportable": "0123456789",
"entite_id": 1,
"avatar_id": 2
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/utilisateur/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'nom' => 'Luc-Jean',
'prenom' => 'Ztirf',
'email' => 'ljztirf@diatem.net',
'actif' => true,
'telportable' => '0123456789',
'entite_id' => 1,
'avatar_id' => 2,
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"entite": { ... },
"profils": [ ... ],
"avatar": { ... },
"nom": "Luc-Jean",
"prenom": "Ztirf",
"nom_complet": "Luc-Jean Ztirf",
"email": "ljztirf@diatem.net",
"identifiant": "ljztirf",
"telportable": "0123456789",
"couleur": 3
}
}
Received response:
Request failed with error:
Supprimer
requires authentication
Supprime un utliisateur
Example request:
curl -X DELETE \
"https://api.oss.coop/utilisateur/10" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/utilisateur/10"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/utilisateur/10',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Mot de passe
requires authentication
Envoie un mail à l'utilisateur cible contenant un lien de renouvellement de mot de passe.
Example request:
curl -X GET \
-G "https://api.oss.coop/utilisateur/1/mdp" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/utilisateur/1/mdp"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/utilisateur/1/mdp',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": "Un email de renouvellement de mot de passe à été envoyé."
}
Received response:
Request failed with error:
Profil - Lister
requires authentication
Liste des profils d'un utilisateur
Example request:
curl -X GET \
-G "https://api.oss.coop/utilisateur/1/profil" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/utilisateur/1/profil"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/utilisateur/1/profil',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "id_unique_universel",
"designation": "valeur"
}
]
}
Received response:
Request failed with error:
Profil - Modifier
requires authentication
Modifie les profils d'un utliisateur
Example request:
curl -X PUT \
"https://api.oss.coop/utilisateur/1/profil" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"profils":[{"uid":"id_unique_universel2"},{"uid":"id_unique_universel2"}]}'
const url = new URL(
"https://api.oss.coop/utilisateur/1/profil"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"profils": [
{
"uid": "id_unique_universel2"
},
{
"uid": "id_unique_universel2"
}
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/utilisateur/1/profil',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'profils' => [
[
'uid' => 'id_unique_universel2',
],
[
'uid' => 'id_unique_universel2',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"uid": "id_unique_universel2",
"designation": "valeur2"
}
]
}
Received response:
Request failed with error:
Utilitaires
Média - Lister
requires authentication
Liste des médias
Example request:
curl -X GET \
-G "https://api.oss.coop/utilitaire/media?sort=nom.ASC%2Cid.DESC&page=11&limit=6" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/utilitaire/media"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "11",
"limit": "6",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/utilitaire/media',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '11',
'limit'=> '6',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 2,
"nom": "nom utilisateur",
"jeton": "jeton_de_stockage",
"extension": "png",
"taille": 87172,
"utilisateur": { ... },
"type": {
"id": 1,
"mimetype": "image/jpeg,image/png",
"nom": "Avatar",
"uid": "avatar",
"taille_min": null,
"taille_max": 1024,
"largeur_min": 256,
"largeur_max": null,
"hauteur_min": 256,
"hauteur_max": null
}
}
]
}
Received response:
Request failed with error:
Média - Voir
requires authentication
Détails d'un média
Example request:
curl -X GET \
-G "https://api.oss.coop/utilitaire/media/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/utilitaire/media/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/utilitaire/media/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"destinataire": "ljaeger@diatem.net",
"expediteur": "ljaeger@test.com",
"objet": "Renouvellement de mot de passe",
"contenu": "<!DOCTYPE html>\n<html></html>",
"date_creation": "2021-06-14 17:27:35.911688+02",
"date_envoi": null
}
}
Received response:
Request failed with error:
Média - Supprimer
requires authentication
Supprime un média
Example request:
curl -X DELETE \
"https://api.oss.coop/utilitaire/media/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/utilitaire/media/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/utilitaire/media/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Média - Téléverser
requires authentication
Ajoute un media et son entrée en BDD
Example request:
curl -X POST \
"https://api.oss.coop/utilitaire/media/televerser" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: multipart/form-data" \
-F "morceau=@/tmp/phpy2RcM2"
const url = new URL(
"https://api.oss.coop/utilitaire/media/televerser"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('morceau', document.querySelector('input[name="morceau"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/utilitaire/media/televerser',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'multipart' => [
[
'name' => 'morceau',
'contents' => fopen('/tmp/phpy2RcM2', 'r')
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": 'en cours de téléversement'
}
Example response (201):
{
"meta": { ... },
"data": {
"id": 2,
"nom": "nom utilisateur2",
"jeton": "jeton_de_stockage2",
"extension": "jpg",
"taille": 87172,
"utilisateur": { ... },
"type": {
"id": 1,
"mimetype": "image/jpeg,image/png",
"nom": "Avatar",
"uid": "avatar",
"taille_min": null,
"taille_max": 1024,
"largeur_min": 256,
"largeur_max": null,
"hauteur_min": 256,
"hauteur_max": null
}
}
}
Received response:
Request failed with error:
Mail - Lister
requires authentication
Liste des mails
Example request:
curl -X GET \
-G "https://api.oss.coop/utilitaire/mail?sort=nom.ASC%2Cid.DESC&page=12&limit=12" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/utilitaire/mail"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "12",
"limit": "12",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/utilitaire/mail',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '12',
'limit'=> '12',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"destinataire": "ljaeger@diatem.net",
"expediteur": "ljaeger@test.com",
"objet": "Renouvellement de mot de passe",
"contenu": "<!DOCTYPE html>\n<html></html>",
"date_creation": "2021-06-14 17:27:35.911688+02",
"date_envoi": null
}
]
}
Received response:
Request failed with error:
Mail - Voir
requires authentication
Détails d'un mail
Example request:
curl -X GET \
-G "https://api.oss.coop/utilitaire/mail/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/utilitaire/mail/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/utilitaire/mail/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"destinataire": "ljaeger@diatem.net",
"expediteur": "ljaeger@test.com",
"objet": "Renouvellement de mot de passe",
"contenu": "<!DOCTYPE html>\n<html></html>",
"date_creation": "2021-06-14 17:27:35.911688+02",
"date_envoi": null
}
}
Received response:
Request failed with error:
error
requires authentication
Envoie un mail d'erreur
Example request:
curl -X POST \
"https://api.oss.coop/utilitaire/mail/erreur" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/utilitaire/mail/erreur"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/utilitaire/mail/erreur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{}
Received response:
Request failed with error:
Variables
Référentiel - Variable - Lister
requires authentication
Liste des variables d'un référentiel
Example request:
curl -X GET \
-G "https://api.oss.coop/variable?sort=nom.ASC%2Cid.DESC&page=10&limit=12" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/variable"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "10",
"limit": "12",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/variable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '10',
'limit'=> '12',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"uid": "v1",
"designation": "Azertyuiop",
"valeur_min": "0",
"valeur_max": "12.5",
"laboratoire": false,
"type": { ... },
"unite": { ... },
"themes": [ { ... } ],
"variables_calculees": [ { ... } ]
}
]
}
Received response:
Request failed with error:
Référentiel - Variable - Voir
requires authentication
Détails d'une variable d'un référentiel
Example request:
curl -X GET \
-G "https://api.oss.coop/variable/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/variable/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/variable/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"uid": "v1",
"designation": "Azertyuiop",
"valeur_min": "0",
"valeur_max": "12.5",
"laboratoire": false,
"type": { ... },
"unite": { ... },
"themes": [ { ... } ],
"variables_calculees": [ { ... } ]
}
}
Received response:
Request failed with error:
Référentiel - Variable - Ajouter
requires authentication
Ajoute une variable à un référentiel
Example request:
curl -X POST \
"https://api.oss.coop/variable" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"v2","designation":"Poiuytreza","valeur_min":"0","valeur_max":"12.5","laboratoire":false,"type_uid":"t1","unite_uid":"u1","themes":[{"uid":"t1"},{"uid":"t1"}],"variables_calculees":[{"uid":"vc1"},{"uid":"vc1"}]}'
const url = new URL(
"https://api.oss.coop/variable"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "v2",
"designation": "Poiuytreza",
"valeur_min": "0",
"valeur_max": "12.5",
"laboratoire": false,
"type_uid": "t1",
"unite_uid": "u1",
"themes": [
{
"uid": "t1"
},
{
"uid": "t1"
}
],
"variables_calculees": [
{
"uid": "vc1"
},
{
"uid": "vc1"
}
]
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/variable',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'v2',
'designation' => 'Poiuytreza',
'valeur_min' => '0',
'valeur_max' => '12.5',
'laboratoire' => false,
'type_uid' => 't1',
'unite_uid' => 'u1',
'themes' => [
[
'uid' => 't1',
],
[
'uid' => 't1',
],
],
'variables_calculees' => [
[
'uid' => 'vc1',
],
[
'uid' => 'vc1',
],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (201):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "v2",
"designation": "Poiuytreza",
"valeur_min": "0",
"valeur_max": "12.5",
"laboratoire": false,
"type": { ... },
"unite": { ... },
"themes": [ { ... } ],
"variables_calculees": [ { ... } ]
}
}
Received response:
Request failed with error:
Référentiel - Variable - Modifier
requires authentication
Modifie une variable d'un référentiel
Example request:
curl -X PUT \
"https://api.oss.coop/variable/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"uid":"v3","designation":"Nouvelle valeur","valeur_min":"null","valeur_max":"null","laboratoire":true,"type_uid":"t1","unite_uid":"null","themes":[{"uid":"t1"},{"uid":"t1"}],"variables_calculees":[{"uid":"vc1"},[]]}'
const url = new URL(
"https://api.oss.coop/variable/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"uid": "v3",
"designation": "Nouvelle valeur",
"valeur_min": "null",
"valeur_max": "null",
"laboratoire": true,
"type_uid": "t1",
"unite_uid": "null",
"themes": [
{
"uid": "t1"
},
{
"uid": "t1"
}
],
"variables_calculees": [
{
"uid": "vc1"
},
[]
]
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/variable/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'uid' => 'v3',
'designation' => 'Nouvelle valeur',
'valeur_min' => 'null',
'valeur_max' => 'null',
'laboratoire' => true,
'type_uid' => 't1',
'unite_uid' => 'null',
'themes' => [
[
'uid' => 't1',
],
[
'uid' => 't1',
],
],
'variables_calculees' => [
[
'uid' => 'vc1',
],
[],
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"uid": "v3",
"designation": "Nouvelle valeur",
"valeur_min": null,
"valeur_max": null,
"laboratoire": true,
"type": { ... },
"unite": null,
"themes": [],
"variables_calculees": []
}
}
Received response:
Request failed with error:
Référentiel - Variable - Supprimer
requires authentication
Supprime une variable d'un référentiel
Example request:
curl -X DELETE \
"https://api.oss.coop/variable/11" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/variable/11"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/variable/11',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error:
Valeur - Lister
requires authentication
Liste des valeurs d'une variable
Example request:
curl -X GET \
-G "https://api.oss.coop/variable/1/valeur?sort=nom.ASC%2Cid.DESC&page=2&limit=17" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/variable/1/valeur"
);
let params = {
"sort": "nom.ASC,id.DESC",
"page": "2",
"limit": "17",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/variable/1/valeur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'query' => [
'sort'=> 'nom.ASC,id.DESC',
'page'=> '2',
'limit'=> '17',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": [
{
"id": 1,
"designation": "Azertyuiop"
}
]
}
Received response:
Request failed with error:
Valeur - Voir
requires authentication
Détails d'une valeur d'une variable
Example request:
curl -X GET \
-G "https://api.oss.coop/variable/1/valeur/1" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/variable/1/valeur/1"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://api.oss.coop/variable/1/valeur/1',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 1,
"designation": "Azertyuiop"
}
}
Received response:
Request failed with error:
Valeur - Ajouter
requires authentication
Ajoute une valeur à une variable
Example request:
curl -X POST \
"https://api.oss.coop/variable/1/valeur" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Poiuytreza"}'
const url = new URL(
"https://api.oss.coop/variable/1/valeur"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Poiuytreza"
}
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.oss.coop/variable/1/valeur',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Poiuytreza',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (201):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Poiuytreza"
}
}
Received response:
Request failed with error:
Valeur - Modifier
requires authentication
Modifie une valeur d'une variable
Example request:
curl -X PUT \
"https://api.oss.coop/variable/1/valeur/2" \
-H "Authorization: Bearer {ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"designation":"Nouvelle valeur"}'
const url = new URL(
"https://api.oss.coop/variable/1/valeur/2"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"designation": "Nouvelle valeur"
}
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->put(
'https://api.oss.coop/variable/1/valeur/2',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
'json' => [
'designation' => 'Nouvelle valeur',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": {
"id": 2,
"designation": "Nouvelle valeur"
}
}
Received response:
Request failed with error:
Valeur - Supprimer
requires authentication
Supprime une valeur d'une variable
Example request:
curl -X DELETE \
"https://api.oss.coop/variable/1/valeur/10" \
-H "Authorization: Bearer {ACCESS_TOKEN}"
const url = new URL(
"https://api.oss.coop/variable/1/valeur/10"
);
let headers = {
"Authorization": "Bearer {ACCESS_TOKEN}",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());
$client = new \GuzzleHttp\Client();
$response = $client->delete(
'https://api.oss.coop/variable/1/valeur/10',
[
'headers' => [
'Authorization' => 'Bearer {ACCESS_TOKEN}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
Example response (200):
{
"meta": { ... },
"data": true
}
Received response:
Request failed with error: