Skip to content

Commit

Permalink
feat: change demo api url to api.realworld.io
Browse files Browse the repository at this point in the history
  • Loading branch information
geromegrignon committed Nov 5, 2021
1 parent f07b0ef commit 60054bb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion api/run-api-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -x

SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

APIURL=${APIURL:-https://conduit.productionready.io/api}
APIURL=${APIURL:-https://api.realworld.io/api}
USERNAME=${USERNAME:-u`date +%s`}
EMAIL=${EMAIL:-$USERNAME@mail.com}
PASSWORD=${PASSWORD:-password}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Make sure the right content type like `Content-Type: application/json; charset=u
"profile": {
"username": "jake",
"bio": "I work at statefarm",
"image": "https://static.productionready.io/images/smiley-cyrus.jpg",
"image": "https://api.realworld.io/images/smiley-cyrus.jpg",
"following": false
}
}
Expand Down
8 changes: 4 additions & 4 deletions documentation/docs/specs/frontend-specs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The **limited** branch will be more suitable if you plan to host your implementa
## Demo API

This project provides you with a public hosted API to test your frontend implementations.
Point your API requests to `https://conduit.productionready.io/api` and you're good to go!
Point your API requests to `https://api.realworld.io/api` and you're good to go!


### API Usage
Expand All @@ -51,16 +51,16 @@ Non-demo Articles, Tags, and Comments are deleted on a daily basis to avoid addi

### Swagger documentation

The API exposes a **Swagger** documentation on `https://conduit.productionready.io/api-docs`.
The API exposes a **Swagger** documentation on `https://api.realworld.io/api-docs`.

Most of the requests require a valid token.

#### Retrieve a token

You can retrieve a token by logging in or by registering.

Log in : https://conduit.productionready.io/api-docs/#/User%20and%20Authentication/Login
Register: https://conduit.productionready.io/api-docs/#/User%20and%20Authentication/CreateUser
Log in : https://api.realworld.io/api-docs/#/User%20and%20Authentication/Login
Register: https://api.realworld.io/api-docs/#/User%20and%20Authentication/CreateUser

* Click the `Try it out` button
* populate the body input with the related credentials
Expand Down
7 changes: 2 additions & 5 deletions documentation/docs/specs/mobile-specs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ sidebar_position: 1

### Using the hosted API

> To fix performance issues and the presence of NSFW content on the current API, we encourage you to use the new temporary API : https://realworld-temp-api.herokuapp.com/api`
> Please keep in mind we'll soon move back to `https://conduit.productionready.io/api`
API URL : https://realworld-temp-api.herokuapp.com/api
SWAGGER : https://realworld-temp-api.herokuapp.com/api-docs
API URL : https://api.realworld.io/api
SWAGGER : https://api.realworld.io/api-docs


### Styles/Templates
Expand Down

0 comments on commit 60054bb

Please sign in to comment.