TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Data models

The fields of each model used in request and response bodies.

Address

FieldTypeDescription
streetstring (nullable)Street and house number.
citystring (nullable)City.
statestring (nullable)State, province or region (may be empty).
zipstring (nullable)Postal code.
countrystring (nullable)Country name.
geoGeoLocation

Album

FieldTypeDescription
idinteger (int32)Unique ID, assigned by the server.
userIdinteger (int32)Owner user ID (positive; 101-110 in the seed data).
titlestring (nullable)Album title (required).

ApiRequestData

FieldTypeDescription
endpointUrlstring (nullable)
methodNamestring (nullable)
requestBodystring (nullable)

Book

FieldTypeDescription
idinteger (int32)Unique ID, assigned by the server.
titlestring (nullable)Title (required).
authorstring (nullable)Author (required).
isbnstring (nullable)ISBN-13 without hyphens.
genrestring (nullable)Genre, e.g. fantasy.
publishedYearinteger (int32)Year first published.
pagesinteger (int32)Page count; zero or greater.
languagestring (nullable)Original language.
pricenumber (double)Price in USD; zero or greater.
ratingnumber (double)Average rating from 0 to 5.
availablebooleanWhether the book is in stock.
tagsarray<string> (nullable)Free-form tags.

CachingControllerDocumentUpdate

FieldTypeDescription
titlestring (nullable)New title, or null to keep the current one.
contentstring (nullable)New content, or null to keep the current one.

Cart

FieldTypeDescription
idinteger (int32)
userIdinteger (int32)
itemsarray<CartItem> (nullable)
totalnumber (double)
updatedAtstring (nullable)

CartItem

FieldTypeDescription
productIdinteger (int32)
quantityinteger (int32)
pricenumber (double)

Comment

FieldTypeDescription
idinteger (int32)
postIdinteger (int32)
userIdinteger (int32)
bodystring (nullable)
createdAtstring (nullable)

Company

FieldTypeDescription
idinteger (int32)Unique ID, assigned by the server.
namestring (nullable)Company name (required).
industrystring (nullable)Industry (required).
foundedinteger (int32)Year founded (1800 to the current year, or 0 if unknown).
websitestring (nullable)Website URL.
headquartersCompanyHeadquarters
revenuenumber (double)Annual revenue in USD; zero or greater.
employeeCountinteger (int32)Headcount; zero or greater.

CompanyHeadquarters

FieldTypeDescription
citystring (nullable)City.
countrystring (nullable)Country.

CookiesControllerLoginBody

FieldTypeDescription
usernamestring (nullable)Account name: test or admin (case-insensitive).
passwordstring (nullable)Account password: test123 or admin123 (case-sensitive).

Country

FieldTypeDescription
idinteger (int32)Unique ID, assigned by the server.
namestring (nullable)Common name (required).
codestring (nullable)ISO 3166-1 alpha-2 code (required, 2 letters).
code3string (nullable)ISO 3166-1 alpha-3 code (3 letters).
capitalstring (nullable)Capital city.
regionstring (nullable)Region: Africa, Americas, Asia, Europe or Oceania.
populationinteger (int64)Approximate population; zero or greater.
areanumber (double)Area in square kilometres; zero or greater.
currencyCountryCurrency
languagesarray<string> (nullable)Official or main languages.
callingCodestring (nullable)International dialling code, e.g. +81.
flagstring (nullable)Flag emoji.
timezonesarray<string> (nullable)UTC offsets used.

CountryCurrency

FieldTypeDescription
codestring (nullable)ISO 4217 code, e.g. JPY.
namestring (nullable)Currency name.
symbolstring (nullable)Currency symbol.

Employee

FieldTypeDescription
idinteger (int32)Unique ID, assigned by the server.
firstNamestring (nullable)Given name (required).
lastNamestring (nullable)Family name (required).
emailstring (nullable)Work email (required, must contain @).
phonestring (nullable)Phone number.
departmentstring (nullable)Department name (required).
titlestring (nullable)Job title.
salarynumber (double)Annual salary; zero or greater.
hireDatestring (nullable)Hire date (yyyy-MM-dd).
managerIdinteger (int32) (nullable)ID of the employee's manager, or null at the top of the org chart.
companyIdinteger (int32)ID of the employing company.
skillsarray<string> (nullable)Skill tags.
addressAddress
activebooleanWhether the employee currently works there.

Event

FieldTypeDescription
idinteger (int32)Unique ID, assigned by the server.
namestring (nullable)Event name (required).
categorystring (nullable)Category, e.g. conference.
venuestring (nullable)Venue name.
citystring (nullable)City.
startsAtstring (nullable)Start time, ISO 8601 UTC (required).
endsAtstring (nullable)End time, ISO 8601 UTC; must not be before StartsAt.
pricenumber (double)Ticket price in USD; 0 means free.
capacityinteger (int32)Maximum attendees.
ticketsSoldinteger (int32)Tickets sold; cannot exceed Capacity.
organizerstring (nullable)Organizer name.
tagsarray<string> (nullable)Free-form tags.

