Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List Profiles
- Lists profiles sorted by score
- URL:
- /profiles
- Headers:
- x-access-token: String
- Query String:
- filter: String (multiple filter=value querystring can be provided)
- sort: String
- page: Int = 1
- pageSize: Int = 10
- Filters Values:
- username(:string), gets slings by this user only
- Sort Values:
- score (this is the default sort)
- Example URLs:
- /profiles?filter=username(sharon)&sort=score
- No search results.
- URL params Headers (1)
- Send Save Preview Pre-request script Tests Add to collection Reset
- BodyCookiesHeaders (7)Tests
- STATUS 200 OK
- TIME 127 ms
- Pretty Raw Preview JSON Copy
- {
- "data": [
- {
- "id": "gabe",
- "type": "profile",
- "attributes": {
- "progress": 2,
- "profilePic": "https://getslinger.s3-us-west-1.amazonaws.com/images/07800b0e373055cfeb930047cd0a633f5cba5e71.png",
- "email": "gebe1987@gmail.com",
- "followingCount": 0,
- "followerCount": 0,
- "slingCount": 0,
- "score": 59
- },
- "links": {
- "followers": {
- "linkage": {
- "id": "772aff6c-bdac-4f6d-a157-2856106d24ff",
- "type": "follow"
- }
- }
- }
- },
- {
- "id": "772aff6c-bdac-4f6d-a157-2856106d24ff",
- "type": "profile",
- "attributes": {
- "progress": 0,
- "followingCount": 1,
- "followerCount": 1,
- "slingCount": 0,
- "score": 0
- }
- }
- ],
- "included": [
- {
- "id": "772aff6c-bdac-4f6d-a157-2856106d24ff",
- "type": "follow",
- "attributes": {
- "username": "gabe",
- "followingUser": "772aff6c-bdac-4f6d-a157-2856106d24ff",
- "following": true
- }
- },
- {
- "id": "772aff6c-bdac-4f6d-a157-2856106d24ff",
- "type": "profile",
- "attributes": {
- "progress": 0,
- "followingCount": 1,
- "followerCount": 1,
- "slingCount": 0,
- "score": 0
- }
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement