API Basics

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/6

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:33 AM on 9/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

7 Terms

1
New cards

What is REST APIs?

A structured way for clients to interact with the system. Defines a set of endpoints that map to specific actions, using standard HTTP methods

2
New cards

API methods

  • GET (“get the goods” → retrieve data)

  • POST (“powerful payloads!” create data; When you want to send data to the server and create something new, use the POST method.)

  • PUT (“Update with Authority!” update data; Update existing data with the PUT method.)

  • DELETE (remove data)

  • PATCH (“Fine-Tuning at Your Fingertips!” Use the PATCH method to make partial updates to existing resources)


3
New cards

The backend service could expose _____

endpoints

4
New cards

Query parameters

Query parameters provide a flexible way to customize API requests and retrieve specific data based on filtering, sorting, pagination, or other criteria.

5
New cards

Use this with the API to specify criteria to retrieve relevant results

Filtering

6
New cards

Do this with the API to divide large datasets into pages for managable chunk retrieval

Pagination

7
New cards

Give an example endpoint and parameters for a “create short URL API”

Endpoint: POST /shorten

Parameters:

  • original_url (string, required)

  • custom_alias (string, optional)

  • expiration_date (timestamp, optional)

  • user_id (string, optional)