GeoLocation

FieldTypeDescription
latnumber (double)Latitude in decimal degrees.
lngnumber (double)Longitude in decimal degrees.

JobsControllerJobRequest

FieldTypeDescription
typestring (nullable)Job type: report, export, import or fail (fails at 60%). Default report.
durationSecondsinteger (int32) (nullable)How long the job runs after leaving the queue, in seconds (1-60, default 10).

JwtAuthControllerLoginRequest

FieldTypeDescription
usernamestring (nullable)Username (case-insensitive): admin or user.
passwordstring (nullable)Password (case-sensitive): admin123 or user123.

JwtAuthControllerRefreshRequest

FieldTypeDescription
refreshTokenstring (nullable)The refreshToken from login or a previous refresh.

Movie

FieldTypeDescription
idinteger (int32)Unique ID, assigned by the server.
titlestring (nullable)Title (required).
directorstring (nullable)Director (required).
yearinteger (int32)Release year (1888 to five years from now, or 0 if unknown).
genresarray<string> (nullable)Genres, e.g. Sci-Fi.
runtimeMinutesinteger (int32)Runtime in minutes; zero or greater.
ratingnumber (double)Rating from 0 to 10.
castarray<string> (nullable)Leading cast members.
boxOfficeinteger (int64)Worldwide box office in USD.
posterstring (nullable)Poster image URL.

Order

FieldTypeDescription
idinteger (int32)
userIdinteger (int32)
itemsarray<OrderItem> (nullable)
totalnumber (double)
statusstring (nullable)
shippingAddressShippingAddress
orderedAtstring (nullable)
deliveredAtstring (nullable)

OrderItem

FieldTypeDescription
productIdinteger (int32)
titlestring (nullable)
quantityinteger (int32)
pricenumber (double)

Person

FieldTypeDescription
idinteger (int32)Unique ID, assigned by the server.
firstNamestring (nullable)Given name (required).
lastNamestring (nullable)Family name (required).
usernamestring (nullable)Username (required).
emailstring (nullable)Email address (required, must contain @).
genderstring (nullable)Gender.
dateOfBirthstring (nullable)Date of birth (yyyy-MM-dd).
phonestring (nullable)Phone number.
avatarstring (nullable)Avatar image URL.
addressAddress
companyPersonCompany

PersonCompany

FieldTypeDescription
namestring (nullable)Company name.
titlestring (nullable)Job title.

Photo

FieldTypeDescription
idinteger (int32)Unique ID, assigned by the server.
albumIdinteger (int32)ID of the album it belongs to (positive).
titlestring (nullable)Caption (required).
urlstring (nullable)Full-size image URL (absolute).
thumbnailUrlstring (nullable)Thumbnail image URL.

Post

FieldTypeDescription
idinteger (int32)
userIdinteger (int32)
titlestring (nullable)
bodystring (nullable)
tagsarray<string> (nullable)
publishedAtstring (nullable)
likesinteger (int32)

Product

FieldTypeDescription
idinteger (int32)
titlestring (nullable)
pricenumber (double)
descriptionstring (nullable)
categorystring (nullable)
imagestring (nullable)
ratingRating
inStockboolean
createdAtstring (nullable)

Rating

FieldTypeDescription
ratenumber (double)
countinteger (int32)

ShippingAddress

FieldTypeDescription
streetstring (nullable)
citystring (nullable)
statestring (nullable)
zipstring (nullable)
countrystring (nullable)

Todo

FieldTypeDescription
idinteger (int32)
userIdinteger (int32)
titlestring (nullable)
completedboolean
prioritystring (nullable)
dueDatestring (nullable)

User

FieldTypeDescription
userIdinteger (int32)
namestring (nullable)
emailstring (nullable)
jobstring (nullable)
citystring (nullable)

UserLogin

FieldTypeDescription
usernamestring (nullable)
passwordstring (nullable)

UserXmlRequest

FieldTypeDescription
namestring (nullable)
jobstring (nullable)
citystring (nullable)

ValidationControllerAnnotatedSignup

FieldTypeDescription
usernamerequiredstringRequired, 3-20 characters.
emailrequiredstring (email)Required, must be a valid email address.
ageinteger (int32)Age, 18-120.
countryCoderequiredstringRequired, 2-letter uppercase ISO country code, e.g. US.
websitestring (uri) (nullable)Optional absolute http(s) or ftp URL.
phonestring (tel) (nullable)Optional phone number.
tagsarray<string> (nullable)Optional list of 1-5 tags.

WebhooksControllerCreateBinRequest

FieldTypeDescription
namestring (nullable)Optional display name (up to 100 characters). Defaults to bin-xxxxxx.