Added postman tests.

This commit is contained in:
2024-10-07 16:53:33 +02:00
parent d0df84ab57
commit ccd327d714
2 changed files with 83 additions and 1 deletions

View File

@@ -1,12 +1,14 @@
# 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 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.
# Postman collection
Postman collection can be found in postman folder
# Introduction
This project uses Quarkus, the Supersonic Subatomic Java Framework.

View 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": []
}
]
}