You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/README.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,17 +6,15 @@ sidebarDepth: 3
6
6
7
7
The HTTP API provides a RESTful interface to the server. See the [openapi.yml](https://raw.githubusercontent.com/xrdebug/xrdebug/refs/heads/3.0/api/openapi.yml) file for alternative API documentation.
8
8
9
-
## Endpoints
10
-
11
-
### GET /
9
+
## GET /
12
10
13
11
To access the web interface, open a web browser and navigate to the server's root URL. The server will serve the web interface.
14
12
15
13
```sh
16
14
open http://localhost:27420
17
15
```
18
16
19
-
###POST /messages
17
+
## POST /messages
20
18
21
19
Sends a message to the server.
22
20
@@ -44,7 +42,7 @@ curl --fail -X POST \
44
42
http://localhost:27420/messages
45
43
```
46
44
47
-
###POST /pauses
45
+
## POST /pauses
48
46
49
47
Creates a pause lock.
50
48
@@ -69,7 +67,7 @@ The following parameters are optional:
69
67
curl --fail -X POST --data "id=123" http://localhost:27420/pauses
70
68
```
71
69
72
-
###GET /pauses/{id}
70
+
## GET /pauses/{id}
73
71
74
72
Retrieves the status of an existing pause lock.
75
73
@@ -86,7 +84,7 @@ Retrieves the status of an existing pause lock.
86
84
curl --fail -X GET http://localhost:27420/pauses/123
Copy file name to clipboardExpand all lines: developer/README.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,25 @@
1
1
---
2
-
sidebar: false
2
+
sidebar: 3
3
3
---
4
4
5
5
# Developer guide
6
6
7
-
A client library for xrDebug is easy to implement as any HTTP API. Client libraries are HTTP wrappers for interacting with xrDebug, making the configuration and usage trivial to end-users.
7
+
Implementing a client library for xrDebug is straightforward since it's based on standard HTTP APIs. Client libraries act as wrappers around these HTTP endpoints, providing a clean interface that simplifies configuration and usage for end-users.
8
+
9
+
::: tip Welcome contributions
10
+
If you have an idea for a client library in a language or technology not listed here, please reach out to us. Your contributions help make xrDebug better for everyone.
11
+
:::
8
12
9
13
## Design considerations
10
14
11
-
- The client software is responsible for formatting the debug information.
12
-
- The "ID" field is used to identify messages and pauses. It should be unique for each message or pause, and it's up to the client to generate it.
15
+
- Server doesn't enforce any specific message format and client software is responsible for formatting the debug information. It's recommended to use HTML for messages.
16
+
- "ID" field is used to identify messages and pauses. It should be unique, and it's up to the client to generate it.
17
+
18
+
Client software **only requires** to handle the following endpoints:
0 commit comments