Project structure

This commit is contained in:
Ondřej Fischer 2019-10-01 09:17:43 +02:00
parent ad104c1e19
commit 5af6057fde
8 changed files with 54 additions and 26 deletions

View File

@ -9,7 +9,7 @@ Acces Management System of Colsys: [Product info](http://produkty.colsys.cz/coln
## Endpoints
1. POST request - `/AaaManager/authSession` - to login, return JSON with token
2. `/SubjectManager/getSubjects` - get subjects
3. `/TokenManager/getTokens` - get tokens
4. `/TokenManager/setTokens` - set tokens
1. POST request - `/AaaManager/authSession` - to login, return JSON with Auth token
2. GET request - `/SubjectManager/getSubjects` - get subjects
3. GET request - `/TokenManager/getTokens` - get tokens
4. POST request - `/TokenManager/setTokens` - set tokens

View File

@ -1,23 +1,5 @@
QT -= gui
TEMPLATE = subdirs
CONFIG += c++11 console
CONFIG -= app_bundle
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
main.cpp
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
SUBDIRS += \
src/app \
test

8
src/app/app.pro Normal file
View File

@ -0,0 +1,8 @@
TEMPLATE = app
QT += core sql network
CONFIG += debug console
SOURCES += main.cpp
include(../colnod/colnod.pri)

9
src/colnod/colnod.pri Normal file
View File

@ -0,0 +1,9 @@
INCLUDEPATH += $$PWD
#SRC_DIR = $$PWD
message($$PWD)
SOURCES += \
$$PWD/requestmanager.cpp
HEADERS += \
$$PWD/requestmanager.h
message($$SOURCES)

5
src/config.json Normal file
View File

@ -0,0 +1,5 @@
{
"host": "https://localhost:8080",
"username": "spaceti",
"password": "SuperSecretPassword"
}

5
test/test.pro Normal file
View File

@ -0,0 +1,5 @@
TEMPLATE = subdirs
SUBDIRS += \
unitTests

View File

@ -0,0 +1,5 @@
{
"host": "https://localhost:8080",
"username": "spaceti",
"password": "SuperSecretPassword"
}

View File

@ -0,0 +1,14 @@
QT -= gui
QT += core sql network testlib
HEADERS += \
unittest.h
SOURCES += \
unittest.cpp
include(../../src/colnod/colnod.pri)
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target