Skip to content

Commit ae4b6fe

Browse files
Update README.md
1 parent c7a9759 commit ae4b6fe

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
1-
# code-sharing-platform
2-
1+
# Code Sharing Platform
2+
3+
## API [/api](http://localhost:8889/api)
4+
5+
#### GET [/code](http://localhost:8889/api/code)
6+
Get the code snippet
7+
8+
#### POST [/code/new](http://localhost:8889/api/code/new)
9+
Update the code snippet
10+
11+
Consumes a JSON:
12+
```javascript
13+
{
14+
"code": "YOUR CODE SNIPPET" // Must not be null
15+
}
16+
```
17+
18+
## Web Interface [/](http://localhost:8889/)
19+
20+
#### GET [/code](http://localhost:8889/code)
21+
Get the code snippet html page
22+
23+
#### GET [/code/new](http://localhost:8889/code/new)
24+
Get the html page for updating the code snippet

0 commit comments

Comments
 (0)