Describe the Issue
The rest-api-and-web-services module in Back-End Development and APIs (v9) has no quiz block. Every other non-cert-project module in that superblock ends with a review and a quiz.
PR #69503 added a review-rest-api-and-web-services block to the rest-api-and-web-services module, giving the module the review page a quiz draws its questions from.
A new quiz-rest-api-and-web-services block should be created with 10 questions, covering the review page's topics:
- Web services and APIs
- The REST architecture
- HTTP status codes
- Monoliths vs. microservices
Six questions covering these topics already exist in quiz-introduction-to-express, where they do not belong. They are being removed from that quiz in #69505, so they are reproduced in full below and can be moved into the new quiz as-is:
The six questions
### --question--
#### --text--
What is the relationship between an API and a web service?
#### --distractors--
Every API is a web service, but not every web service is an API.
---
APIs and web services are identical concepts.
---
Web services only work with REST, while APIs support multiple protocols.
#### --answer--
Every web service is an API, but not every API is a web service.
### --question--
#### --text--
Which HTTP header does a client use to tell the server which response format it wants?
#### --distractors--
`Content-Type`
---
`Authorization`
---
`X-Requested-With`
#### --answer--
`Accept`
### --question--
#### --text--
What does statelessness mean in a REST architecture?
#### --distractors--
The server stores the client's session data between requests.
---
The client keeps no state of its own across requests.
---
REST restricts all requests to read-only operations.
#### --answer--
The server stores no memory of previous requests.
### --question--
#### --text--
Which REST HTTP method is used to remove a resource?
#### --distractors--
`GET`
---
`POST`
---
`PUT`
#### --answer--
`DELETE`
### --question--
#### --text--
What is a key advantage of microservices over a monolith?
#### --distractors--
Simpler debugging and fewer network calls between services.
---
A single shared codebase that all teams contribute to.
---
Easier infrastructure management across all services.
#### --answer--
Faster development, better fault isolation, and the ability to use different languages per service.
### --question--
#### --text--
Which of the following is true about SOAP compared to REST?
#### --distractors--
SOAP uses JSON and is more flexible than REST, making it ideal for modern applications.
---
SOAP is the most widely used web service type today, having replaced REST in most systems.
---
SOAP supports multiple response formats, including plain text, JSON, and binary data.
#### --answer--
SOAP uses only XML and is common in enterprise systems that need stricter standards and security.
That leaves 4 more questions to write to reach 10.
Affected Page
https://www.freecodecamp.org/learn/back-end-development-and-apis-v9
Expected behavior
The rest-api-and-web-services module ends with a quiz page.
A quiz-rest-api-and-web-services block titled REST API and Web Services Quiz exists, scaffolded with pnpm run create-new-project, with:
- curriculum/challenges/english/blocks/quiz-rest-api-and-web-services/<ObjectId>.md, title: REST API and Web Services Quiz, challengeType: 8, containing one ## --quiz-- set of 10 questions, with the description line To pass the quiz, you must correctly answer at least 9 of the 10 questions below.
- curriculum/structure/blocks/quiz-rest-api-and-web-services.json with blockLabel: quiz, blockLayout: link, isUpcomingChange: false, and the challenge listed as REST API and Web Services Quiz
- an entry in the rest-api-and-web-services module in curriculum/structure/superblocks/back-end-development-and-apis-v9.json, last in the module
- a REST API and Web Services Quiz title and an intro entry in client/i18n/locales/english/intro.json, last in the module
The script's prompts should be answered with the Back-End Development and APIs certification, the back-end-development-and-apis chapter, the rest-api-and-web-services module, the Backend Development help category, a question count of 10, and a position placing the quiz last in the module.
Additional context
Per the quiz guide, quizzes are 10 or 20 questions with 4 options each, and all questions must come from the module's review page or its workshops.
Want to Contribute?
This issue is part of the Contributor Sprint initiative! If you're interested in helping out:
- Join our Discord: https://chat.freecodecamp.org
- Claim the Naomi's Sprints role
- Ping Naomi in #naomis-sprints to be assigned this ticket
Describe the Issue
The rest-api-and-web-services module in Back-End Development and APIs (v9) has no quiz block. Every other non-cert-project module in that superblock ends with a review and a quiz.
PR #69503 added a review-rest-api-and-web-services block to the rest-api-and-web-services module, giving the module the review page a quiz draws its questions from.
A new quiz-rest-api-and-web-services block should be created with 10 questions, covering the review page's topics:
Six questions covering these topics already exist in quiz-introduction-to-express, where they do not belong. They are being removed from that quiz in #69505, so they are reproduced in full below and can be moved into the new quiz as-is:
The six questionsThat leaves 4 more questions to write to reach 10.
Affected Page
https://www.freecodecamp.org/learn/back-end-development-and-apis-v9
Expected behavior
The rest-api-and-web-services module ends with a quiz page.
A quiz-rest-api-and-web-services block titled REST API and Web Services Quiz exists, scaffolded with pnpm run create-new-project, with:
The script's prompts should be answered with the Back-End Development and APIs certification, the back-end-development-and-apis chapter, the rest-api-and-web-services module, the Backend Development help category, a question count of 10, and a position placing the quiz last in the module.
Additional context
Per the quiz guide, quizzes are 10 or 20 questions with 4 options each, and all questions must come from the module's review page or its workshops.
Want to Contribute?
This issue is part of the Contributor Sprint initiative! If you're interested in helping out: