Giter Club home page Giter Club logo

pizzashop's Introduction

PizzaShop

Docketu :

http://docketu.iutnc.univ-lorraine.fr:18250/ : adminer http://docketu.iutnc.univ-lorraine.fr:18251/ : catalogue http://docketu.iutnc.univ-lorraine.fr:18252/ : commande

Curl des routes gateway :

Produits :

curl --location 'http://localhost:3080/produits'
--header 'Origin: *'
--data ''

Un produit par numéro :

curl --location 'http://localhost:3080/produit/1'
--header 'Origin: *'
--data ''

Produits d’une catégorie :

curl --location 'http://localhost:3080/categories/7/produits'
--header 'Origin: *'
--data ''

Affichage UNE commande :

curl --location 'http://localhost:3080/commandes/112e7ee1-3e8d-37d6-89cf-be3318ad6368'
--header 'Origin: *'
--data ''

SIGNIN ds le shop :

curl --location --request POST 'http://localhost:3080/signin'
--header 'Origin: *'
--header 'Authorization: Basic QWxpeFBlcnJvdDpBbGl4UGVycm90'
--data ''

CreateCommand :

curl --location 'http://localhost:2080/createCommand'
--header 'Origin: *'
--header 'Content-Type: text/plain'
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwODAvIiwic3ViIjoicGl6emEtc2hvcC5kYiIsImF1ZCI6InBpenphc2hvcGNvbXBvbmVudHMtYXBpLnBpenphLWF1dGgtMSIsImlhdCI6MTcwNDgwOTA4NywiZXhwIjoxNzA0ODEyNjg3LCJ1c2VybmFtZSI6IkFsaXhQZXJyb3QifQ.s4afTZJQ42j5ifRYigOsMr3GrRpx8zPjiOnivOvqQDY'
--data-raw '{ "refresh_token": "ac590b521c41d3d4dd0c901b040d1b6317817b693a7b830b5f1d1e010e411a9a", "mail_client": "[email protected]", "type_livraison": 2, "items": [ { "numero": 1, "taille": 1, "quantite": 3 } ] }'

curl --location --request GET 'http://localhost:3080/api/users/validate'
--header 'Content-Type: text/plain'
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwODAvIiwic3ViIjoicGl6emEtc2hvcC5kYiIsImF1ZCI6InBpenphc2hvcGNvbXBvbmVudHMtYXBpLnBpenphLWF1dGgtMSIsImlhdCI6MTY5OTk1NzY5MCwiZXhwIjoxNjk5OTYxMjkwLCJ1c2VybmFtZSI6IkFsaXhQZXJyb3QifQ.98whuYU_nOJm9-JRsQPl8kKV3UL1T0f4KUvSUcuswVw'
--data '{ "refresh_token": "ac590b521c41d3d4dd0c901b040d1b6317817b693a7b830b5f1d1e010e411a9a" }'

curl --request POST
--url http://localhost:3080/api/users/signin
--header 'Authorization: Basic Q2hhcmxlczptZHA='
--header 'Content-Type: application/json'
--header 'User-Agent: insomnia/8.3.0'

curl --location 'http://localhost:3080/api/users/refresh'
--header 'Content-Type: text/plain'
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwODAvIiwic3ViIjoicGl6emEtc2hvcC5kYiIsImF1ZCI6InBpenphc2hvcGNvbXBvbmVudHMtYXBpLnBpenphLWF1dGgtMSIsImlhdCI6MTY5OTMwNTY3OCwiZXhwIjoxNjk5MzA5Mjc4LCJ1c2VybmFtZSI6IkFsaXhQZXJyb3QifQ.k04E-pJedwOp_6Os0_7Y9S6GtftqF_nEfu3lhJcmcsg'
--data '{ "refresh_token": "ac590b521c41d3d4dd0c901b040d1b6317817b693a7b830b5f1d1e010e411a9a"}'

CURL DES ROUTES PAS PAS PAS GATEWAY :

Produits :

curl --location 'http://localhost:2080/produits'
--header 'Origin: *'
--data ''

Un produit par numéro :

curl --location 'http://localhost:2080/produit/1'
--header 'Origin: *'
--data ''

Produits d’une catégorie :

curl --location 'http://localhost:2080/categories/7/produits'
--header 'Origin: *'
--data ''

Affichage UNE commande :

curl --location 'http://localhost:2080/commandes/112e7ee1-3e8d-37d6-89cf-be3318ad6368'
--header 'Origin: *'
--data ''

SIGNIN ds le shop :

curl --location --request POST 'http://localhost:2080/signin'
--header 'Origin: *'
--header 'Authorization: Basic QWxpeFBlcnJvdDpBbGl4UGVycm90'
--data ''

CreateCommand :

curl --location 'http://localhost:2080/createCommand'
--header 'Origin: *'
--header 'Content-Type: text/plain'
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwODAvIiwic3ViIjoicGl6emEtc2hvcC5kYiIsImF1ZCI6InBpenphc2hvcGNvbXBvbmVudHMtYXBpLnBpenphLWF1dGgtMSIsImlhdCI6MTcwNDgwOTA4NywiZXhwIjoxNzA0ODEyNjg3LCJ1c2VybmFtZSI6IkFsaXhQZXJyb3QifQ.s4afTZJQ42j5ifRYigOsMr3GrRpx8zPjiOnivOvqQDY'
--data-raw '{ "refresh_token": "ac590b521c41d3d4dd0c901b040d1b6317817b693a7b830b5f1d1e010e411a9a", "mail_client": "[email protected]", "type_livraison": 2, "items": [ { "numero": 1, "taille": 1, "quantite": 3 } ] }'

pizzashop's People

Contributors

hollowone1 avatar antonin10800 avatar agdlngr avatar creeperror 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.