Skip to content
Snippets Groups Projects
Commit ae1b23e8 authored by LECHA Benjamin's avatar LECHA Benjamin
Browse files

Ajout de la collection Bruno + maj SQL

parent 05f873f8
No related branches found
No related tags found
No related merge requests found
meta {
name: Add réseau
type: http
seq: 4
}
post {
url: http://localhost:3000/reseau
body: none
auth: none
}
meta {
name: Add réseau_sudo_user
type: http
seq: 5
}
post {
url: http://localhost:3000/reseau
body: json
auth: bearer
}
auth:bearer {
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic3Vkb191c2VyIn0.fOLg-hXMLLRbPdifad1ieqwB-QMrk-YwpxpY-maT7qI
}
body:json {
{
"nom_reseau" : "Fédération des réseaux métiers d’Administrateurs Systèmes et Réseaux dans l'Enseignement et la Recherche",
"acronyme_reseau" : "Resinfo",
"id_type_reseau" : "2"
}
}
meta {
name: Liste_Réseaux_FK
type: http
seq: 6
}
get {
url: http://localhost:3000/reseau?select=acro:acronyme_reseau,id_type_reseau:type_reseau(nom_type_reseau)
body: none
auth: none
}
query {
select: acro:acronyme_reseau,id_type_reseau:type_reseau(nom_type_reseau)
}
meta {
name: Liste_Réseaux_FK_sudo_user
type: http
seq: 7
}
get {
url: http://localhost:3000/reseau?select=nom_reseau,type_reseau(nom_type_reseau)
body: none
auth: bearer
}
query {
select: nom_reseau,type_reseau(nom_type_reseau)
}
auth:bearer {
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic3Vkb191c2VyIn0.fOLg-hXMLLRbPdifad1ieqwB-QMrk-YwpxpY-maT7qI
}
meta {
name: Liste_Réseaux_FK_sudo_user_Where
type: http
seq: 8
}
get {
url: http://localhost:3000/reseau?select=acro:acronyme_reseau,type_reseau(nom_type_reseau)&id_type_reseau=eq.1
body: none
auth: bearer
}
query {
select: acro:acronyme_reseau,type_reseau(nom_type_reseau)
id_type_reseau: eq.1
}
auth:bearer {
token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic3Vkb191c2VyIn0.fOLg-hXMLLRbPdifad1ieqwB-QMrk-YwpxpY-maT7qI
}
...@@ -26,4 +26,5 @@ grant select on table "reseau" to auth_user; ...@@ -26,4 +26,5 @@ grant select on table "reseau" to auth_user;
create role sudo_user noinherit login password 'sudo_test'; create role sudo_user noinherit login password 'sudo_test';
grant usage on schema public to sudo_user; grant usage on schema public to sudo_user;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO sudo_user; GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO sudo_user;
\ No newline at end of file GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO sudo_user;
\ No newline at end of file
...@@ -32,7 +32,5 @@ services: ...@@ -32,7 +32,5 @@ services:
image: adminer:latest image: adminer:latest
container_name: adminer container_name: adminer
restart: always restart: always
environment:
ADMINER_DESIGN: 'galkaev'
ports: ports:
- "8080:8080" - "8080:8080"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment