What is an API and how does REST work?
Computer Science
ScanSolve AI Answer
An API (Application Programming Interface) lets software systems communicate. REST APIs use HTTP methods: GET (read), POST (create), PUT/PATCH (update), DELETE (remove). Example: GET /api/users returns a list of users. POST /api/users with JSON body creates a new user. Response includes status codes: 200 (OK), 201 (created), 400 (bad request), 404 (not found), 500 (server error). REST is stateless — each request contains all info needed. Data format is typically JSON.
Was this helpful?
Still stuck on this one?
Ask a follow-up, and the answer starts from this question.
Got a different question?Ask your own question
More Computer Science Questions
QExplain the purpose of a Virtual Private Network. Explain the role of Application Programming…QQuestion 1: Qualifications According to API 1169, how should inspection personnel be qualified? A…QWhat does the acronym "URL" stand for?QAPI 1110, Section 3.2.1 The pressure testing of newly constructed liquid pipelines and replaced…QExplain what the Web is and describe the four essential foundations upon which it was built. How is…