0% found this document useful (0 votes)
38 views14 pages

Legal Case Management API

The Legal Case Management API (v1.0.0) provides functionalities for managing legal cases, documents, clients, and billing, with operations to list, create, update, and delete cases and documents. It supports various query parameters and request/response formats including JSON and multipart/form-data. The API is secured with OAuth2 authorization and follows the MIT License.

Uploaded by

aharxict
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views14 pages

Legal Case Management API

The Legal Case Management API (v1.0.0) provides functionalities for managing legal cases, documents, clients, and billing, with operations to list, create, update, and delete cases and documents. It supports various query parameters and request/response formats including JSON and multipart/form-data. The API is secured with OAuth2 authorization and follows the MIT License.

Uploaded by

aharxict
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Legal Case Management API (v1.0.

0)
Download OpenAPI specification: Download

LegalTech Solutions: [email protected] | URL: http://example.com/support | License: MIT License

API for managing legal cases, documents, clients, and billing.

Cases

Operations related to legal cases.

List all legal cases


AUTHORIZATIONS: oauth2

QUERY PARAMETERS

status string (CaseStatus)


Enum: "open" "pending_client_action" "pending_court_action"
"on_hold" "settled" "closed" "appealed"
Example: status=open
Filter cases by status

담당변호사_id string <uuid>


Filter cases by assigning attorney ID

client_id string <uuid>


Filter cases by client ID

Responses

200 A list of legal cases.

400 Invalid request payload or parameters.


GET /cases

Response samples

200 400

Content type
application/json

Copy Expand all Collapse all


[
- {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"caseNumber": "CASE-2023-001",
"title": "Smith v. Jones - Contract Dispute",
"description": "Dispute over terms of a service agreement.",
"clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
"attorneyId": "32576998-8d9b-4c24-9647-59b91590cb3d",
"courtName": "Superior Court of California, County of Los Angeles",
"judgeName": "Hon. Jane Miller",
"openingDate": "2019-08-24",
"closingDate": "2019-08-24",
"status": "open",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]

Create a new legal case


AUTHORIZATIONS: oauth2

REQUEST BODY SCHEMA: application/json

Case object to be created

caseNumber
string
required

title string
required

description string

clientId string <uuid>


required
attorneyId string <uuid>

openingDate
string <date>
required

status string (CaseStatus)


Enum: "open" "pending_client_action" "pending_court_action"
"on_hold" "settled" "closed" "appealed"

Responses

201 Case created successfully

400 Invalid request payload or parameters.

POST /cases

Request samples

Payload

Content type
application/json

Copy
{
"caseNumber": "CASE-2024-002",
"title": "Doe v. Acme Corp - Personal Injury",
"description": "string",
"clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
"attorneyId": "32576998-8d9b-4c24-9647-59b91590cb3d",
"openingDate": "2019-08-24",
"status": "open"
}

Response samples

201 400

Content type
application/json

Copy
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"caseNumber": "CASE-2023-001",
"title": "Smith v. Jones - Contract Dispute",
"description": "Dispute over terms of a service agreement.",
"clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
"attorneyId": "32576998-8d9b-4c24-9647-59b91590cb3d",
"courtName": "Superior Court of California, County of Los Angeles",
"judgeName": "Hon. Jane Miller",
"openingDate": "2019-08-24",
"closingDate": "2019-08-24",
"status": "open",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}

Get case details by ID


AUTHORIZATIONS: oauth2

PATH PARAMETERS

caseId string <uuid>


required
ID of the case to retrieve

Responses

200 Successfully retrieved case details

404 The specified resource was not found.

GET /cases/{caseId}

Response samples

200 404

Content type
application/json
Copy
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"caseNumber": "CASE-2023-001",
"title": "Smith v. Jones - Contract Dispute",
"description": "Dispute over terms of a service agreement.",
"clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
"attorneyId": "32576998-8d9b-4c24-9647-59b91590cb3d",
"courtName": "Superior Court of California, County of Los Angeles",
"judgeName": "Hon. Jane Miller",
"openingDate": "2019-08-24",
"closingDate": "2019-08-24",
"status": "open",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}

Update an existing legal case


AUTHORIZATIONS: oauth2

PATH PARAMETERS

caseId string <uuid>


required
ID of the case to update

REQUEST BODY SCHEMA: application/json

Case object with updated information

title string

description string

attorneyId string <uuid>

courtName string

judgeName string

closingDate string or null <date>

status string (CaseStatus)


Enum: "open" "pending_client_action" "pending_court_action"
"on_hold" "settled" "closed" "appealed"
Responses

200 Case updated successfully

400 Invalid request payload or parameters.

404 The specified resource was not found.

PUT /cases/{caseId}

Request samples

Payload

Content type
application/json

Copy
{
"title": "string",
"description": "string",
"attorneyId": "32576998-8d9b-4c24-9647-59b91590cb3d",
"courtName": "string",
"judgeName": "string",
"closingDate": "2019-08-24",
"status": "open"
}

