Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions content/docs/references/ai/devops-agent.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ Use Cases:

```typescript

import { DevOpsAgent } from '@objectstack/spec/ai';
import \{ DevOpsAgent \} from '@objectstack/spec/ai';

const agent: DevOpsAgent = {
const agent: DevOpsAgent = \{

name: 'devops_automation_agent',

Expand All @@ -53,47 +53,47 @@ role: 'Senior Full-Stack DevOps Engineer',

instructions: '...',

developmentConfig: {
developmentConfig: \{

specificationSource: 'packages/spec',

codeGeneration: {
codeGeneration: \{

enabled: true,

targets: ['frontend', 'backend', 'api'],

},
\},

},
\},

integrations: {
integrations: \{

github: {
github: \{

connector: 'github_production',

repository: {
repository: \{

owner: 'objectstack-ai',

name: 'app',

},
\},

},
\},

vercel: {
vercel: \{

connector: 'vercel_production',

project: 'objectstack-app',

},
\},

},
\},

};
\};

```

Expand Down
10 changes: 5 additions & 5 deletions content/docs/references/api/documentation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,27 +35,27 @@ Architecture Alignment:

```typescript

const docConfig: ApiDocumentationConfig = {
const docConfig: ApiDocumentationConfig = \{

enabled: true,

title: 'ObjectStack API',

version: '1.0.0',

servers: [{ url: 'https://api.example.com', description: 'Production' }],
servers: [\{ url: 'https://api.example.com', description: 'Production' \}],

ui: {
ui: \{

type: 'swagger-ui',

theme: 'light',

enableTryItOut: true

}
\}

}
\}

```

Expand Down
28 changes: 14 additions & 14 deletions content/docs/references/api/graphql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,59 +61,59 @@ GraphQL provides:

```graphql

query GetCustomer($id: ID!) {
query GetCustomer($id: ID!) \{

customer(id: $id) {
customer(id: $id) \{

id

name

email

orders(limit: 10, status: "active") {
orders(limit: 10, status: "active") \{

id

total

items {
items \{

product {
product \{

name

price

}
\}

}
\}

}
\}

}
\}

}
\}

```

@example GraphQL Mutation

```graphql

mutation CreateOrder($input: CreateOrderInput!) {
mutation CreateOrder($input: CreateOrderInput!) \{

createOrder(input: $input) {
createOrder(input: $input) \{

id

orderNumber

status

}
\}

}
\}

```

Expand Down
4 changes: 2 additions & 2 deletions content/docs/references/api/odata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ $count=true

```typescript

const query: ODataQuery = {
const query: ODataQuery = \{

select: ['name', 'email'],

Expand All @@ -99,7 +99,7 @@ expand: ['orders'],

count: true

}
\}

```

Expand Down
26 changes: 13 additions & 13 deletions content/docs/references/api/plugin-rest-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ Architecture Alignment:

```typescript

{
\{

"name": "rest_api",

"version": "1.0.0",

"type": "server",

"contributes": {
"contributes": \{

"routes": [

{
\{

"prefix": "/api/v1/discovery",

Expand All @@ -65,13 +65,13 @@ Architecture Alignment:

"middleware": [

{ "name": "response_envelope", "type": "transformation", "enabled": true }
\{ "name": "response_envelope", "type": "transformation", "enabled": true \}

]

},
\},

{
\{

"prefix": "/api/v1/meta",

Expand All @@ -81,29 +81,29 @@ Architecture Alignment:

"middleware": [

{ "name": "auth", "type": "authentication", "enabled": true },
\{ "name": "auth", "type": "authentication", "enabled": true \},

{ "name": "request_validation", "type": "validation", "enabled": true }
\{ "name": "request_validation", "type": "validation", "enabled": true \}

]

},
\},

{
\{

"prefix": "/api/v1/data",

"service": "data",

"methods": ["findData", "getData", "createData", "updateData", "deleteData"]

}
\}

]

}
\}

}
\}

```

Expand Down
8 changes: 4 additions & 4 deletions content/docs/references/api/registry.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Architecture Alignment:

```typescript

const apiEntry: ApiRegistryEntry = {
const apiEntry: ApiRegistryEntry = \{

id: 'customer_crud',

Expand All @@ -47,15 +47,15 @@ basePath: '/api/v1/data/customer',

endpoints: [...],

metadata: {
metadata: \{

owner: 'sales_team',

tags: ['customer', 'crm']

}
\}

}
\}

```

Expand Down
18 changes: 9 additions & 9 deletions content/docs/references/automation/etl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,41 +91,41 @@ Supports complex operations: joins, aggregations, filtering, custom SQL.

```typescript

const salesforceToDB: ETLPipeline = {
const salesforceToDB: ETLPipeline = \{

name: 'salesforce_to_postgres',

label: 'Salesforce Accounts to PostgreSQL',

source: {
source: \{

type: 'api',

connector: 'salesforce',

config: { object: 'Account' }
config: \{ object: 'Account' \}

},
\},

destination: {
destination: \{

type: 'database',

connector: 'postgres',

config: { table: 'accounts' }
config: \{ table: 'accounts' \}

},
\},

transformations: [

{ type: 'map', config: { 'Name': 'account_name' } }
\{ type: 'map', config: \{ 'Name': 'account_name' \} \}

],

schedule: '0 2 * * *' // Daily at 2 AM

}
\}

```

Expand Down
Loading
Loading