Category "rest"

Discord: 403 Forbidden (error code: 50001)

I tried to get a list of users through the API, but in response I got: Missing Access 403 Forbidden (error code: 50001) Request: https://discord.com/api/v9/guil

Using zipOutPutStream, cannot change mediatype in exceptionhandler, when exception happens in Spring

In my post request endpoint, I want to generate ZIP File. Here is endpoint: public void downloadZipFile(@RequestBody final Parameters parameter, final HttpServl

Want to send extra data from BasePermission to Queryset in ModelVIewSet DRF

Here is My Seller Model which has User as OneToOneField #models.py . . class CompanyProfile(models.Model): user = models.OneToOneField(User, on_delete=mode

MongoDB aggregate and then flatten

FULL DISCLOSURE: I'm a MongoDB noob I'm dealing with a legacy DB structure. A part of my MongoDB looks like this currently: Events (_id, name (string), ...) Ord

How to Create a new folder in vcenter using rest api

Can anyone help me to provide right API to create a New folder in vcenter Thanks, Benji I can see only get API to list folders in vmware api document, unable to

Where to place the resource root id in the url?

I have resources linked like this: A->B->C->D I want to design a REST API to retrieve the D elements inside of A Which is the best design approach? api

API URL Query to filter the response

So I'm trying to filter the response of my API GET query and can't seem to find a way to access deep enough in Json. My response is like: { "orders": [

How to return custom JSON response in DRF?

I have created API for News model: models.py class News(models.Model): title = models.CharField(max_length=255) created_at = models.DateTimeField(auto_n

Rollback solution for a REST service

We provide various update and insert REST services as a central point for processing data on the mainframe. The REST Resources are hosted on one server and are

Test on Redsys API

I am trying to make a post method on RedSys Api with the test info they have on the webpage https://pagosonline.redsys.es/conexion-rest.html, just to see the re

Web API Pagination using List.Numbers Works in PowerBI Desktop but not in PowerBI Service

I have a PowerBI report that uses both a Web URL and SQL Server data. The Web URL only returns 100 rows per page, so I followed this tutorial to loop through t

Java Time & Rest API

I’ve red multiple articles and discussions and still I have some uncertainty: I’m not sure if I should use Instant or any other type to store Bookin

Call RestApi endpoint resource from EJB

I have been looking around for sample code how to call a Restful service written in Spring boot (deployed in different server/ip) from an EJB client. I couldn't

Loopback 4 auto generated model with required id failing validation

I'm using an automated script that runs an auto-generation model using lb4 cli. Looks like validation expects id to be provided, but swagger missing it in its s

Fetch Forms' Data (Submission Table) From Wix to a Custom CRM

I have developed a CRM Application in which I am fetching Leads from Facebook Ads via Graph API through Bulk Read. I want to do the same with WIX but I am unabl

How to separate tables based on the model using FSM and FSM-Log?

I'm currently logging status changes to several models in my Django REST API using the django-fsm and django-fsm-log packages. However, all of the logs are stor

should I consider the case sensitive when design the rest api url

Now I am design a rest api, what makes me confusing is that the url case sensitive, for example, the /currentUser, I read some api design like google: https://d

difference between django and django rest framework

Okay I just finished a YouTube course on Django tutorials and i more or less understand Django to an extent. Now the issue is Django rest framework. Google says

How can I use the filter() function to filter this set of data from API?

API Call code: const settings = { "async": true, "crossDomain": true, "url": "https://v3.football.api-sports.io/fixtures?date=2021-04-07", "method": "GET", "hea

WSO2 Enterprise Integration: POST request give CORS Error

I have Restful APIs. I want to use WSO2 EI. I use WSO2 Integration Studio. When I do that all GET request works well. But POST request gets CORS error when I se