Added postman tests.
This commit is contained in:
@@ -1,12 +1,14 @@
|
|||||||
# tracker
|
# tracker
|
||||||
|
|
||||||
# !important to run application you need a local or remote mysql connection
|
# SETUP
|
||||||
The connection parameters can be set in the file src/main/resources/application.properties.
|
The connection parameters can be set in the file src/main/resources/application.properties.
|
||||||
|
|
||||||
The MYSQL setup script can be found in SQL, alternatively you can use hibernate to create the tables.
|
The MYSQL setup script can be found in SQL, alternatively you can use hibernate to create the tables.
|
||||||
|
|
||||||
Fill in your parameters for 'password', 'username', 'host' and 'db' or delete them all and have hibernate create tables for you.
|
Fill in your parameters for 'password', 'username', 'host' and 'db' or delete them all and have hibernate create tables for you.
|
||||||
|
|
||||||
|
# Postman collection
|
||||||
|
Postman collection can be found in postman folder
|
||||||
|
|
||||||
# Introduction
|
# Introduction
|
||||||
This project uses Quarkus, the Supersonic Subatomic Java Framework.
|
This project uses Quarkus, the Supersonic Subatomic Java Framework.
|
||||||
|
|||||||
80
postman/Tracker.postman_collection.json
Normal file
80
postman/Tracker.postman_collection.json
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
{
|
||||||
|
"info": {
|
||||||
|
"_postman_id": "c1951f60-c409-4437-8353-e57e46efb23e",
|
||||||
|
"name": "Tracker",
|
||||||
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
||||||
|
"_exporter_id": "23599679"
|
||||||
|
},
|
||||||
|
"item": [
|
||||||
|
{
|
||||||
|
"name": "user_register",
|
||||||
|
"request": {
|
||||||
|
"auth": {
|
||||||
|
"type": "noauth"
|
||||||
|
},
|
||||||
|
"method": "POST",
|
||||||
|
"header": [],
|
||||||
|
"body": {
|
||||||
|
"mode": "graphql",
|
||||||
|
"graphql": {
|
||||||
|
"query": "mutation { \r\n \"username\": \"user\",\r\n \"password\": \"test\"\r\n}",
|
||||||
|
"variables": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"raw": "http://localhost:8080/graphql",
|
||||||
|
"protocol": "http",
|
||||||
|
"host": [
|
||||||
|
"localhost"
|
||||||
|
],
|
||||||
|
"port": "8080",
|
||||||
|
"path": [
|
||||||
|
"graphql"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"response": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "test",
|
||||||
|
"request": {
|
||||||
|
"auth": {
|
||||||
|
"type": "basic",
|
||||||
|
"basic": [
|
||||||
|
{
|
||||||
|
"key": "password",
|
||||||
|
"value": "test",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "username",
|
||||||
|
"value": "user",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"method": "POST",
|
||||||
|
"header": [],
|
||||||
|
"body": {
|
||||||
|
"mode": "graphql",
|
||||||
|
"graphql": {
|
||||||
|
"query": "{ test }",
|
||||||
|
"variables": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"raw": "http://localhost:8080/graphql",
|
||||||
|
"protocol": "http",
|
||||||
|
"host": [
|
||||||
|
"localhost"
|
||||||
|
],
|
||||||
|
"port": "8080",
|
||||||
|
"path": [
|
||||||
|
"graphql"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"response": []
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user