Coder Social home page Coder Social logo

htw-webtech / products-json-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 2.0 180 KB

Vorlage für eine JSON-API-basierte Variante von Products-JS

Home Page: https://beier.f4.htw-berlin.de/aufgaben/jquery-webservices

License: MIT License

PHP 45.93% HTML 27.00% JavaScript 14.57% CSS 12.49%

products-json-template's Introduction

Products-JSON-Template

Der Produktmanager von Splendr war auf einer Web-Konferenz und hat gehört, dass dieses Ajax sehr wichtig ist. Jetzt möchte er das auch haben.

Ihr Aufgabe ist es, einen entsprechenden Prototypen zu bauen.

Um sich die Arbeit zu erleichtern, können Sie eine JavaScript-Bibliothek namens jQuery verwenden. Nützliche Lernquellen finden Sie unter der Hilfeseite jQuery und als Beispiel-Projekt einen Wechselkursrechner.

Zudem wird Ihnen eine fertige, in PHP geschriebene API zur Verfügung gestellt: github.com/HTW-Webtech/Products-JSON-Template. Sie bietet ein (halbwegs) REST-basiertes Interface zum Anlegen, Bearbeiten, Anzeigen und Löschen von Produkten. Die Daten werden dabei im JSON-Format ausgetauscht. Die Schnittstelle sieht wie folgt aus:

HTTP Pfad Aktion
GET / Gibt alle Produkte zurück
GET /:id Gibt ein Produkt zurück
POST / Legt ein neues Produkt an
PUT /:id Ändert ein Produkt
DELETE /:id Löscht ein Produkt

Ein Produkt muss dabei als JSON-Objekt übergeben werden und kann die Schlüssel name, url, image und price enthalten.

products-json-template's People

Contributors

maxbeier avatar

Watchers

 avatar James Cloos avatar Franz Zieris avatar

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.