Skip to content

Commit

Permalink
Merge pull request #21 from TrueSparrowSystems/v0.2.0
Browse files Browse the repository at this point in the history
Enhancements: Added documentation for new functionalities.
  • Loading branch information
AMAN-BARBARIA authored Aug 31, 2023
2 parents 2033ef1 + a1e9205 commit 8e2977e
Show file tree
Hide file tree
Showing 35 changed files with 1,863 additions and 256 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ Welcome to the documentation for SalesSparrow. This document serves as a central
## Table of Contents

### SalesSparrow API
- [OpenAPI Specification](./openapiSpecifications/index.md)
- [OpenAPI Specification](./openApiSpecifications/index.md)
- [Sequence Diagrams](./sequenceDiagrams/index.md)
- [Database Schema](dbSchema.dbml)
- [Postman Collection](./postman/AI-Sales-Sparrow.postman_collection.json)
- [Postman Environment](./postman/AI-Sales-Sparrow-local.postman_environment.json)
- [Salesforce Connected App Setup](salesforceConnectedAppSetup.md)
- [Salesforce Configuration Guide](salesforceConfigurationGuide.md)
- [Architecture Diagram](architectureDiagram.png)

### SalesSparrow App

Expand Down
Binary file added architectureDiagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,12 @@ paths:
example: "0691e000001WXlcAAG"
note_map_by_id:
type: object
description: Map of notes by ID
properties:
0691e000001WXlcAAG:
type: object
properties:
id:
type: string
example: "0691e000001WXlcAAG"
creator:
type: string
example: "xyz"
text_preview:
type: string
example: "Note Full Content"
last_modified_time:
type: string
format: date-time
example: "2019-10-12T07:20:50.52Z"
$ref: 'Components.yaml#/components/schemas/note'

/v1/accounts/{account_id}/notes/{note_id}:
get:
Expand Down Expand Up @@ -169,16 +158,40 @@ paths:
note_detail:
type: object
properties:
id:
type: string
example: "0691e000001WXlcAAG"
creator:
type: string
example: "xyz"
text:
type: string
example: "Note Full Content"
last_modified_time:
type: string
format: date-time
example: "2019-10-12T07:20:50.52Z"
$ref: 'Components.yaml#/components/schemas/note_detail'
delete:
description: Delete note for the given note id.
parameters:
- name: account_id
description: Account Id
in: path
required: true
schema:
type: string
- name: note_id
description: Note Id
in: path
required: true
schema:
type: string
responses:
'401':
description: Unauthorized access
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_401'
'404':
description: Not Found
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_404'
'500':
description: Something went wrong
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_500'
'204':
description: Success
166 changes: 166 additions & 0 deletions openApiSpecifications/AccountTasks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
openapi: 3.0.3
info:
title: SalesSparrow Account Tasks API's
description: Following api's will be called from the SalesSparrow application
version: '1.0'
servers:
- url: https://sales.truesparrow.com/api
paths:
/v1/accounts/{account_id}/tasks:
post:
description: Api will create task
parameters:
- name: account_id
in: path
description: Account Id
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
crm_organization_user_id:
type: string
example: '00U1e000003TnVXEA1'
description:
type: string
example: 'Complete remaining task'
due_date:
type: string
format: date
example: '2023-07-21'
required:
- crm_organization_user_id
- description
- due_date
responses:
'201':
description: Success
content:
application/json:
schema:
type: object
properties:
task_id:
type: string
example: "00U1e000003TnVXEA0"
'400':
description: "Bad Request"
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_400'
'401':
description: Unauthorized access
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_401'
'404':
description: Not Found
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_404'
'500':
description: Something went wrong
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_500'

get:
description: Api will return list of tasks for accountId
parameters:
- name: account_id
in: path
description: Account Id
required: true
schema:
type: string
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
task_ids:
type: array
items:
type: string
example: "00U1e000003TUB8EAO"
task_map_by_id:
type: object
properties:
00U1e000003TUB8EAO:
type: object
properties:
$ref: 'Components.yaml#/components/schemas/task'
'400':
description: "Bad Request"
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_400'
'401':
description: Unauthorized access
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_401'
'404':
description: Not Found
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_404'
'500':
description: Something went wrong
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_500'

/v1/accounts/{account_id}/tasks/{task_id}:
delete:
description: Delete task for the given task id.
parameters:
- name: account_id
description: Account Id
in: path
required: true
schema:
type: string
- name: task_id
description: Task Id
in: path
required: true
schema:
type: string
responses:
'401':
description: Unauthorized access
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_401'
'404':
description: Not Found
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_404'
'500':
description: Something went wrong
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_500'
'204':
description: Success
Loading

0 comments on commit 8e2977e

Please sign in to comment.