Response samples

200 400 404

Content type
application/json

Copy
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"caseNumber": "CASE-2023-001",
"title": "Smith v. Jones - Contract Dispute",
"description": "Dispute over terms of a service agreement.",
"clientId": "5e505642-9024-474d-9434-e5a44f505cc5",
"attorneyId": "32576998-8d9b-4c24-9647-59b91590cb3d",
"courtName": "Superior Court of California, County of Los Angeles",
"judgeName": "Hon. Jane Miller",
"openingDate": "2019-08-24",
"closingDate": "2019-08-24",
"status": "open",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}

Delete a legal case


AUTHORIZATIONS: oauth2

PATH PARAMETERS

caseId string <uuid>


required
ID of the case to delete

Responses

— 204 Case deleted successfully

404 The specified resource was not found.

DELETE /cases/{caseId}

Response samples

404

Content type
application/json

Copy
{
"code": 0,
"message": "string",
"details": "string"
}

Documents

Operations related to case documents.

List documents for a specific case


AUTHORIZATIONS: oauth2

PATH PARAMETERS

caseId string <uuid>


required
ID of the case

Responses

200 A list of documents for the case.

404 The specified resource was not found.

GET /cases/{caseId}/documents

Response samples

200 404

Content type
application/json

Copy Expand all Collapse all


[
- {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"caseId": "af51d69f-996a-4891-a745-aadfcdec225a",
"fileName": "Complaint.pdf",
"fileUrl": "string",
"description": "Initial complaint filed with the court.",
"documentType": "Pleading",
"uploadDate": "2019-08-24T14:15:22Z",
"lastModifiedDate": "2019-08-24T14:15:22Z",
"uploaderUserId": "f1aa83f1-b765-4894-96a9-08b2a96994ba"
}
]

Upload a new document for a case


AUTHORIZATIONS: oauth2

PATH PARAMETERS

caseId string <uuid>


required
ID of the case

REQUEST BODY SCHEMA: multipart/form-data

Document to be uploaded

file string <binary>

description string

documentType string

Responses

201 Document uploaded successfully

400 Invalid request payload or parameters.

POST /cases/{caseId}/documents
Response samples

201 400

Content type
application/json

Copy
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"caseId": "af51d69f-996a-4891-a745-aadfcdec225a",
"fileName": "Complaint.pdf",
"fileUrl": "string",
"description": "Initial complaint filed with the court.",
"documentType": "Pleading",
"uploadDate": "2019-08-24T14:15:22Z",
"lastModifiedDate": "2019-08-24T14:15:22Z",
"uploaderUserId": "f1aa83f1-b765-4894-96a9-08b2a96994ba"
}

Get document details by ID


AUTHORIZATIONS: oauth2

PATH PARAMETERS

documentId string <uuid>


required
ID of the document

Responses

200 Document details

404 The specified resource was not found.

GET /documents/{documentId}

Response samples
200 404

Content type
application/json

Copy
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"caseId": "af51d69f-996a-4891-a745-aadfcdec225a",
"fileName": "Complaint.pdf",
"fileUrl": "string",
"description": "Initial complaint filed with the court.",
"documentType": "Pleading",
"uploadDate": "2019-08-24T14:15:22Z",
"lastModifiedDate": "2019-08-24T14:15:22Z",
"uploaderUserId": "f1aa83f1-b765-4894-96a9-08b2a96994ba"
}

Delete a document
AUTHORIZATIONS: oauth2

PATH PARAMETERS

documentId string <uuid>


required
ID of the document to delete

Responses

— 204 Document deleted successfully

404 The specified resource was not found.

DELETE /documents/{documentId}

Response samples

404
Content type
application/json

Copy
{
"code": 0,
"message": "string",
"details": "string"
}

Clients

Operations related to client management.

List all clients


AUTHORIZATIONS: oauth2

Responses

200 A list of clients.

GET /clients

Response samples

200

Content type
application/json

Copy Expand all Collapse all


[
- {
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"firstName": "Richard",
"lastName": "Roe",
"email": "[email protected]",
"phone": "+1-555-987-6543",
"address": "456 Oak St, Anytown, USA",
"companyName": "Roe Industries",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}
]

Add a new client


AUTHORIZATIONS: oauth2

REQUEST BODY SCHEMA: application/json

Client object to be added

firstName
string
required

lastName
string
required

email string <email>

phone string

address string

companyName string or null

Responses

201 Client added successfully

400 Invalid request payload or parameters.


POST /clients

Request samples

Payload

Content type
application/json

Copy
{
"firstName": "string",
"lastName": "string",
"email": "[email protected]",
"phone": "string",
"address": "string",
"companyName": "string"
}

Response samples

201 400

Content type
application/json

Copy
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"firstName": "Richard",
"lastName": "Roe",
"email": "[email protected]",
"phone": "+1-555-987-6543",
"address": "456 Oak St, Anytown, USA",
"companyName": "Roe Industries",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}

You might also like