mhshahzad / order-pizza-api Goto Github PK
View Code? Open in Web Editor NEW๐ A RESTful API as pizza restaurant ordering system.
Home Page: https://order-pizza-api.herokuapp.com/api/ui
License: MIT License
๐ A RESTful API as pizza restaurant ordering system.
Home Page: https://order-pizza-api.herokuapp.com/api/ui
License: MIT License
Title explains the whole problem itself.
Error message:
{
"detail": "The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.",
"status": 500,
"title": "Internal Server Error",
"type": "about:blank"
}
curl -X POST --header 'Content-Type: application/json' --header 'authorization: Bearer <JWT>' --header 'Accept: application/json' -d '{"Crust":"a", "Flavor":"b", "Size":"Big", "Table_No":3}' 'https://order-pizza-api.herokuapp.com/api/orders'
I tried the above command to add order to your web app, it keeps returning
{"msg":"Not enough segments"}
I have no clue what this error is about.
(1) The website didn't tell us how to use authorization token. (Spoiler: add the following request header "authorization: Bearer <JWT>")
(2) When I am poking at authorization header, it returned the following error message
{"msg":"Bad Authorization header. Expected value 'Bearer <JWT>'"}
It just spits out the token needed to add an order, this is definitely a bug right?
(3) How am I suppose to do with the token generated by "/auth"? Looks like the token is useless.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.