Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Architecture et Application Web -- 2022-2023 -- TP - RAJOHNSON
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Architecture Web
Architecture et Application Web -- 2022-2023 -- TP - RAJOHNSON
Commits
0860bef2
Commit
0860bef2
authored
1 year ago
by
narindra.rajohnso
Browse files
Options
Downloads
Patches
Plain Diff
add postman collection
parent
5151b80b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
API_Quizz_Game_RAJOHNSON_JAQUET.postman_collection.json
+521
-0
521 additions, 0 deletions
API_Quizz_Game_RAJOHNSON_JAQUET.postman_collection.json
with
521 additions
and
0 deletions
API_Quizz_Game_RAJOHNSON_JAQUET.postman_collection.json
0 → 100644
+
521
−
0
View file @
0860bef2
{
"info"
:
{
"_postman_id"
:
"49fbecc8-f2eb-48fd-83a7-d6bc93e2ac4e"
,
"name"
:
"API_Quizz_Game_RAJOHNSON_JAQUET"
,
"schema"
:
"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
,
"_exporter_id"
:
"25046289"
},
"item"
:
[
{
"name"
:
"Invités"
,
"item"
:
[
{
"name"
:
"Guest Create Account"
,
"request"
:
{
"method"
:
"POST"
,
"header"
:
[
{
"key"
:
"Content-Type"
,
"value"
:
"application/json"
,
"type"
:
"text"
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\n
\"
username
\"
:
\"
user1
\"
,
\n
\"
password
\"
:
\"
qwertzuiop
\"
,
\n
\"
lastname
\"
:
\"
user
\"
,
\n
\"
firstname
\"
:
\"
un
\"
,
\n
\"
email
\"
:
\"
user1@titu.ch
\"
,
\n
\"
accountType
\"
: 0
\n
}"
},
"url"
:
{
"raw"
:
"http://localhost:30992/api/v1/guests/users/"
,
"protocol"
:
"http"
,
"host"
:
[
"localhost"
],
"port"
:
"30992"
,
"path"
:
[
"api"
,
"v1"
,
"guests"
,
"users"
,
""
],
"query"
:
[
{
"key"
:
"username"
,
"value"
:
"test"
,
"disabled"
:
true
},
{
"key"
:
"password"
,
"value"
:
"sldfsdfds"
,
"disabled"
:
true
},
{
"key"
:
"accountType"
,
"value"
:
"1"
,
"disabled"
:
true
}
]
}
},
"response"
:
[]
},
{
"name"
:
"Guest Connect User"
,
"request"
:
{
"method"
:
"POST"
,
"header"
:
[],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\n
\"
password
\"
:
\"
qwertzuiop
\"\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"http://localhost:30992/api/v1/guests/users/admin1"
,
"protocol"
:
"http"
,
"host"
:
[
"localhost"
],
"port"
:
"30992"
,
"path"
:
[
"api"
,
"v1"
,
"guests"
,
"users"
,
"admin1"
]
}
},
"response"
:
[]
}
]
},
{
"name"
:
"Utilisateurs"
,
"item"
:
[
{
"name"
:
"Get user info(in game)"
,
"request"
:
{
"auth"
:
{
"type"
:
"bearer"
,
"bearer"
:
[
{
"key"
:
"token"
,
"value"
:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYWRtaW4iLCJ1c2VybmFtZSI6ImFkbWluMSIsImZpcnN0bmFtZSI6InVuIiwibGFzdG5hbWUiOiJhZG1pbiIsImlhdCI6MTY4NjY1MTc5M30.kf00PdlQLPoAYmLxXhZiun-o5s1X0fysTp18TMeVIsA"
,
"type"
:
"string"
}
]
},
"method"
:
"GET"
,
"header"
:
[],
"url"
:
{
"raw"
:
"http://localhost:30992/api/v1/users/admin1"
,
"protocol"
:
"http"
,
"host"
:
[
"localhost"
],
"port"
:
"30992"
,
"path"
:
[
"api"
,
"v1"
,
"users"
,
"admin1"
]
}
},
"response"
:
[]
}
]
},
{
"name"
:
"Administrateurs"
,
"item"
:
[
{
"name"
:
"Gestion d'utilisateurs"
,
"item"
:
[
{
"name"
:
"List users"
,
"request"
:
{
"auth"
:
{
"type"
:
"bearer"
,
"bearer"
:
[
{
"key"
:
"token"
,
"value"
:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYWRtaW4iLCJ1c2VybmFtZSI6ImFkbWluMSIsImZpcnN0bmFtZSI6InVuIiwibGFzdG5hbWUiOiJhZG1pbiIsImlhdCI6MTY4NjU3MzcyOX0.OKw1SIjSnIIoEYbLfe21jF9GOJmo7TbSnDBKugpgaWs"
,
"type"
:
"string"
}
]
},
"method"
:
"GET"
,
"header"
:
[],
"url"
:
{
"raw"
:
"http://localhost:30992/api/v1/admins/admin1/users"
,
"protocol"
:
"http"
,
"host"
:
[
"localhost"
],
"port"
:
"30992"
,
"path"
:
[
"api"
,
"v1"
,
"admins"
,
"admin1"
,
"users"
]
}
},
"response"
:
[]
},
{
"name"
:
"Create New User"
,
"request"
:
{
"auth"
:
{
"type"
:
"bearer"
,
"bearer"
:
[
{
"key"
:
"token"
,
"value"
:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYWRtaW4iLCJ1c2VybmFtZSI6ImFkbWluMSIsImZpcnN0bmFtZSI6InVuIiwibGFzdG5hbWUiOiJhZG1pbiIsImlhdCI6MTY4NjU3MzcyOX0.OKw1SIjSnIIoEYbLfe21jF9GOJmo7TbSnDBKugpgaWs"
,
"type"
:
"string"
}
]
},
"method"
:
"POST"
,
"header"
:
[],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\n
\"
username
\"
:
\"
new78
\"
,
\n
\"
password
\"
:
\"
k3nregn
\"
,
\n
\"
lastname
\"
:
\"
rajohn
\"
,
\n
\"
firstname
\"
:
\"
dav
\"
,
\n
\"
email
\"
:
\"
test@titu.ch
\"
,
\n
\"
accountType
\"
: 0
\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"http://localhost:30992/api/v1/admins/admin1/users"
,
"protocol"
:
"http"
,
"host"
:
[
"localhost"
],
"port"
:
"30992"
,
"path"
:
[
"api"
,
"v1"
,
"admins"
,
"admin1"
,
"users"
]
}
},
"response"
:
[]
},
{
"name"
:
"Update User"
,
"request"
:
{
"auth"
:
{
"type"
:
"bearer"
,
"bearer"
:
[
{
"key"
:
"token"
,
"value"
:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYWRtaW4iLCJ1c2VybmFtZSI6ImFkbWluMSIsImZpcnN0bmFtZSI6InVuIiwibGFzdG5hbWUiOiJhZG1pbiIsImlhdCI6MTY4NjU3MzcyOX0.OKw1SIjSnIIoEYbLfe21jF9GOJmo7TbSnDBKugpgaWs"
,
"type"
:
"string"
}
]
},
"method"
:
"PUT"
,
"header"
:
[],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\n
\"
accountType
\"
: 0
\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"http://localhost:30992/api/v1/admins/admin1/users/johndoe74"
,
"protocol"
:
"http"
,
"host"
:
[
"localhost"
],
"port"
:
"30992"
,
"path"
:
[
"api"
,
"v1"
,
"admins"
,
"admin1"
,
"users"
,
"johndoe74"
]
}
},
"response"
:
[]
},
{
"name"
:
"Delete User"
,
"request"
:
{
"auth"
:
{
"type"
:
"bearer"
,
"bearer"
:
[
{
"key"
:
"token"
,
"value"
:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYWRtaW4iLCJ1c2VybmFtZSI6ImFkbWluMSIsImZpcnN0bmFtZSI6InVuIiwibGFzdG5hbWUiOiJhZG1pbiIsImlhdCI6MTY4NjU3MzcyOX0.OKw1SIjSnIIoEYbLfe21jF9GOJmo7TbSnDBKugpgaWs"
,
"type"
:
"string"
}
]
},
"method"
:
"DELETE"
,
"header"
:
[],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
""
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"http://localhost:30992/api/v1/admins/users/new78"
,
"protocol"
:
"http"
,
"host"
:
[
"localhost"
],
"port"
:
"30992"
,
"path"
:
[
"api"
,
"v1"
,
"admins"
,
"users"
,
"new78"
]
}
},
"response"
:
[]
}
]
},
{
"name"
:
"Gestions des questions"
,
"item"
:
[
{
"name"
:
"List questions"
,
"request"
:
{
"auth"
:
{
"type"
:
"bearer"
,
"bearer"
:
[
{
"key"
:
"token"
,
"value"
:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYWRtaW4iLCJ1c2VybmFtZSI6ImFkbWluMSIsImZpcnN0bmFtZSI6InVuIiwibGFzdG5hbWUiOiJhZG1pbiIsImlhdCI6MTY4NjU3MzcyOX0.OKw1SIjSnIIoEYbLfe21jF9GOJmo7TbSnDBKugpgaWs"
,
"type"
:
"string"
}
]
},
"method"
:
"GET"
,
"header"
:
[],
"url"
:
{
"raw"
:
"http://localhost:30992/api/v1/admins/admin1/list-questions"
,
"protocol"
:
"http"
,
"host"
:
[
"localhost"
],
"port"
:
"30992"
,
"path"
:
[
"api"
,
"v1"
,
"admins"
,
"admin1"
,
"list-questions"
]
}
},
"response"
:
[]
},
{
"name"
:
"Create New Question"
,
"request"
:
{
"auth"
:
{
"type"
:
"bearer"
,
"bearer"
:
[
{
"key"
:
"token"
,
"value"
:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYWRtaW4iLCJ1c2VybmFtZSI6ImFkbWluMSIsImZpcnN0bmFtZSI6InVuIiwibGFzdG5hbWUiOiJhZG1pbiIsImlhdCI6MTY4NjU3MzcyOX0.OKw1SIjSnIIoEYbLfe21jF9GOJmo7TbSnDBKugpgaWs"
,
"type"
:
"string"
}
]
},
"method"
:
"POST"
,
"header"
:
[],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\n
\"
question
\"
:
\"
Comment cela marche t-il?
\"
,
\n
\"
possibleResponse
\"
: [
\n
\"
Par télépathie
\"
,
\n
\"
A l'aveugle
\"
,
\n
\"
A l'aide de tes connaissances
\"\n
],
\n
\"
correctResponse
\"
: 2,
\n
\"
category
\"
:
\"
Comment
\"\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"http://localhost:30992/api/v1/admins/admin1/questions"
,
"protocol"
:
"http"
,
"host"
:
[
"localhost"
],
"port"
:
"30992"
,
"path"
:
[
"api"
,
"v1"
,
"admins"
,
"admin1"
,
"questions"
]
}
},
"response"
:
[]
},
{
"name"
:
"Update Question"
,
"request"
:
{
"auth"
:
{
"type"
:
"bearer"
,
"bearer"
:
[
{
"key"
:
"token"
,
"value"
:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYWRtaW4iLCJ1c2VybmFtZSI6ImFkbWluMSIsImZpcnN0bmFtZSI6InVuIiwibGFzdG5hbWUiOiJhZG1pbiIsImlhdCI6MTY4NjU3MzcyOX0.OKw1SIjSnIIoEYbLfe21jF9GOJmo7TbSnDBKugpgaWs"
,
"type"
:
"string"
}
]
},
"method"
:
"PUT"
,
"header"
:
[],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
"{
\n
\"
possibleResponse
\"
: [
\n
\"
Marc
\"
,
\n
\"
Joseph
\"
,
\n
\"
Richard
\"\n
],
\n
\"
correctResponse
\"
: 1,
\n
\"
category
\"
:
\"
Nom
\"\n
}"
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"http://localhost:30992/api/v1/admins/admin1/questions/18"
,
"protocol"
:
"http"
,
"host"
:
[
"localhost"
],
"port"
:
"30992"
,
"path"
:
[
"api"
,
"v1"
,
"admins"
,
"admin1"
,
"questions"
,
"18"
]
}
},
"response"
:
[]
},
{
"name"
:
"Delete Question"
,
"request"
:
{
"auth"
:
{
"type"
:
"bearer"
,
"bearer"
:
[
{
"key"
:
"token"
,
"value"
:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYWRtaW4iLCJ1c2VybmFtZSI6ImFkbWluMSIsImZpcnN0bmFtZSI6InVuIiwibGFzdG5hbWUiOiJhZG1pbiIsImlhdCI6MTY4NjU3MzcyOX0.OKw1SIjSnIIoEYbLfe21jF9GOJmo7TbSnDBKugpgaWs"
,
"type"
:
"string"
}
]
},
"method"
:
"DELETE"
,
"header"
:
[],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
""
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"http://localhost:30992/api/v1/admins/admin1/questions/18"
,
"protocol"
:
"http"
,
"host"
:
[
"localhost"
],
"port"
:
"30992"
,
"path"
:
[
"api"
,
"v1"
,
"admins"
,
"admin1"
,
"questions"
,
"18"
]
}
},
"response"
:
[]
}
]
},
{
"name"
:
"Get admin info"
,
"protocolProfileBehavior"
:
{
"disableBodyPruning"
:
true
},
"request"
:
{
"auth"
:
{
"type"
:
"bearer"
,
"bearer"
:
[
{
"key"
:
"token"
,
"value"
:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYWRtaW4iLCJ1c2VybmFtZSI6ImFkbWluMSIsImZpcnN0bmFtZSI6InVuIiwibGFzdG5hbWUiOiJhZG1pbiIsImlhdCI6MTY4NjU3MzcyOX0.OKw1SIjSnIIoEYbLfe21jF9GOJmo7TbSnDBKugpgaWs"
,
"type"
:
"string"
}
]
},
"method"
:
"GET"
,
"header"
:
[
{
"key"
:
"Authorization"
,
"value"
:
""
,
"type"
:
"text"
,
"disabled"
:
true
}
],
"body"
:
{
"mode"
:
"raw"
,
"raw"
:
""
,
"options"
:
{
"raw"
:
{
"language"
:
"json"
}
}
},
"url"
:
{
"raw"
:
"http://localhost:30992/api/v1/admins/admin1"
,
"protocol"
:
"http"
,
"host"
:
[
"localhost"
],
"port"
:
"30992"
,
"path"
:
[
"api"
,
"v1"
,
"admins"
,
"admin1"
]
}
},
"response"
:
[]
}
]
}
]
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment