Quantcast
Channel: Active questions tagged rest - Stack Overflow
Browsing all 3607 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

Response model for specific status codes using Swagger

I am using Swagger to document my REST API (using asp.net web api 2). Is there a way in swagger to give response models for each possible responses for a given api call? I am annotating the status code...

View Article


Getting 'fetch has been blocked by CORS policy: No...

while I am experienced in .NET and JavaScript, I am currently learning React and during the fetch to my REST API I am getting this error.Access to fetch at 'https://localhost:7142/api/Campaign' from...

View Article


How to properly use Gorm auto increment?

I have a Go struct that defines a table managed by gorm. It includes a unique, integer, primary key that auto increments.type CreatedSurvey struct { ... Id int `json:"id"...

View Article

REST pattern for multiple entities

everyone!I have two REST endpoints:/projects/gamesEach project can have multiple games and of course, I can create projects and games by making POST requests to each one of them. No big deal.But I want...

View Article

My Vue API client is getting data OK, and I have the logic to turn it into...

DiscogsCSV is intended to do the following:Take as input a .csv file, the first column of which contains valid discogs release IDsLook these release IDs up on discogs API https://api.discogs.com/Return...

View Article


Can login as superuser but not as normal user

i have made a super user and registering other users. but only able to log in as superuser and when i try to login as normal user its shows "Invalid phone number or password".Can someone help me with...

View Article

How to create JWT token in Symfony5?

I'm trying to create REST API with JWT authentification in Symfony5. At first I've tried to do as written here...

View Article

Is there a way to have a user enter a url query and have a single function...

I'm playing with the Django rest framework and PostgreSQL, building an API that returns data on all of the stats from this NBA season. Rather than having a function to return stats for each category,...

View Article


my azure web app (rest node api ) works with a curl request in terminal but...

enter image description hereI have REST API deployed on azure when I am hitting requests other than curl it is sending a response as 404 but when curl request is being hit resource get created...

View Article


Mongoqueryable Join query taking longer time

public async Task<PaginationResult<TypeEntity>> GetAllWorkFlowAsync(string filterCondition,string sort, int page, uint? limit, bool includeDeleted, string model) { var sharedResult =...

View Article

Image may be NSFW.
Clik here to view.

401 Response From TPR FMCSA

I am a training provider and I am trying to submit my drivers data for Online courses to TPR registry.You can visit https://tpr.fmcsa.dot.gov/ to know more.I am using their training Provider developer...

View Article

API based auth failed: wrong credentials. || Ansible [closed]

I am able to get the result when I do a normal REST API call with:curl --location 'https://10.1.2.80/api/v2/cmdb/firewall/address' --header 'Accept: application/json' --header 'Authorization: Bearer...

View Article

Update Vee Validate after successful submission but API returns bad request

This is my component: SignupButton.vue<script setup>import { Form, Field, ErrorMessage } from 'vee-validate';import { toTypedSchema } from '@vee-validate/zod';import { z } from 'zod';const...

View Article


SpringBoot csrf handling for API methods [duplicate]

I have a SpringBoot webapp, and it's working OK for API users to access by first "logging in" via the URI http://localhost:8081/loginRestMy WebSecurityConfig looks like this:...

View Article

Passport.js Error Handling Instead of throwing the error into stdout

So I Have The Current Code For Authorization (and im probably going to merge login with signup):Strategy:const passport = require("passport")const { Strategy } = require("passport-local")const {...

View Article


Restapi forbidden response in vb task

I have an API that I tested in Postman. I want to use this API in a task within my own software. I can call the Access Token, CSRF token, and cookies, but when it comes to sending the content I want...

View Article

Restrict Restful API Access to Flutter client only?

I need to create a Restful API backend for my flutter app using NodeJS with Mysql. I'd like to restrict endpoint access to just the Flutter client. The user shouldn't have to register and the only...

View Article


Directus all API endpoints are returning 404 error

I have uploaded my directus code into the ssh server.But none of my APIs endpoint whether POST or GET is working, all returning 404 errors.However I can see all content, all items, can login etc.I am...

View Article

Issues Connecting to Spirent TestCenter Using Java and Tcl

I'm having trouble connecting to Spirent TestCenter (STC) using both Java and Tcl scripts. Here are the steps I've taken and the errors I'm encountering:Using Java:I tried running a script Java with...

View Article

Create Adobe SIgn API with `addressbook_read` scope enabled

We are using the new Adobe Sign Reusable recipient groups feature. Works great, thank you Adobe!One problem, however. I seem to only be able to use the Adobe Sign GET...

View Article
Browsing all 3607 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>