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
-2
votes
1 answer

How to post multipart content type in single request body using spring and restful service

We have a requirement to post a multiformats request type to send to a resful api..I am a beginer and need help with a sample program hiw to post multiple requests with different format like json and pdf in single http request so that I can get a…
satya
  • 13
  • 6
-2
votes
1 answer

Dynamic websites using php without inclusion

I am developing a website where all 5 main pages(home, about me, contact, blog, my foundation) are structured different from each other so I dont want to use the include() function to inherit anything from the index. how do I go about going to…
Nana
  • 3
  • 3
-2
votes
2 answers

Json array data available now we have to show it in json objects

I have data in the format shown below, and now i want to show this data JSON object wise like. I have this function: function getAllpoi(){ global $results_poi; $results_poi = array(); $stmt = $this->conn->prepare("SELECT * FROM poi"); if…
SB Dhera
  • 1
  • 2
-2
votes
1 answer

Inconsistent accessibility: return type is less accessible than method in RESTful service

Below is my entire source code. Can anyone please suggest how to solve the following error: Error 2 Inconsistent accessibility: return type 'ConsumingApp.Dept' is less accessible than method 'ConsumingApp.Form1.CreateDept(ConsumingApp.Dept)' …
FahmiMater
  • 17
  • 3
-2
votes
1 answer

PHP: PATCH method fails when others succeed

I have a an API I'm using a variety of methods on. GET works fine as do the others I am testing. When using PATCH, it gives errors despite the documentation showing it's enabled. The errors are: Warning: file_get_contents(): SSL: Connection reset by…
pee2pee
  • 3,619
  • 7
  • 52
  • 133
-2
votes
1 answer

AsyncHttpResponseHandler class must either be declared abstract or implement abstract method android

Following this tutorial But I am getting the error on below code AsyncHttpResponseHandler says AsyncHttpResponseHandler class must either be declared abstract or implement abstract method…
Vishvendu Palawat
  • 566
  • 10
  • 29
-2
votes
1 answer

Web service option in visual studio 2012

I want to create one restful web service in c#,which fetch the data from database and return the result into the Json format.and the json result will be used by my android mobile application for parsing and result will be display.The database is…
sheetal. gami
  • 47
  • 1
  • 10
-2
votes
1 answer

How to expose services in Rest?

Please help me to understand how to expose service in REST. Is it depends on RESOURCE or depends on the size of data ? Example: Let we take 2 resources (STUDENT & DEPARTMENT). Now I have an requirement of exposing "Total number of Students" and…
Pavan
  • 337
  • 1
  • 4
  • 10
-2
votes
2 answers

How to connect one project to another in java through eclipse?

I have a requirement,where in which if i click on a particular link from the main project,the eclipse has to connect to a different sub project,perform the desired action,return the action performed to the main project,and main project renders the…
-3
votes
2 answers

@Repository and @RestController together

I have a working JpaRepository as an interface, and a working Restcontroller. They are two types currently and I like to join them to one! This is what i have: @Repository @RestController("problem") public interface ProblemsController extends…
Peter Rader
  • 237
  • 3
  • 14
-3
votes
1 answer

converting a java application to restful uri

I am writing a java code which gets the JSON formatted data from a Webservice (with POST call). And I convert this to a text formatted file and move to destination folder. In order for other service to POST data(the JSON file which is input for…
Prerana
  • 1
  • 1
-3
votes
1 answer

Rest api how to get parameters?

I'm new to rest api. I need to make an api that takes a string as parameter and then return boolean. Now my question is how to i pass that string to my api, and then get the string inside my api?
Nicklas
  • 39
  • 1
  • 4
-3
votes
1 answer

How to get json array value and display in dropdwon list in angularjs?

{"id":1,"firstName":"John1","lastName":"Doe1","**accountIds**":[12345,12346,12347],"recipients":[{"accountNumber":22222,"firstName":"Mary1","lastName":"Jane1"},{"accountNumber":33333,"firstName":"Mary2","lastName":"Jane2"}]} display "accountIds" is…
Rajesh Kumar
  • 153
  • 2
  • 4
  • 13
-4
votes
1 answer

Is it a valid REST API URL?

I am implementing a REST API that return a JSON containing the list of some commodities sold in a country. I am asking if this kind of URL is good for the pourpose and feed with the RESTfull principles to resources…
AndreaNobili
  • 40,955
  • 107
  • 324
  • 596
-5
votes
1 answer

Is this path RESTful?

I have a doubt Is this path restful? api/Cars/Sources Sources exist in the context of Cars. Imagine that I have this sources: Source1 : name = source1 , Source2: name = source2 And then in my cars I have: Car1: name =car1, sourceName =…
André Azevedo
  • 227
  • 1
  • 4
  • 11
1 2 3
90
91