🌐
JSON:API
jsonapi.org › examples
JSON:API — Examples
Note: The above example URI shows unencoded [ and ] characters simply for readability. In practice, these characters should be percent-encoded, as noted in the base specification. See “Square Brackets in Parameter Names”. Here we want articles objects to have fields title, body and author only and people objects to have name field only. HTTP/1.1 200 OK Content-Type: application/vnd.api+json { "data": [{ "type": "articles", "id": "1", "attributes": { "title": "JSON:API paints my bikeshed!", "body": "The shortest article.
🌐
CRAN
cran.r-project.org › web › packages › jsonlite › vignettes › json-apis.html
Fetching JSON data from REST APIs
The code below includes some example keys for illustration purposes. #search for articles article_key <- "&api-key=b75da00e12d54774a2d362adddcc9bef" url <- "http://api.nytimes.com/svc/search/v2/articlesearch.json?q=obamacare+socialism" req <- fromJSON(paste0(url, article_key)) articles <- req$response$docs colnames(articles)
🌐
ReqBin
reqbin.com › req › v0crmky0 › rest-api-post-example
How do I post JSON to a REST API endpoint?
To post JSON to a REST API endpoint, you must send an HTTP POST request to the REST API server and provide JSON data in the body of the POST message. You must also specify the data type using the Content-Type: application/json request header.
🌐
JSON:API
jsonapi.org
JSON:API — A specification for building APIs in JSON
By following shared conventions, you can increase productivity, take advantage of generalized tooling and best practices. Clients built around JSON:API are able to take advantage of its features around efficiently caching responses, sometimes eliminating network requests entirely. Here’s an example response from a blog that implements JSON:API:
🌐
Treblle
treblle.com › blog › create-simple-rest-api-json
How to Create a Simple REST API With JSON Responses - Treblle
Learn how to build a simple REST API that returns JSON responses using Node.js and Express. This step-by-step guide walks you through project setup, creating routes, handling different HTTP methods, and testing your endpoints—perfect for beginners diving into API development.
🌐
Atlassian
developer.atlassian.com › server › crowd › json-requests-and-responses
JSON requests and responses
{ "expand" : "attributes", "link" : { "rel" : "self", "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user?username=my_username" }, "name" : "my_username", "first-name" : "My", "last-name" : "Username", "display-name" : "My Username", "email" : "user@example.test", "password" : { "link" : { "rel" : "edit", "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user/password?username=my_username" } }, "active" : true, "attributes" : { "link" : { "rel" : "self", "href" : "http://localhost:8095/crowd/rest/usermanagement/1/user/attribute?username=my_username" }, "attributes" : [] } } These samples show the JSON representations that the Crowd REST Resources expect to receive.
🌐
Inari
devhunt.org › blog › json-example-illuminates-restful-api-best-practices
JSON example illuminates RESTful API best practices
This article discusses best practices for designing RESTful APIs using JSON, covering how to model resources, design REST API endpoints, and implement common CRUD operations.
🌐
JSONPlaceholder
jsonplaceholder.typicode.com
JSONPlaceholder - Free Fake REST API
JSONPlaceholder is a free online REST API that you can use whenever you need some fake data. It can be in a README on GitHub, for a demo on CodeSandbox, in code examples on Stack Overflow, ...or simply to test things locally.
🌐
HCL Software
help.hcl-software.com › onedb › 2.0.1 › rest › rest_011.html
REST API Examples: JSON Collections
HCL OneDB fully supports JSON collections through both the REST API and the MongoDB API provided through the wire listener. Note: You may notice that many of these examples look similar to those in the REST API Examples: Relational Tables. This is purposeful.
Find elsewhere
🌐
ReqBin
reqbin.com › req › chcn9woc › rest-api-get-example
How do I get JSON from a REST API endpoint?
To get data from the REST API server, you must send an HTTP GET request with an "Accept: application/json" request header. The server informs the client that it has returned JSON by sending "Content-Type: application/json" in response.
🌐
DEV Community
dev.to › beginarjun › web-development-an-introduction-to-working-with-rest-apis-and-json-data-a4j
Web Development: An Introduction to Working with REST APIs and JSON Data - DEV Community
April 20, 2023 - In this blog post, we provided an introduction to working with REST APIs and JSON data in web development. We covered the basics of how REST APIs work, how to parse JSON data with JavaScript, how to retrieve data from a REST API, and how to integrate REST APIs into a web application.
🌐
RestfulAPI
restfulapi.net › home › json › what is json
What is JSON - REST API Tutorial
November 3, 2023 - In this JSON tutorial, we will learn the various concepts about JSON, with examples.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1180617 › send-a-request-to-a-restapi-with-json
Send a request to a restapi with json - Microsoft Q&A
Here in this post, I'll share one of my step-by-step examples which uses an online REST API service (https://northwind.vercel.app) which allows interaction with Northwind API. This example uses HttpClient and JsonConvert to get or post data:
🌐
OutSystems
outsystems.com › forums › discussion › 41644 › json-rest-api-documentation
JSON REST API Documentation | OutSystems
I'm creating a series of API endpoints for my service to expose. I want to create an endpoint which can accept a JSON string which is a list of records of a particular datatype. I can do this if I create a JSON input parameter for the API method but the JSON input parameter must be of type ...
🌐
GitHub
github.com › typicode › json-server
GitHub - typicode/json-server: Get a full fake REST API with zero coding in less than 30 seconds (seriously) · GitHub
JSON Server started on PORT :3000 http://localhost:3000 · Access your REST API: curl http://localhost:3000/posts/1 · Response: { "id": "1", "title": "a title", "views": 100 } Run json-server --help for a list of options · Become a sponsor ...
Starred by 75.7K users
Forked by 7.3K users
Languages   JavaScript 91.7% | HTML 8.3%
🌐
Smashing Magazine
smashingmagazine.com › 2018 › 01 › understanding-using-rest-api
Understanding And Using REST APIs — Smashing Magazine
curl https://api.github.com/users/zellwk/repos\?sort\=pushed · Try using either commands and perform a request! You’ll get a similar response to what you’ve seen with Github’s root-endpont (but with a lot more data). JSON (JavaScript Object Notation) a common format for sending and requesting data through a REST API.
🌐
Stack Overflow
stackoverflow.blog › 2020 › 03 › 02 › best-practices-for-rest-api-design
Best practices for REST API design - Stack Overflow
For example, suppose you wanted to return the author of particular comments. You could use /articles/:articleId/comments/:commentId/author. But that's getting out of hand. Instead, return the URI for that particular user within the JSON response ...
🌐
GeeksforGeeks
geeksforgeeks.org › node.js › how-to-create-a-rest-api-with-json-server
How to Create A REST API With JSON Server ? - GeeksforGeeks
July 23, 2025 - Run the below command to Create a package.json file: ... Example: The example below shows the JSON file that represents your data model.