Skip to content

Commit ef12aa1

Browse files
committed
Update readmes
1 parent cc43701 commit ef12aa1

File tree

3 files changed

+30
-33
lines changed

3 files changed

+30
-33
lines changed

README.md

+8-23
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,16 @@
11
# Black Desert social REST API
2-
3-
An unofficial JSON API server for Black Desert Online that gets guild and player data via scraping the official website.
4-
5-
## API
6-
See [OpenAPI documentation](https://gitlab.com/man90/black-desert-social-rest-api/-/tree/master/doc/api/openapi.json).
2+
An unofficial REST API server for Black Desert Online community data.
73

84
## Projects using this API
9-
- [BDO Leaderboards](https://man90.gitlab.io/bdo-leader-boards): a web-based leaderboard application for Black Desert Online guilds.
10-
5+
- [BDO Leaderboards](https://bdo.hemlo.cc/leaderboards/): a web-based leaderboard application for BDO guilds.
116

7+
## API routes
8+
The current version of API is v1. **v0 is no longer supported** and is not fully functional due to changes in the official BDO website.
9+
- The migration guide can be found [here](doc/migrationGuilde.md).
10+
- The v1 OpenAPI documentation can be found [here](https://gitlab.com/man90/black-desert-social-rest-api/-/tree/master/doc/api/openapi.json).
1211

1312
## Getting the binary
14-
### Prebuilt
15-
You can download prebuilt binaries [here](https://gitlab.com/man90/black-desert-social-rest-api/-/pipelines).
16-
17-
### Building from source
18-
Prerequisites: <abbr title="Not tested on other platforms.">GNU/Linux</abbr>, Go >=1.15
19-
20-
Command:
21-
```bash
22-
go build
23-
```
24-
25-
By default, scraped results are cached in memory and stored for up to 2 hours, it helps to ease the pressure on BDO servers and speeds up the response time in some situations. If you don't want to cache scraped results (for example if you just want to create a dump or need extra fresh data), use this command instead:
26-
```bash
27-
go build -tags "cacheless"
28-
```
13+
You can either download prebuilt binaries from [here](https://gitlab.com/man90/black-desert-social-rest-api/-/pipelines) or build them yourself following [this guide](doc/buildingFromSource.md).
2914

3015
## Environment variables
3116
Catch requests on a specific port (8001 by default):
@@ -52,7 +37,7 @@ Flags override environment variables
5237
```
5338
Use them like this:
5439
```bash
55-
./black-desert-social-rest-api -proxy="http://192.168.0.0.1:8080" -cachettl=30
40+
./bdo-rest-api -proxy="http://192.168.0.0.1:8080" -cachettl=30
5641
```
5742

5843
## Known bugs

doc/brokenStuff.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Broken Stuff
2-
BDO website, where all the data is taken from, has a number of bugs, which are replicated by this API by design and, sadly, nothing can be done about it on my side.
2+
BDO website, where all the data is taken from, has a number of bugs, which are replicated by this API by design and, sadly, not much can be done about it.
33

44
## List of known bugs
5-
This is a list of bugs that I am aware of:
6-
1. When profile of one of a number of guilds is requested, another guild's profile is returned. (e.g. requesting the profile of VoS guild on EU returns the profile of Ocrana guild on EU).
7-
1. Opening some guild profiles returns a 404 page despite the fact that that guild exists. (e.g. Valiant guild on EU)
8-
2. Sometimes members who left the guild are still displayed as members for some time.
9-
3. Data is not updated immediately after it is updated in game.
5+
This is a list of bugs that either used to occur or still occur that I am aware of:
6+
1. When you request one guild, the server may return another guild.
7+
2. When you request a guild, the server may return a "not found" status despite the fact that that guild does exist.
8+
3. Members who left the guild are still displayed as members for some time.
9+
4. Data is not updated immediately after it is updated in game.
1010

1111
## Workarounds and tips
1212
List numbers match list numbers in the previous section:
13-
1. Check the name of the guild in the response. Is it the same as the one you requested?
14-
1. You can get some information like creation date, guild master's name and population by searching for guild instead of requesting its profile. Not much, but better than nothing.
15-
2. I believe maintenances remove "ghost members" from guilds. If you don't feel like waiting, request profiles of those players. Guild membership status in player profiles is more reliable, unless it's set to private.
16-
3. The lag is around a few hours, and you can only wait. This API may introduce additional lag (≤2 hours) in some cases, so if you need the most fresh data possible, consider disabling cache as it's described in the main README (I assume that you understand the consequences).
13+
1. If the response has a different guild name than the one you requested, it's a bug. See tip #2.
14+
2. You can get some information like creation date, guild master's name and population by searching for guild instead of requesting its profile. Not much, but it's better than nothing.
15+
3. I believe maintenances remove "ghost members" from guilds. If you don't feel like waiting, request profiles of those players. Guild membership status in player profiles is more reliable, unless it's set to private.
16+
4. The lag is around a few hours, and you can only wait. This API may introduce additional lag (≤2 hours) in some cases, so if you need the most fresh data possible, consider disabling cache as it's described in [building from source manual](./buildingFromSource.md).
1717

1818
## Contribute to this list
1919
If you found a bug on the original BDO website that affects this API and is not listed in this file, you can contribute by either:

doc/buildingFromSource.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Building from source
2+
Prerequisites: <abbr title="Not tested on other platforms.">GNU/Linux</abbr>, Go >=1.15
3+
4+
Command:
5+
```bash
6+
go build
7+
```
8+
9+
By default, scraped results are cached in memory and stored for up to 2 hours. It helps to ease the pressure on BDO servers and speeds up the response time in some situations. If you don't want to cache scraped results (e.g., if you only want to create a dump or need the most fresh data), use this command instead:
10+
```bash
11+
go build -tags "cacheless"
12+
```

0 commit comments

Comments
 (0)