Coder Social home page Coder Social logo

introduction-to-postman-course's People

Contributors

pradeepjos avatar rjharishabh avatar sauravjalui avatar terieyenike avatar vdespa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

introduction-to-postman-course's Issues

Validation

List of books
GET /books
Returns a list of books.
Optional query parameters:
type: fiction or non-fiction
limit: a number between 1 and 20.

If the number is above 20 it is showing an error for 400. But if we put the value below the number 1 ex. 0 or 0.5etc. No error is being shown. In this scenarios the error should be shown for the value below the number 1 right?
Can you help me for this, whether the error should be shown or not, if the value is below the number 1.

Unable to get access token

I am going through lesson 10 - POST request / API Authentication part and I am getting the following error when I send a request.
Screenshot 2023-03-22 at 2 15 12 PM

504 Gateway Time-out

I started learning testing APIs in Postman, using this API. Great material to understand postman. I really appreciate your effort.

Yesterday I could go through almost half of the course. Today, it's been intermittently down or something. The status endpoint is timing out, as well as the other endpoints.

<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
</body>
</html>

I hope someone can take a look at some point.

Thank you,

Misspelling in the value for the query parameter 'type'

On hitting the /books endpoint, the values for the query parameter 'type' are supposed to be 'fiction' and 'non-fiction', but the error message says 'non-function'. Kindly try to correct this or provide a link to the api repo

Generate a token

Hello. Please I just wanna know how to generate token necessary for authentication. You said that it's essential for POST request.

order api doesnt work

Hello, thank you for your helpful video clip on youtube. I have been following your video clip and I faced issue with orders api. even if I set JSON properly, I got an error like following block.

{
    "error": "Invalid or missing bookId."
}

I input Body as below

{
    "bookId": 1,
    "customerName": "John"
}
POST /orders HTTP/1.1
Authorization: Bearer f213b3e0e68f956690e3f0b712ca559794d6251821bf965f58afd670023d7ddf
User-Agent: PostmanRuntime/7.32.3
Accept: */*
Cache-Control: no-cache
Postman-Token: 97d16743-634e-441b-b336-c62df81cffd6
Host: simple-books-api.glitch.me
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
 
{
"bookId": 1,
"customerName": "Minnie Kling"
}
 
HTTP/1.1 400 Bad Request
Date: Thu, 10 Aug 2023 09:27:10 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 38
Connection: keep-alive
x-powered-by: Express
etag: W/"26-nuV6aQ2H3vYGMuVoIahu/HIFYAI"
 
{"error":"Invalid or missing bookId."}

.

.

Field current-stock needs to be update

Get Book Api {{baseUrl}}/books/:bookId response has field "current-stock" which is giving error while using it in post man unit test.
Here is my test case:
const response = pm.response.json();
console.log('books response : ', response);
const currentStock = response.current-stock;
pm.test("Checking if stocks is available ", () => {
pm.expect(currentStock).to.be.above(0);
});

ERROR I am getting is "ReferenceError: stock is not defined"
Kindly update the field while returning response as currentStock instead current-stock

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.