Skip to content
Sadegh Sharbaf
HomeProjectsExperienceKnowledgeAboutResume
فارسی
Explore
HomeProjectsExperienceKnowledgeAboutResumeStart a Project ↗
  1. Home
  2. Knowledge
  3. Start with Clear API Boundaries
← Back to knowledge

Knowledge & reflections

Start with Clear API Boundaries

A clear boundary between interface and service makes a system easier to understand, change and maintain. ## Let the service own the rules The interface can guide a user, but the service must validate permissions and business rules. In a shop, for example, the browser submits a product and quantity while the service calculates the current price and checks available stock. ## Make the contract explicit Describe required fields, accepted values, error states and ownership. A missing value and an empty value can mean different things. Use stable identifiers rather than display names to connect records. ## Design for change Keep request code separate from presentation. A shared request layer can handle status codes consistently, while a card or form remains responsible for what the person sees. Small, explicit contracts make that separation practical.

Have a backend challenge?

Let's turn it into a clear plan.

Tell me what you are building, the people it serves and where you need help.

Discuss your project
Sadegh Sharbaf
ProjectsExperienceKnowledgeContactPlayground
↑
© 2026 Sadegh Sharbaf
GitHubLinkedInTelegram
AdministrationUpdate resume

AI assistant · unavailable

Ask Sadegh

Responses will be AI-generated when the service is enabled. AI chat is currently unavailable; no messages are sent and no AI answers are generated.

Explore the work while chat is offline.

The secure server connection is not configured. For pricing, availability or project commitments, contact Sadegh directly.

Questions for a future conversation

Verified website references

Published portfolio content, not AI answers or independently verified outcomes.

  • Achievement — Goals & Personal Discipline

    A Persian platform for daily planning, goals and tracking personal progress.

  • Nava — Self-hosted Messenger

    A Persian self-hosted messenger for private communication in small groups.

  • Sadegh Sharbaf — Personal Platform

    A cinematic personal website pairing an expressive visual identity with a lightweight frontend and managed content.

About Sadegh and expertise ↗

Do not enter confidential information. Drafts are not stored or submitted.

Contact Sadegh

AI service is not configured.