Questions tagged [restful-architecture]

RESTful, or representational state transfer, is a style of software architecture for distributed hypermedia systems such as the World Wide Web.

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

REST attempts to describe architectures that use HTTP or similar protocols by constraining the interface to a set of well-known, standard operations (like GET, POST, PUT, DELETE for HTTP). Here, the focus is on interacting with stateless resources, rather than messages or operations.

1187 questions
0
votes
1 answer

SugarCRM REST API and jquery

I am trying to login to SugarCRM using jQuery and Sugar REST API. I have no luck so far. Following is the code snippet: var returnVal = $.ajax(,{ type: "POST", url:…
-1
votes
1 answer

node.js RESTful API with amazon like auth

I'm looking to build a RESTful API in node.js and want to authenticate users with an API key and API secret musch like the service in Amazon Web Services (AWS). The question is where to start, googling has lead me to a lot of irrelevant sites and I…
-1
votes
1 answer

Flask: each route in its own module file?

I have am developing a flask app that is both a regular website (serving HTML) and and a JSON API. It's structured like this (using blueprints for api and site) Project | +-- views | | | +-- api.py <-- all routes for api | +--…
tarponjargon
  • 1,002
  • 10
  • 28
-1
votes
1 answer

Springboot - empty get rest response

I am building a simple get rest call from MySQL database, the problem is that it returns an empty object. The call itself is takes in an email (I know this is not the best approach), here is my code: Entity: @Entity public class User implements…
DESH
  • 530
  • 2
  • 11
  • 29
-1
votes
1 answer

What's the correct RESTful way to structure API for process which is part of another process?

I have VAT registration process and once it is completed user will proceed for VAT E-Filing process. My VAT APIs are like below : /api/vat Now E-Filing is part of VAT process so does below API make sense and is as per REST API…
I Love Stackoverflow
  • 6,738
  • 20
  • 97
  • 216
-1
votes
1 answer

Using one REST resource to create another

In a shopping cart application, suppose I have an endpoint for an endpoint for an /product/ for products that can be bought and a /cartitem/ for items in a shopping cart. Example of GET /product/2 response { "sku": "12345" "name":"mars…
More Than Five
  • 9,959
  • 21
  • 77
  • 127
-1
votes
2 answers

If this Facebook Graph API is restful

Facebook has an API to get your photos: GET graph.facebook.com /me/photos /me/ is a shortcut for the Id of the person logged in. Is that introducing state into the session and therefore is it restful? Would it not be more restful to…
More Than Five
  • 9,959
  • 21
  • 77
  • 127
-1
votes
1 answer

Actionscript 3, keeping track of multiple urlLoader and IOErrorEvents, how?

I am using urlLoader to load some remote content and then listen for Event.COMPLETE and IOErrorEvent.IO_ERROR. When I get IOErrorEvent.IO_ERROR I retry the original urlLoader request. This all works fine, however I wish to extend to support multiple…
Mar
  • 313
  • 3
  • 15
-1
votes
1 answer

Restful API Endpoints for one to many and many to many relationships

This is the scenario : In a university, there are many departments and one department has many programs ( One to Many ) and I want to fetch 'All the Programs that belong to a particular Department' How to best define restful endpoints for such…
-1
votes
1 answer

What stateless mean in REST

Communication between clients and servers must be stateless. Servers should not store any information about the context of clients between calls. What about session information that is used to maintain authentication? How to authenticate an…
Romper
  • 2,009
  • 3
  • 24
  • 43
-1
votes
1 answer

How to design REST APIi Route for this ternary association?

Consider the following database scheme : User (id, username, firstname, lastname, .....) Group (id, name) // 3 entries administrator, approver or issuer Project(id, name, launchdate, ....) with a ternary association relating the three previous…
-1
votes
1 answer

Are all the REST methods idempotent?

In Spring RESTful Web Services, are all the REST (Representational State Transfer) methods idempotent?
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301
-1
votes
1 answer

Generate documentation for custom implementation of Restful webservices

My project has a custom implementation of Rest for our API's (some 6k odd services) - We do not follow the JAX-RS specification. I am looking for a way to generate a Swagger (Yaml) document or WADL documentation for these services so that we can…
-1
votes
1 answer

Do we need to know about the database schema for designing Rest API?

I have to develop an android application where I may not be provided with the database schema for security purposes. The way they are suggesting is to use Restful API as an interface between the application and the database. Is it possible to design…
-1
votes
1 answer

Can i make a doPost and then doGet on the same submit button?

I have form with a button submit and i want that when the button submit is clicked make a POST through a servlet to database (mariadb) and then GET the values posted again through the same servlet to a HTML page on the same event (the clicked…
TOMAS
  • 55
  • 4
  • 11