You are not logged in.

#1 2023-04-04 1:11 pm

DaveGYNWA
Member
Registered: 2023-04-04
Posts: 2

Add to database via API - testing

Hi

I'm building some functionality into a 'contact us' spam detection system which would be used to submit reports to the database via the API.

These reports will be for contact submissions that haven't been detected as spam through other means, but when viewing the submission it is obvious that it is spam and therefore could be submitted to database.

I was wondering of there was any test data that could be reliably submitted to the database to trigger the HTTP 200 and 403 responses without submitting actual live data?

For example:
Username: Spammer
Email Address: iamaspammer@spam.com
IP Address: 172.0.0.10

I'd like to avoid sending in live information during my development/testing of the resource, just in case.

Thanks

Dave

Offline

#2 2023-04-04 7:44 pm

Alex Kemp
Moderator
From: Nottingham, England
Registered: 2009-12-02
Posts: 2,424
Website

Re: Add to database via API - testing

I have sent a PM to pedigree on your behalf.

Offline

#3 2023-04-05 4:14 am

pedigree
uıɐbɐ ʎɐqǝ ɯoɹɟ pɹɐoqʎǝʞ ɐ buıʎnq ɹǝʌǝu ɯ,ı
From: New Zealand
Registered: 2008-04-16
Posts: 7,059

Re: Add to database via API - testing

Use these

IP address 1.2.3.4
username testingspam
email testingspam@testingspam.com

Offline

#4 2023-04-05 8:17 am

DaveGYNWA
Member
Registered: 2023-04-04
Posts: 2

Re: Add to database via API - testing

BOOM!! Cheers guys

Offline

Board footer

Powered by FluxBB

Close
Close