0% found this document useful (0 votes)
40 views3 pages

One-Day Interview Prep: HTTP & REST Basics

The document provides an overview of HTTP, REST, and API testing, detailing key concepts such as the request-response cycle, common HTTP methods, and status codes. It explains REST as a stateless architecture and discusses API testing techniques, including the use of tools like Postman. Additionally, it includes flashcard-style questions and answers for quick reference on these topics.

Uploaded by

ammarpatel2003
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views3 pages

One-Day Interview Prep: HTTP & REST Basics

The document provides an overview of HTTP, REST, and API testing, detailing key concepts such as the request-response cycle, common HTTP methods, and status codes. It explains REST as a stateless architecture and discusses API testing techniques, including the use of tools like Postman. Additionally, it includes flashcard-style questions and answers for quick reference on these topics.

Uploaded by

ammarpatel2003
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

One-Day Interview Prep: HTTP, REST, APIs & Testing

HTTP & Web Systems Summary

- HTTP is the protocol for web communication using a request-response cycle.

- HTTPS adds encryption via TLS/SSL.

- Common methods: GET, POST, PUT, DELETE.

- Status codes show success or error (e.g., 200, 404, 500).

- Headers provide metadata like Authorization and Content-Type.

- Browsers use DNS, TCP, and HTTP to load websites.

REST & Integration Summary

- REST is a design style using HTTP to access resources via stateless requests.

- Stateless = no memory between requests.

- Idempotency: same result if repeated (e.g., PUT, GET).

- PUT replaces a resource; PATCH modifies part of it.

- APIs may use URI or headers for versioning (e.g., /v1/data).

- CORS controls which domains can access APIs from browsers.

API Testing Summary

- Test APIs by checking status codes, response structure, and content.

- Use tools like Postman, curl, or Python scripts.

- Validate keys, data types, and handle error responses.

- CORS and authentication headers like Bearer tokens are important for security.

- Use Postman Tests tab for JS test scripts on responses.

15 Flashcard-Style Questions & Answers

1. What is HTTP?

> A protocol for sending requests/responses between client and server.

2. HTTPS vs HTTP?

> HTTPS is encrypted with TLS/SSL.

3. Four HTTP methods?


One-Day Interview Prep: HTTP, REST, APIs & Testing

> GET, POST, PUT, DELETE.

4. Common status codes?

> 200, 404, 500.

5. Purpose of headers?

> Send metadata like auth, content type, etc.

6. What is REST?

> Stateless API architecture using HTTP.

7. Statelessness?

> Server does not keep session memory.

8. Idempotency?

> Same result if repeated (GET, PUT).

9. PUT vs PATCH?

> PUT replaces, PATCH updates.

10. API Versioning?

> Use URI (/v1), header, or query param.

11. How to test REST API?

> Check status, structure, fields.

12. What is CORS?

> Controls cross-domain API access.

13. Tools to test APIs?

> Postman, curl, Python requests.


One-Day Interview Prep: HTTP, REST, APIs & Testing

14. Authorization header?

> Sends API keys or tokens.

15. What happens on URL enter?

> DNS -> TCP -> HTTP -> Response -> Render.

You might also like