Skip to content

laserburst/apexlib

Repository files navigation

apexlib

Reusable Apex

License: MIT API Version

Components

It handles what should have been handled for us long ago. Reduce duplication with CalloutBuilder.

ExampleResponse.DialogToken token = (ExampleResponse.DialogToken)
    new CalloutBuilder('callout:MyNC')
        .withEndpoint('/dialog-tokens')
        .withMethod('POST')
        .withSuccessType(ExampleResponse.DialogToken.class)
        .withErrorType(ExampleResponse.Error.class)
        .getTypedResponseBody();

HTTP mock template. ViciousMockBase lets you define mock families using instance initializer blocks; ViciousMockery is a drop-in mock for any status code.

ViciousMockery.cast(200);

Thin wrapper around the most-used ConnectApi methods prepared for use.

Claude Code

A Claude Code skill for CalloutBuilder is included at .claude/skills/apex-callout-builder/SKILL.md. Copy it to your project's .claude/skills/ directory and Claude will automatically generate, review, and explain CalloutBuilder code — including response DTOs, error handling, test mocks, file uploads, and async callouts.

About

Reusable code for Salesforce

Topics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages