Giter Club home page Giter Club logo

backend's Introduction

backend

Travis Status

Browse the Swagger/OpenAPI definition.

This JAX-RS REST-API requires Apache TomEE 7.x or any other Java EE application server that uses CXF for JAX-RS, which is required for file upload.

It uses JPA to store it's data, you will need an default JPA data source and generate the initial schema.

See README.INSTALL for how to install TomEE on Windows.

Assemble a WAR

Git Bash: ./gradlew war

backend.war will appear in build/libs.

Deploy to Local TomEE

Git Bash (Replace user and pass with your TomEE manager-app credentials):

export CARGO_USER=user CARGO_PASS=pass CARGO_HOST=localhost CARGO_CONTAINER=tomcat8x
./gradlew redeployWar

Make sure that user has the manager-script role! For more information see README.INSTALL

Get Insomnia Workspace

Port to Other Application Server

You will need to change the types of the parameters of the methods that use multipart upload.

backend's People

Contributors

ciis0 avatar criztovyl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

backend's Issues

UserResource

  • GET /user/login
  • GET /user/privileges
  • POST /user/privileges
  • GET /user
  • POST /user
  • DELETE /user/{uid}
  • DTO

Rollenzuordnung verifizieren

Die Zuordnung von Nutzer zu den Rollen scheint beim Login nicht zu funktionieren, es wird immer gast vergeben.

Anmeldebogen

  1. Die Formatierung des Anmeldebogens sieht falsch aus.
  2. Wenn bei den Teilnahmen Zahlen eingetragen werden, kommt eine Fehlermeldung.
    (Es kann kein String aus einem Zahlenfeld gelesen werden)

ErgebnisResource

  • GET /ergebnis/{did}
  • POST /ergebnis/{did}/{eid}
  • PUT /ergebis/{did}
  • DELETE /ergebnis/{did}/{eid} ({did} überflüssig?)
  • DTO
  • #36

KlasseResource

  • GET /klasse
  • GET /klasse/{kid}
  • GET /klasse/{sid}
  • PUT /klasse
  • DTO
  • GET /klasse/{kid}/punkte
  • GET /klasse/punkte

Punkteberechnung

  • GET /leistung/disziplin/{did}
  • GET /klasse/{kid}/leistungen
  • ...?

Anmeldeupload

Fehlermeldung beim Upload.

Response Status: 500

<exceptionResponse>
<error>
true
</error>
<exception>
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException
</exception>
<message>
Cannot add or update a child row: a foreign key constraint fails (`sportfest`.`anmeldung`, CONSTRAINT `FKanmeldung224868` FOREIGN KEY (`DisziplinID`) REFERENCES `disziplin` (`DisziplinID`) ON DELETE CASCADE ON UPDATE CASCADE)
</message>
</exceptionResponse>

Sonderregeln

  • Variable: Sortierreihenfolge (ASC/DESC)
  • Variable: Sortierindex (primär, sekundär, ...)
  • Regel: counter

Fix codegen

  • Create branch swagger-generated with pure output of swagger-codegen
  • Create branch swagger-impl with changes to swagger-generated

For updates from codegen

  1. commit the new output to swagger-generated
  2. merge changes to swagger-impl
  3. partey

"Formbuilder"-Schnittstellen

Jedes Forumular zum Erfassen im Backend erhält ein JSON in dem definiert ist, wie die Daten zu erfassen sind.

Bsp.-JSON:

{
  "name": "Staffellauf",
  "desc": "...Beschreibung...",
  "team": false,
  "variables": [
    {
      "name": "Zeit",
      "desc": "Gelaufene Zeit in Minuten.",
      "type": {
        "type": "int"
      }
    },
    {
      "name": "Platzierung",
      "desc": "Erlaufene Platzierung (1., 2., 3., ...)",
      "type": {
        "type": "int",
        "min": 1
      }
    },
    {
      "name": "Blubb",
      "desc": "Nur um nen Auswahlfeld zu Demonstrieren",
      "type": {
        "type": "select",
        "values": [
          "bli",
          "bla",
          "blubb",
          "trulla",
          "troet"
        ]
      }
    }
  ]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.