powered by

Quick Wins

My First Project

Updated Mar 19, 2026
Build a real working backend in under ten minutes. This tutorial walks you through creating a product catalogue from scratch — entities, APIs, and a test of the live endpoints.

This tutorial assumes you have an Anythink account and an active project. If you haven't created a project yet, log in at app.anythink.cloud and click New Project.


What you'll build

A simple product catalogue with:

  • A categories entity (name, description)
  • A products entity (name, price, description, category, image)
  • A working REST API for both
  • A test run via the live API docs

Step 1 — Create your first entity

  1. Open your project dashboard and go to Settings → Data Model
  2. Click + New Entity
  3. Name it categories
  4. Click Save

Your categories entity now exists with a default id field. The API is already live.


Step 2 — Add fields to categories

Click on categories to open the field editor. Add:

Field name Type Options
name varchar Required
description text

Click Save after each field.


Step 3 — Create the products entity

Back on the Data Model screen, add a second entity: products.

Add these fields:

Field name Type Options
name varchar Required
description text
price float Required
in_stock bool Default: true
category Foreign key → categories
image file

Save after each field.


Step 4 — Open the API docs

In your project dashboard, click API Documentation. This opens the live, auto-generated docs for your project.

You will see endpoints for both categories and products. Everything was created automatically — no code needed.


Step 5 — Create a category via the API

In the API docs, find POST /entities/categories/items. Click Try it, enter this body, and run it:

json
{
  "name": "Electronics",
  "description": "Gadgets and devices"
}

You should get back a 201 Created response with the new record including its id. Copy the ID — you'll need it in the next step.


Step 6 — Create a product

Find POST /entities/products/items. Create a product linked to your category:

json
{
  "name": "Wireless Headphones",
  "description": "Over-ear, noise cancelling",
  "price": 79.99,
  "in_stock": true,
  "category": 1
}

Replace 1 with the actual ID you got from the category step.


Step 7 — List your products

Hit GET /entities/products/items. You should see your product returned in the items array.

Try adding a filter: ?filter[in_stock]=true


Step 8 — Connect your frontend

Your API URL is:

http
https://api.my.anythink.cloud/org/{orgId}/entities/products/items

Replace {orgId} with your project's org ID (shown in your dashboard). Here's a minimal fetch call to list products:

javascript
const orgId = 'YOUR_ORG_ID';
const token = 'YOUR_JWT_OR_API_KEY';

const res = await fetch(
  `https://api.my.anythink.cloud/org/${orgId}/entities/products/items`,
  {
    headers: { 'Authorization': `Bearer ${token}` }
  }
);

const data = await res.json();
console.log(data.items); // Array of products

What's next

You have a working product catalogue backend. From here you can: