Skip to content

Commit

Permalink
head towards english
Browse files Browse the repository at this point in the history
  • Loading branch information
grizz committed Dec 24, 2024
1 parent 4b5ce02 commit 293204e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/local_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ Once complete, you should should be able to go to `http://localhost:8000` in you

## 5. Using the Local PeeringDB

When your local PeeringDB is live, we commend just defining you can switch any scripts that normally do:
When your local PeeringDB is ready, you can use the new endpoint in place of the official PeeringDB endpoint.

Depending on how your scripts are written, you may need to adjust the API endpoint they use. For example, if you have a script that hits the PeeringDB API, you might change the endpoint from:

```python
# real endpoint
REAL_PEERINGDB_API_ENDPOINT = "https://api.peeringdb.com"
REAL_PEERINGDB_API_ENDPOINT = "https://www.peeringdb.com/api"

# local endpoint
LOCAL_PEERINGDB_API_ENDPOINT = "http://localhost:8000/api"
Expand Down

0 comments on commit 293204e

Please sign in to comment.