Code Monkey home page Code Monkey logo

swe-mehrmarkt's People

Contributors

kacper-kp avatar majdbousaad avatar shaco74 avatar

Watchers

 avatar

swe-mehrmarkt's Issues

REST API Konzept erstellen

Es muss ein Konzept erstellt werden über die REST API zwischen Frontend und Backend.
Der Umfang:

  • Alle Endpunkte mit jeweiliger HTTP-Methode (PUT, POST, GET, DELETE), URL, Beschreibung
  • Die erwartete Payload auf den Endpunkten als typisiertes Objekt. z.B:
    Lieferant anlegen
{
   "name":"string",
   "adresse":"string",
   "products":[
      {
         "name":"string",
         "preis":"double"
      }
   ]
}

Anstehende Lieferung wird nicht im Dashboard angezeigt (FrontEnd)

Steps to Reproduce: Lege im Einkauf eine neue Lieferung an und setzte das Lieferdatum auf den heutigen Tag. Und navigiere dannach zum Dashboard
Erwartetes Ergebnis: Die Lieferung wird im Dashboard unter den "Heutigen-Lieferungen" angezeigt.
Tatsächliches Ergebnis: Die Lieferung wird zwar im Einkauf angezeigt, aber fehlt im Dashboard

getestet auf develop
(keine Testdaten benötigt)

Setup local hosted DB for development

Die DB könnte über eine simple dockerfile erstellt werden beim development. Eventuell gibts eine noch leichtere Lösung, dass Entwickler nicht erst docker installieren müssen?

Delete Lieferant Endpoint

@majdbousaad Hi ich habe hier eine Issue für dich. Ich bräuchte in Backend einen DELETE Entpoint für Lieferanten.

Ich habe eine Lösch Funktion implementiert. Hier ein ausschinitt:

onConfirm: async () => {
      console.log('delete')
      setIsConfirmDeleteShowing(false)
      await axios
        .delete(`http://localhost:8080/lieferant/${lieferant.id}`)
        .catch(() => {
          enqueueSnackbar('Es ist ein Fehler aufgetreten', { variant: 'error' })
        })
        .then(() => {
          fetchLieferanten()
          enqueueSnackbar('Lieferant wurde gelöscht', { variant: 'success' })
        })

      handleClose()
    },

Stell biette die URI http://localhost:8080/lieferant/${lieferant.id} zu verfügung

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.