0% found this document useful (0 votes)
35 views2 pages

API Documentation OPEN API SMARTCARE

The document provides API documentation for the SMARTCARE system, detailing two main endpoints: authentication and ticket creation. The Auth endpoint allows users to log in using basic authentication and returns a token, while the Create Ticket endpoint enables the creation of tickets with customer details using a bearer token. Both endpoints return a 200 OK status upon successful execution.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views2 pages

API Documentation OPEN API SMARTCARE

The document provides API documentation for the SMARTCARE system, detailing two main endpoints: authentication and ticket creation. The Auth endpoint allows users to log in using basic authentication and returns a token, while the Create Ticket endpoint enables the creation of tickets with customer details using a bearer token. Both endpoints return a 200 OK status upon successful execution.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

API Documentation - OPEN API

SMARTCARE
Host: http://10.20.60.229

All API endpoints are based on the host URL above.

1. Auth
Endpoint: /api/Auth/login

Full URL: http://10.20.60.229/api/Auth/login

Method: POST

Description: This endpoint is used to authenticate users using login credentials. The user
needs to provide a username and password.

Request
Auth Type: Basic Auth

Parameters:

• username (string)

• password (string)

Response
Status Code: 200 OK

Body: Returns a token required for accessing protected endpoints.


2. Create Ticket
Endpoint: /api/Ticket

Full URL: http://10.20.60.229/api/Ticket

Method: POST

Description: This endpoint is used to create a new ticket with customer details such as
name, email, and ticket number.

Request
Auth Type: Bearer Token

Body (JSON):

• customer_name: Customer's name.

• email: Customer's email address.

• ticket_number: The ticket number.

• phone_number: Customer's phone number.

• remark: Additional comments.

Response
Status Code: 200 OK

Body: Confirms that the ticket has been successfully created.

You might also like