agentsclimarketplace

Tds restkit

Skill brunosps/tds-protheus-tools/skills/tds-restkit

Generate Protheus REST integration code, both directions. CONSUME external REST APIs with the FWRest client class (GET/POST/PUT/DELETE, headers, query/path params, JSON body, auth: No Auth / HTTP Basic / Bearer-JWT / OAuth 2.0, timeout, SSL, status handling). EXPOSE TLPP REST endpoints with annotation routing (@Get/@Post/@Put/@Patch/@Delete, oRest) following TOTVS API standards (TTALK): pagination, error model, standard headers, Swagger. Use when the user says 'consume REST API', 'call external API', 'FWRest', 'Bearer token AdvPL', 'create REST endpoint', 'TLPP REST', '@Get annotation', 'oRest endpoint'.From its SKILL.md

Install
npx -y skills add brunosps/tds-protheus-tools --skill tds-restkit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.4 KB, as published. Nobody here has run it

TDS RestKit — Protheus REST Client & Endpoint Generator

Two complementary jobs. Pick the right one first:

  • Consuming an external API from Protheus → use the FWRest client (Part 1).
  • Exposing an endpoint from Protheus → use TLPP REST annotations (Part 2).

Part 1 — Consume external APIs (FWRest client)

FWRest is the framework HTTP client class — the counterpart to the @Get/@Post server. It supports GET, POST, PUT, DELETE (no native PATCH) and handles SSL via appserver.ini socket config. Prefer it over legacy HTTPCGet/HTTPCPost/HTTPQuote.

Use when calling third-party APIs (CRMs, payment gateways, government services), sending JSON payloads, pulling data into a routine, or needing HTTP Basic / Bearer-JWT / OAuth 2.0 auth.

ReferenceRead when
references/fwrest-api-reference.mdFWRest object API — verbs, headers, path/query params, body, status codes, timeout, SSL.
references/fwrest-authentication-patterns.mdNo Auth, HTTP Basic, Bearer/JWT, OAuth 2.0 flows.
references/fwrest-client-templates.mdReady GET/POST/PUT/DELETE client templates with TLPP try/catch and JSON (de)serialization.

Part 2 — Expose endpoints (TLPP REST)

Annotation-based routing with @Get/@Post/@Put/@Patch/@Delete and the oRest object, following the TOTVS API standard (TTALK): pagination, the standard error model, standard headers, and Swagger documentation.

Use when creating/extending a Protheus-served REST API, applying TTALK pagination/error conventions, or generating Swagger metadata.

ReferenceRead when
references/tlpp-rest-endpoint-templates.mdEndpoint templates — routing, request parsing, response building, pagination, error model.
references/ttalk-standards-and-configuration.mdTTALK standards, headers, status codes, PrepareIn/environment configuration.

Security: endpoints must not call RpcSetEnv/RpcSetType (gate rule [BG1000]). Configure PrepareIn and use the tenantId header instead. Validate this with tds-forge --action quality.


Related Skills

  • tds-forge — quality-gate (blocks RpcSetEnv in REST), compile, patch.
  • tds-codex — data dictionary for the fields you serialize/consume.
  • tds-scaffold — MVC screens that may call these clients/endpoints.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.