Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
docs: put read endpoints first
Brendan O'Leary committed
Sep 17, 2026 at 18:47 UTC
d9a14c3abdefdd77ab15ddfc0da1bbcdac1ba616
2 files changed
+7
-7
docs/lib/source.ts
+4
-4
@@ -55,10 +55,10 @@ function loadOpenapiPages() {
55
type OpenapiPages = Awaited<ReturnType<typeof loadOpenapiPages>>;
56
57
const API_METHOD_ORDER: Partial<Record<string, number>> = {
58
- post: 0, // create
59
- patch: 1, // update
60
- put: 1, // update
61
- get: 2, // read
58
+ get: 0, // read
59
+ post: 1, // create
60
+ patch: 2, // update
61
+ put: 2, // update
62
delete: 3,
63
};
64
docs/tests/static/api-reference-routes.test.ts
+3
-3
@@ -135,7 +135,7 @@ async function generatedReferenceUrls(): Promise<Set<string>> {
135
const generatedUrlsPromise = generatedReferenceUrls();
136
137
describe('API reference route completeness', () => {
138
- test('sidebar operations follow create, update, read, delete order', async () => {
138
+ test('sidebar operations follow read, create, update, delete order', async () => {
139
const source = await getReferenceSource();
140
const operationIds = source.pageTree.children
141
.flatMap(function pages(node): string[] {
@@ -147,11 +147,11 @@ describe('API reference route completeness', () => {
147
.map(url => url.slice(url.lastIndexOf('/') + 1));
148
149
expect(operationIds).toEqual([
150
+ 'getAuthConfigs',
151
+ 'getAuthConfigsByNanoid',
152
'postAuthConfigs',
153
'patchAuthConfigsByNanoid',
154
'patchAuthConfigsByNanoidByStatus',
153
- 'getAuthConfigs',
154
- 'getAuthConfigsByNanoid',
155
'deleteAuthConfigsByNanoid',
156
]);
157
});