Rest Api Post Json Example

In my opinion, setting up a REST API with Node. Length of the message (without the headers) according to RFC 2616. I can post to an API endpoint in my SmartApp this JSON object: { command: setLevel }. Understand options for sending long JSON objects in a request (Getting Started with GeoServices REST API ) When using the REST API, you will normally use an HTML GET method in a form. If you have not used a JSON REST API, it may sound complicated or intimidating, but really it’s a matter of creating the right URL strings and sending them in the browser. A scalable Keras + deep learning REST API. Now what is the use of parsing JSON data from a web service when I can have it in my system already ? The answer to this would be, now a days maximum of the client data is available over the web as it is not prone to data loss. You can also jump to other parts by clicking on the links below. I told him I never wrote a line of code for the Windows platform but that I would have it done in an hour or two. Handling a connection and parsing data with Swift is often no fun, thats why I will show you how to create a solid REST manager class for your next iOS. Passing Multiple Objects to Web API - The implementation. Why to use POST, not GET? When I write any WCF service, I always use POST. General Data Protection Regulation (GDPR) On May 25, 2018, a new privacy law called the General Data Protection Regulation (GDPR) takes effect in the European Union (EU). REST stands for Representational State Transfer and describes a pattern for interacting with content on remote systems, typically using HTTP. In this post we will create a RESTful service from an EJB session bean using JAX-RS. JAX RS @Produces both XML and JSON with Example – RESTful Web Services Tutorial 2 years ago Lalit Bhagtani 0 In this tutorial, we will learn to produce both XML and JSON response from a single method on server side depending upon the client request. Marathon REST API - mesosphere. It is usually represented by JSON. This example fetches the requested HTML snippet and inserts it on the page. In this post we will create a RESTful service from an EJB session bean using JAX-RS. You can edit the source JSON configuration from the Coveo Cloud administration console (see Add/Edit a Generic REST API Source ). Please Note: This post is part of a series on creating a REST API with Node. 0) and the Java API for JSON Processing to build an interactive web application that saves an object's properties in the server. I am using MySQL to create database and table. Shout out to Bespoke. As always, all the examples and code snippets can be found over on GitHub. it is very easy to use and make it clean code with laravel. REST API - PUT vs PATCH with real life examples. This post uses the Restful Web Service created from the following example: CRUD Restful Web Service with Spring Boot Example The RestTemplate class is the central class in Spring Framework for the synchronous calls by the client to access a REST web-service. Hi, I have a membership website and I restrict the access to content and taxonomies using Groups (Groups, Restrict Categories, WooCommerce). - Gatecoin/RESTful-API-Implementation API: POST Trade/Orders // This example uses. I previously wrote about the first version of the WordPress JSON API here, but turns out, it’s not accurate anymore!Here’s an update of the code in that post; using this, you’ll be able to utilize the version two infrastructure of the API that is now in core WordPress 4. We are using the code base of Spring boot 2 rest example. Therefore, documentation in this section assumes knowledge of REST concepts. Almost any public API is available through a REST interface nowadays, and if you grab data from there you will receive some JSON most of the time. The JSON-HAL specification is used to implement HATEOAS. So what will you do next? There are many possibilities. REST API for Dummies: “The Store Metaphor” In order to be able to give you a REST API definition, let’s go shopping. This is how you do a GET. It also defines the set of operations (POST, GET, PUT, DELETE) which are supported. Read JSON files in Informatica, Import REST API in Informatica). 1 later this year. If you use -d in the request, curl automatically specifies a POST method. This example shows how to use the RESTful API and JSON by providing two separate implementations—one using JavaScript ® and the other using Python ®. 1 Paginate by Response Attribute. In this quick tutorial, we explored how to use RestTemplate to make a POST request with JSON. M Series,T Series,PTX Series,MX Series. For example a json. is present in the request header, the API knows that JSON is the desired data transfer format. The access token is required for performing REST API calls in Oracle Identity Cloud Service. Sometimes it can be useful to parse out parts of the JSON output. The Resilient Incident Response Platform is built on the REST API. In a Handlebars template, we can output any part of the JavaScript object passed to it, such as a the JSON we receive in response from a RESTful API, simply by placing the object’s index in two brackets. Learn more: REST API field Resource In all examples, Method is POST. REST api Example At times developers find it so difficult to find simple and running example of REST API to perform CRUD operations on SugarCRM. Take the REST API for a test drive using a REST client. POST, but more useful for working with Web APIs. REST APIs allow systems to communicate over HTTP using HTTP verbs. For a start, in this article I'll talk about how I used NodeJS to retrieve a listing of card objects for the deck using the REST API. Where OpenAPI tooling renders rich text it MUST support, at a minimum, markdown syntax as described by CommonMark 0. Well I did it, and it’s not pretty (at least to my eyes), wow vbscript is strange…. Then from the drop-down on the right, select the JSON (application/json) option. The API presupposes no particular structure in the URI space. So what will you do next? There are many possibilities. In recent years REST has been at the forefront of modern API design. In this post I have shown you how you can create an application in the latest Play 2. I'm able to successfully post to the REST API, but I'd like to do it in JSON. To use Jersey client APIs, declares "jersey-client. So in this post I’ll look at posting raw data – not JSON or XML, but just plain text or binary data – to an Web API controller and picking up that data in a controller method. This post is worth reading: How I Explained REST to My Wife? API stands for "Application Programming Interface". This page contains examples of using the Confluence Content REST API using curl. Instead, the following tactics help make your services less likely to break existing clients you may or may not control:. In addition, it provides two utility methods, one to extract the XML attachment from a Europass PDF+XML document and another one to. Stormpath CTO Les Hazlewood shares lessons on designing, implementing and supporting JSON-based REST APIs, using real world examples. We will be using JSON Schema and later configure everything in newman so that we can run the test cases from command line. We are working on a project , where we need to post a REST API call from Excel (2010) , which a posts a JSON array. In the WordPress REST API, that data comes back as JSON which stands for JavaScript Object Notation. One of the challenges to building any RESTful API is having a well thought out authentication and authorization strategy. In JSON tutorial, learn various concepts about JSON such as difference with XML, syntax and data types, read & write JSON and convert JSON to string and vice-versa etc. Handler, and can be combined with other handlers. We will build a program to let us paste json data in it and query different paths. If you were using rest_post_trashable, rest_insert_post or rest_delete_post, they are now dynamic based on the post type slug. But you can put a JWT with the right set of permissions. If you think you've found a bug, create an issue on GitHub. You can use this rest api tutorials, faking a server, sharing code examples. To achieve this, we will create a RESTful todo list API (i. By using our website, you agree to the use of cookies as described in our Cookie Policy. HttpClient is also supported for Windows Phone and Windows Store apps. Recently i got one requirement to create one REST API which should support JSON and XML both. You can defined any structure and customized as per your need, You can define your rule for rest api framework and easily access. In this post I will review and explain top 5 security guidelines when developing and testing REST APIs. Well I did it, and it’s not pretty (at least to my eyes), wow vbscript is strange…. To test post request, you can create a RESTful client (refer to this Jersey client APIs example), and "post" the json format string to URI pattern "/json/metallica/post", the posted json string will be converted into "Track" object automatically. 5, all of jQuery's Ajax methods return a superset of the XMLHTTPRequest object. Authoring and sending a GraphQL query in Postman is simple. Specifies the HTTP method to use with the request (in this example, POST). js REST API Example With Axios Vue. A RESTful API Web service uses both HTTP and REST, it includes: A base URI for the API; Internet Media Types Used by the REST API (such as JSON or XML) HTTP operations such as GET, PUT, POST, PATCH or DELETE. Basically, every API should be defined from version 1. Though, RFC 2616 has been very clear in differentiating between the two - yet complex wordings are a source of confusion for many of us. is present in the request header, the API knows that JSON is the desired data transfer format. REST is basically a lightweight alternative to SOAP that uses HTTP 1. JSON (JavaScript Object Notation) a common format for sending and requesting data through a REST API. Per the API spec and REST best practices, we know the task is created because of the 201 response code. See how to make API calls to our REST API and learn about all of the parameters. POST − Used to create a new resource. If the examples shows a POST or PUT request, there's a blank line, followed by the XML information that's included in the body. Each API call takes a set of data in JSON format and returns data also in JSON format. Generating JSON in RPG Code • Example 4. Restify is popular and handy rest framework to create restful api. Net, jQuery, WCF. REST API Examples. I intentionally did not use the urllib2 or any other standard Python library, since I want to explain the power of the "requests" library, which…. NET Forums / General ASP. 0 using Jive’s add-on framework. Creating new Articles. JSON objects are easy to read and write and most of the technologies provide support for JSON objects. Example: Reading Smartsheet data using SSIS REST API / JSON Source and load into SQL Server Table Loading data from REST API to SQL Server Once you done configuring JSON Source you can load data to SQL Server. EnsembleWorkflow REST API - JSON Documentation? ⏩ Post By Tani Frankel Intersystems Developer Community Ensemble ️ Angular ️ REST API. In this Spring Boot 2 REST API tutorial, we will create two simple GET and POST APIs step by step and test them. js, and MongoDB RESTful API from our GitHub repository or if you have PostgreSQL installed on your machine, you can get this RESTful API application. I am successfully authenticating, logging out, and reading data from the service's endpoints. There are several options for REST clients that can be used just do a Google search (oh wait I meant Bing). In response, we get JSON. There are following public apis #. In this article I'll show you how simple it is to consume JSON based APIs from. The REST API v1, formerly called the Web API, allows developers to create, read, update and delete forms, entries and results over HTTP loosely following REST-style principles. It is a software to software interface, not a user interface. Jasmine asked if I could write a guide on “processing JSON data for android applications using NodeJS and Express and Android Studio”. com via the customer dashboard. In this post, I will tell you, Laravel select2 with json data working example. Following four HTTP methods are commonly used in REST based architecture. Why to use POST, not GET? When I write any WCF service, I always use POST. js, and MongoDB RESTful API from our GitHub repository or if you have PostgreSQL installed on your machine, you can get this RESTful API application. Therefore we have 3 + 2 = 5 routes in total. Because of this it only made sense to see what it took to build a RESTful API with Go, often referred to as Golang. I don't know javascript, only c#, but I can't seem to make it work. With GET requests, including the HTTP method is optional, because GET is the default method used. Artifactory REST API endpoints can be invoked in any of the standard ways to invoke a RESTful API. Entry Point index. JSON REST service Any Spring @RestController in a Spring Boot application will render JSON response by default as long as Jackson2 [jackson-databind] is on the classpath. I will explain how to do the basic configurations and steps to make requests in the WordPress backend from any frontend (React, jQuery) or backend (PHP, Python, Node. An XML representation of resources is also available. data attribute, which is similar to request. Go Rest API with example, loop, if, for, break, continue, installation, switch, goto, string, slice, pointer, reflect, rune, interface, functions, closure, recursion. In order to use HttpClient API to make the communication with Http remote server, you must set up this service in your Angular app. Please Note: This post is part of a series on creating a REST API with Node. When you use GET, the entire request is encoded in the URL. The hierarchy of resources and operations listed in the table of contents matches the hierarchy of the API. Therefore, documentation in this section assumes knowledge of REST concepts. Creating new Articles. For example, if a member is added in a request or response, the version must be incremented. Some examples include JSON API, Collection+JSON, HAL, and Siren. I'm keeping most of the part of all the examples in the form of hard coding assuming you already know how to pass values from front end using Ajax or simple form data and how to process them using express Request object. In order to consumer JSON Restful service , we need to do follow steps. We can use Jmeter to send Json request to a RESTful Web Service and also parse the Json response. by Derek Du. Ben Shadle explores the WordPress REST API (WP API), looking at extensibility, limitations, installation instructions, use cases and example API requests. JsonWriter: We can use this to write JSON object to output stream. How to Consume RESTful APIs. In JSON tutorial, learn various concepts about JSON such as difference with XML, syntax and data types, read & write JSON and convert JSON to string and vice-versa etc. This post is worth reading: How I Explained REST to My Wife? API stands for "Application Programming Interface". An Icon that represents the service. Examples of RESTful API calls for E-commerce platforms. Hey, Fellow REST API Designer! Building RESTful web services, like other programming skills is part art, part science. GET according to HttpClient. You should use POST requests if possible. var json = client. But the REST API opens vROps to programmatic modification, custom parallel UI and meta-monitoring. RESTful APIs in most cases return the plain text, JSON or XML response. Experimental Rest API¶ Airflow exposes an experimental Rest API. If your Android app is depending on sending and receiving data over the Internet e. The response that Github sends back to you is also formatted as JSON. postMessage and other Web API write methods. Every representation contains a self-referencing URI (i. We'll use GET to obtain data via the API and display it, and we'll use POST to update items. We will use drag and drop approach (yes no coding !!!) so in just few clicks you can extract data from API and load into SQL Table. Screencast #14: Post JSON to spring REST webservice. In this post, we will be using Rest-Assured library and TestNG to automate the http post method of a Rest-ful API. For example, it is not unusual for an API endpoint to support both JSON and XML formats. com via the customer dashboard. js – our server-side Javascript code uses the Node and the Express framework to provide simplistic Web server functionality and to expose a RESTful API. py db2creds. In this tutorial we will learn How to Automate REST API JSON Schema Validation testing using Postman. Query parameters GET example This example demonstrates how to get query parameter values from a request. Content-Type: Required for POST operations. When the POST verb is used to request the creation of a new Oracle ILOM resource, the input data, at creation time, must specify the required and optional properties. JAX RS @Produces both XML and JSON with Example – RESTful Web Services Tutorial 2 years ago Lalit Bhagtani 0 In this tutorial, we will learn to produce both XML and JSON response from a single method on server side depending upon the client request. You'll learn: You'll build an application that issues HTTP Requests to a REST service on GitHub. In this post, I will tell you, Laravel select2 with json data working example. So the testing the REST Services has become very critical part of the development workflow/lifecycle. A RESTFul web services are based on HTTP methods and the concept of REST. Python makes REST a cakewalk with the requests module. This topic demonstrates the examples of PATCH requests that use JsonPatch syntax and the REST API clients developed using different programming tools and languages. Http module help to create request to access GET/POST/DELETE type method request. This document will only cover "how to deal JSON response as a Serialized Object for READ/WRITE & convert JSON object into meanful Object". We ended the article by suggesting how to test and secure a web service. This means there are many different ways to add hypertext to your REST + JSON API. X-COM-PERSIST and X-COM-LOCATION. In this sense an API - which stands for Application Programming Interface - allows for publicly exposed methods of an application to be accessed and manipulated outside of the program itself. A car enters the garage when its details are posted at /garage/slots. Get JSON response from RESTful Web Service (JAX-RS), its an example of RESTful Web Service (JAX-RS) with JSON response using jersey implementation, JAX-RS JSON response example. Spring 4 MVC REST provides powerful APIs to built complete RESTful services. (YAJL Open Source JSON Tool) 2 The Agenda 1. Where OpenAPI tooling renders rich text it MUST support, at a minimum, markdown syntax as described by CommonMark 0. In JSON, each property and value must be wrapped with double quotation marks, like this:. Now once we sent a POST request to our API, the db. But the REST API opens vROps to programmatic modification, custom parallel UI and meta-monitoring. Rest-Assured is a Java-based library that is used to test RESTful Web Services. If you don’t require all of the metadata for your business solution,. This tutorial teaches you a number of features in. In this tutorial we will learn How to Automate REST API JSON Schema Validation testing using Postman. How to use HttpClient to post Json data to WebService in Windows Store apps sample in C#, VB. In my opinion, setting up a REST API with Node. Make sure to store your API keys somewhere secure and never share them publicly. For now, we will use existing Node. status table of the ObjectServer. The "addresses" input parameter is a potentially very long JSON string containing an array of a complex type. POST Request With JSON Input Data Example. We will be using JSON Schema and later configure everything in newman so that we can run the test cases from command line. Use an HTTP POST request to send single or multiple RPC requests to the REST API. It provides comprehensive access to platform capabilities: to read and write incident data, and to perform a wide range of administrative functions. The following are standard params which are available on most resources (noted below). REST API: a little cURL and some Python. Specially were going to use our Windows Forms. jQuery AJAX POST Example by Ravishanker Kusuma in Coding Aug 27th 2013 · 0 Comments In jQuery AJAX POST Example , I have covered how to make AJAX Post requests with jQuery API. io database endpoint in the following languages: cURL, Javascript, Python, PHP, Java, C#, Objective-C and Swift (see example below). EJB; import javax. These web pages can then be used to send and retrieve requests from a MATLAB Production Server instance. This article will also illustrate how to call the WCF REST JSON Service using jQuery AJAX in ASP. Postman - Rest Client is a best google chrome app to test your REST API services but many of new user of postman are not aware how to post the JSON data in it, read more to know how to post JSON in postman. In the fist blog post over using the Azure ARM REST API I explained how to retrieve the Access Token needed for the further authentication against the Azure ARM REST API. It can be data-oriented, in a sense that your Web service (the RESTful API), simply make available the information you store in your databases using a common format, such as XML or JSON. We also have two regular Camel routes. In order to use HttpClient API to make the communication with Http remote server, you must set up this service in your Angular app. java includes. Most of these are available as snippets inside Postman. Unfortunately, JSON is not a hypermedia format. com ) WebSphere Commerce Accelerated Value Specialist July 9, 2013 This session will be recorded and a replay will be available on IBM. In general data is provided in the request body as a JSON blob, or sometimes as arguments in the query string portion of the URL. When working with RESTful API services, the common format is JSON, but form data is also popular. It is a concept or architecture for managing information over the internet. REST framework introduces a Request object that extends the regular HttpRequest, and provides more flexible request parsing. JSON REST service Any Spring @RestController in a Spring Boot application will render JSON response by default as long as Jackson2 [jackson-databind] is on the classpath. js and Mongo is super fast compared to with PHP and MySQL. A single link is represented as a JSON object with a "uri" name/value pair with the value of the pair being the URI that identifies the Link. I’m looking for pointers on what the JSON object should look like in a PUT request to the REST API when the command being invoked takes an argument. To learn more about it, see the REST Getting Started Tutorial. We did reach the REST API, we did got response from the REST API, what happens if the users misspells the URL of the REST API - he will get the 404 status but that is returned not by the REST API itself. The accept header must have value of "application/json; odata=verbose". This tutorial provides examples of how to do a few “real-world” validations for a JSON API. The main GitLab API is a REST API. In this tutorial we will learn How to Automate REST API JSON Schema Validation testing using Postman. Restful Web Services in PHP Example is a really simple example of Login & Signup Restful Web Services using PHP Core + MySQL Best Practice, without using any Framework or Library. js, and MongoDB RESTful API from our GitHub repository or if you have PostgreSQL installed on your machine, you can get this RESTful API application. If the server cannot parse the request as valid JSON, including source doesn't make sense (because there's no JSON document for source to refer to). This tutorial teaches you a number of features in. Simple Example of Rest API Using Nodejs, Restify with MySQL. In this blog post I’m going to explain how you can use that Access Token and start communicating with Azure using simple web calls. The running example we'll use is an API for a blog. In this tutorial, we will present a simple method to take a Keras model and deploy it as a REST API. Further examples can be found under the Requests organization and in the auth. , so I know a lot of things but not a lot about one thing. This article describes how to work with SharePoint list items, basically performing CRUD operations, using the combination of REST API and jQuery Ajax. API Payload format encoding ¶ To interact with an API, the consumer needs to know how the payload is encoded. Welcome Dummy api example This page will contains all rest service. You can use this rest api tutorials, faking a server, sharing code examples. cred -Method Post -ContentType "application/json. The full documentation is available at https://reactjs. This combination makes it a very good ad-hoc tool for testing our REST services. I told him I never wrote a line of code for the Windows platform but that I would have it done in an hour or two. In this quick tutorial, we explored how to use RestTemplate to make a POST request with JSON. The Domino Data Service receives requests and sends responses using HTTP and HTTPS protocols with body content in JSON format. Using HTTP POST method, you can almost achieve everything which you can achieve from GET. The REST architecture allows API providers to deliver data in multiple formats such as plain text, HTML, XML, YAML, and JSON, which is one of its most loved features. These APIs are generally REST APIs or SOAP web services with JSON or XML message payloads being sent over HTTP, HTTPS, JMS, and MQ. Setup a private space for you and your coworkers to ask questions and share information. Create Very Simple Jersey REST Service and Send JSON Data From Java Client. JAX RS @Produces both XML and JSON with Example – RESTful Web Services Tutorial 2 years ago Lalit Bhagtani 0 In this tutorial, we will learn to produce both XML and JSON response from a single method on server side depending upon the client request. Jersey Client Dependency. I will also try to explain why and where to use POST method. You have to worry about resources, pagination, query parameters, references to other resources, which HTTP Methods to use, HTTP Caching, security. How to create a restful api in Intersystems cache with JSON response. In this blog post I’m going to explain how you can use that Access Token and start communicating with Azure using simple web calls. How to bootstrap a Rest Service application with Spring Initializr? How to create a Get REST Service for retrieving the courses that a student registered for? How to create a Post REST Service for registering a course for student? How to execute Rest Services from Postman? Recommended REST API Course. With GET requests, including the HTTP method is optional, because GET is the default method used. Shout out to Bespoke. The REST APIs are for developers who want to integrate Confluence into their application and for administrators who want to script interactions with the Confluence server. Screencast #14: Post JSON to spring REST webservice. When it comes to JSON APIs is it good practice to flatten out responses and avoid nested JSON objects? As an example lets say we have an API similar to IMDb but for video games. Restful Web Services in PHP Example is a really simple example of Login & Signup Restful Web Services using PHP Core + MySQL Best Practice, without using any Framework or Library. In the next post, we will learn about how to send a PUT Request using Rest Assured. For starters, some folks are working towards GET as a minimum: #2300677: POST/PATCH config entities via REST for config entity types that support validation. Since my previous post on How to Test a REST Web Service I’ve received a few requests asking for an example using JSON. Net, jQuery, WCF. The REST API is still developed and many features are added. resttful feature. I'm able to successfully post to the REST API, but I'd like to do it in JSON. Note that in this RESTful framework, transactions are performed directly on the server resource using an HTTP request/response. The WordPress REST API utilizes this system for describing the request and response formats for each endpoint. But when I am checking this post call with fiddler due to Base64 image data input is not accepted by the fiddler. The hierarchy of resources and operations listed in the table of contents matches the hierarchy of the API. Here is an example where this XMLPORT. Storing data through the Parse REST API is built around a JSON encoding of the object’s data. Create the RestfUL request URI. Jasmine asked if I could write a guide on "processing JSON data for android applications using NodeJS and Express and Android Studio". The request and response is a JSON object. NET Web API. JSON is widely used in web applications or as server response because it's lightweight and more compact than XML. cURL setup Implementing an external API into your project is probably going to take more than just one API call and from different pages in your project. You can use the POST request to do device configuration. For now, we will use existing Node. Filed Under: J2EE, Java, JAX-RS, REST Tagged With: @Consumes, JAX-RS, JAX-RS REST, JSON, JSON Example, Rest, XML, XML and JSON Leave a Reply Cancel reply Your email address will not be published. There are a number of client applications that you can use to test calls to the Metric Insights API. ajaxSetup() have no effect on these requests. Options include the API Tool that comes with the Metric Insights application or use one of your favorites. Eve is an open source Python REST API framework designed for human beings. To overcome that problem json-server came into the picture. Binary data. You simply set whatever key-value pairs you want, and the backend will store it. Throughout the specification description fields are noted as supporting CommonMark markdown formatting. Yup baiscally the rest API was sending out the data is random order everytime it polled and the regex was written without that things to be taken into consideration. However, the data returned from the server continues to be in XML. 0 using Jive’s add-on framework. The API calls and functions I’m using in this post are all working examples on PHP -v 5. To use the Fitness REST API, it is important that you understand the basics of RESTful web services and JSON representations. In response, we get JSON. It can be data-oriented, in a sense that your Web service (the RESTful API), simply make available the information you store in your databases using a common format, such as XML or JSON. Well I did it, and it’s not pretty (at least to my eyes), wow vbscript is strange…. General Data Protection Regulation (GDPR) On May 25, 2018, a new privacy law called the General Data Protection Regulation (GDPR) takes effect in the European Union (EU). By default a request to the API is returned in XML. This is a very simple module that demonstrates implementation of a custom RESTful API in Drupal 8. This article gives brief introduction to using the Chrome browser Advanced REST Client. In this tutorial, I will give you the demo to access the external server to fetch the data using the RESTful API in Angular 6 | 7 with HttpClient service. Spring bottom. List; @Stateless public class CommentDAO extends DAO { @EJB private DAO dao; public. Thease are Fake Online REST API for Testing and Prototyping of sample application which are using rest call to display listing and crud features. As the Internet industry progresses, creating a REST API becomes more concrete with emerging best practices. In this example, we will see how to consume JSON response. js, Express. For example, a request to an API resource which creates a VM we would most likely see the body defining things such as VM Name, # of CPUs, Memory, etc. Usually the question goes something like. A representation of a resource must be stateless.