Questions tagged [restful-url]

Representational state transfer (REST) is a style of software architecture for distributed hypermedia systems such as the World Wide Web.

https://en.wikipedia.org/wiki/Representational_state_transfer

1351 questions
3
votes
2 answers

Spring RestTemplate - selecting MessageConverter to Use

I am using the RestTemplate class to post to a JSON-based RESTful web service. I can see from the documentation that there can be several MessageConverters available to the RestTemplate instances. The problem I'm facing is that the client seems to…
Rintoul
  • 823
  • 2
  • 13
  • 16
3
votes
2 answers

Can http PUT modify the identifier?

In a Restful API: PUT /product/{id} Could the above http request, specify a different id in its body, so that to actually change the id of original record (assume the id is changable technically in the underling storage). This seems to vialotes the…
Eric
  • 22,183
  • 20
  • 145
  • 196
3
votes
2 answers

SQL Server sp_OAMethod Returns NULL When Calling WebAPI

We are trying to retrieve some JSON results provided by a private third party WebAPI. For some reason, one of the calls is returning NULL every time. If we use different URI call to access different info it works. But, this one in particular will…
ptownbro
  • 1,240
  • 3
  • 26
  • 44
3
votes
1 answer

Flutter - using an API key

I'm making an app that grabs cryptocurrency JSON data from the public v1 Api but support for this will soon be dropped, meaning that I'll have to migrate the the more powerful professional v1 Api. The only issue is, I don't know how to implement the…
Jake
  • 1,906
  • 9
  • 32
  • 60
3
votes
1 answer

RESTFul API Design Suggestion for forgot password flow

I'm working on designing Restful API for forgot password flow. The flow to be used in web application is below: 1) User enters user id 2) Application validates user id and sends verification token to user's email address 3) User will be asked for…
Pruthvi Raj Nadimpalli
  • 1,335
  • 1
  • 15
  • 30
3
votes
2 answers

Draft an article in REST

In our system an article(title, description) can be created, updated an drafted. create - put update - post draft - ??? How to draft an article in REST?
leciro
  • 43
  • 6
3
votes
1 answer

should backend handle email verification request?

I am creating a web app and need to send an email verification to users after they registered in the system. When the user receives a verification email, they need to click on the link in that email to verify their email address. My question is…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
3
votes
1 answer

REST api/postman - Cannot GET /the route Error

I am building a (RESTful) Node.js API, using this tutorial. I have nade a server.js const express = require('express'); const MongoClient = require('mongodb').MongoClient; const bodyParser = require('body-parser'); const app …
S. N
  • 3,456
  • 12
  • 42
  • 65
3
votes
1 answer

Handling IDs in RESTful CRUD APIs

I am designing a Create/Read/Update/Delete public web API endpoint, using RESTful patterns over HTTP with JSON payloads, and am wondering about a design issue that must be extremely common, yet I'm finding a hard time finding guidance for. Let's…
Eugene Osovetsky
  • 6,443
  • 2
  • 38
  • 59
3
votes
3 answers

Restful API - how close to get,put,post,delete does it need to be?

I've set up an API in Spring where the client can specify the ids of the objects they want to receive. It returns a JSON list (using the @ResponseBody annotation) of the objects. But, since the request can be a long list, I've set it up as a POST,…
Jack BeNimble
  • 35,733
  • 41
  • 130
  • 213
3
votes
2 answers

Is it hacky to manually construct JSON and manually handle GET, POST instead of using a proper RESTful API for AJAX functionality?

I started building a Django app, but this probably applies to other frameworks as well. In Backbone.js methods that call the server (fetch(), create(), destroy(), etc.), should you be using a proper RESTful API such as one provided by Tastypie or…
kliao
  • 549
  • 1
  • 6
  • 14
3
votes
1 answer

How to reformat URLs to be more restful (from .../?id=123 to .../123)?

Currently I have pages accessed via: www.foo.com/details.html?id=123 I'd like to make them more restful-like, such as by the following: www.foo.com/details/123 I'm using Google App Engine. Currently the URL's are mapped in the html-mappings…
Cuga
  • 17,668
  • 31
  • 111
  • 166
3
votes
4 answers

REST: What is difference between GET and DELETE, when we can implement same functionality in both?

In REST Web Services we have GET AND DELETE methods. Generally we read GET is to get data from server like "getCountriesName" and DELETE is used to call resource which deletes particular object like "removeOrganization". But if i implements DELETE…
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
3
votes
2 answers

Updating many-to-many association with REST

I have three different models as User, PermissionSet and Permission. These models represent their SQL tables respectively. User has a many-to-one association PermissionSet, a user may have one PermissionSet or none. PermissionSets would be owned by…
Buğra Ekuklu
  • 3,049
  • 2
  • 17
  • 28
3
votes
1 answer

getting 403 forbidden error

Getting 403 forbidden for below code, though "https://jsonplaceholder.typicode.com/posts/1" works in postman @ComponentScan @EnableAutoConfiguration public class Application { public static void main(String[] args) { RestTemplate rt =…
sr7
  • 219
  • 1
  • 5
  • 13