restful-url Questions
3
I would like to know which is the best practice when you are having a resource which contains a list of subresources. For example, you have the resource Author which has info like name, id, birthda...
Anarch asked 19/7, 2017 at 8:33
4
I'm having a real hard time conceptually understanding something proper concerning URLs for versioned resources.
Let's say I have an application that tracks recipes in a way very similar to a vers...
Cylix asked 27/2, 2013 at 22:9
1
Solved
I started learning Flask framework recently and made a short program to understand request/response cycle in flask.
My problem is that last method called calc doesn't work.
I send request as:
...
Mena asked 16/12, 2018 at 7:37
6
Solved
I have a url to fetch appointments for a user like this:
/user/:userId/appointments
How should the url look like if I want to get appointments for multiple users?
should it be:
/appointments?u...
Curriculum asked 14/8, 2012 at 1:3
1
I'm implementing a restful API interface, and was wondering about some limitations and best practices.
I have a GET request which retrieves a series of entries from a database table.
However my p...
Kif asked 6/9, 2016 at 16:53
3
Solved
I've seen URIs that support magic ids for the authenticated user like below:
GET /user/me - list my profile
GET /user/me/photos - list my photos
where the ones below use the actual user id
GET ...
Grisette asked 1/3, 2016 at 9:59
4
I am using AngularJS $resource model to REST API. I have got something like this:
angular.module('libraryapp')
.factory('Book', function($resource){
return $resource('books/:id');
});
I am us...
Backlash asked 14/11, 2014 at 10:52
3
Solved
Let's say I have an API where you can get users:
GET /RESTAPI/user/
And you can delete users by:
DELETE /RESTAPI/user/123
What is the RESTful convention on what the DELETE's response body should ...
Coupler asked 22/9, 2014 at 9:18
2
Solved
I am wondering what status code would I response with in my else statement from the code below:
if (album) {
res.status(200).json({error: false, data: {channel_id: album.attributes.channel_id, i...
Ammann asked 28/3, 2015 at 13:1
5
i am trying to learn restful services and as part of that i am designing a sample request and response page...see i am getting everything right except the following
resource called:
<i>
pa...
Martensite asked 24/10, 2016 at 6:0
3
Solved
I want to an image while I hit an API like localhost:8080:/getImage/app/path={imagePath}
While I hit this API it will return me an Image.
Is this possible?
Actually, I have tried this but it is ...
Donielle asked 18/3, 2018 at 10:28
2
Solved
I have a SQL database server in Microsoft Azure.
I want to use Azure Rest-API to select some records from a table.
When I refer to Azure SQL Database REST API I can't find any section for this purp...
Sherri asked 27/2, 2018 at 11:29
0
I am trying to consume an XML via a REST web service using SSRS. I am intending to create the XML using LINQ and then dump it at the web service location.
The web service is held in Azure under
...
Mccaffrey asked 15/2, 2018 at 10:15
4
Solved
I am designing a RESTful API and I came up with a problem related to sub-resources.
I see other APIs using full URL to operate over sub-resources. Take the example where Company has Departments an...
Intussusception asked 13/10, 2016 at 14:25
4
What's the best/restful way to design an API endpoint for checking existence of resources?
For example there is a user database. While new user tries to sign up I want to check if email has ...
Roybal asked 13/1, 2014 at 9:39
5
Solved
I am very new to angularJS. I am searching for accessing services from RESTful API, but I didn't get any idea. How can I do that?
Dimmer asked 6/5, 2013 at 7:31
1
Solved
I have this routing:
url(r'^article/(?P<article_id>\d+)/', views.ArticleList.as_view())
which leads to this function:
class RSSList(APIView):
def get(self, request, *args, **kwargs):
a...
Brisance asked 6/11, 2017 at 12:18
10
I have numerous anchor tags on my page that only trigger jQuery actions on the same page.
The don't redirect the user to another location, which is the normal expected behavior of an anchor tag.
...
Tintometer asked 19/11, 2010 at 12:24
1
Solved
This code works
https://graph.microsoft.com:443/v1.0/me/drive/root?$filter=Size eq 0&$expand=children($select=id,folder,name,parentReference,cwebUrl)&$select=Id,folder,name,parentReference...
Carner asked 7/7, 2017 at 10:17
3
Solved
I have a question regarding RESTful API design. Following the guidelines of REST, all endpoints should be nouns and in plural, and should never be verbs. However, it is customary to have authentica...
Ashanti asked 20/9, 2014 at 20:6
2
Solved
We are building a restful service for serving employee data.
We have an api which will return the list of employees who belong to a specific department of a client.
This api takes 2 parameters -...
Shirley asked 27/3, 2017 at 6:44
3
What is best practice for search in API?
GET + query parameters, example: GET /search?q=phone
GET + parameters in body, example: GET /search {"query": "phone"}
POST + parameters in body, example:...
Wad asked 11/5, 2017 at 13:13
4
Solved
I have been discussing the best way of doing this with one of my colleagues
Here's an example scenario:
I'm trying to GET all orders for a Customer with ID of 1234.
Consider the following endpoi...
Karrikarrie asked 30/12, 2013 at 19:41
2
I have a resource that essentially requires another resource as input data for creation. For example:
POST /v1/NewResource
body: {InputResource}
The interesting thing, however, is that creation ...
Messenia asked 16/8, 2016 at 21:58
1
I am trying to get my head around how to handle relationships in REST.
I have read this question.
If I have Drivers and Cars in my api and a Driver can only exist if connected to a Car I would ma...
Porringer asked 26/10, 2015 at 12:57
© 2022 - 2024 — McMap. All rights reserved.