StarMeUp OS

BeThere

Posts

Find Posts by Filters

Returns a list of Posts associated with a given Hashtag.

  • Page is an optional parameter. Default 0.

  • Size is amount of records wanted to be returned per page. Default 10 records.

  • If you want to sort the records in a specific way, the value "sort" must be defined. It makes reference to the field name in Database.

Resource URL

GET: /bethere/public-api/v1/posts

Header Parameters

Parameter Optional/Required Description

Authorization

Required

Community Token (You can get information on Authentication).

URL Parameters

Parameter Optional/Required Description

hashTag

Required

String value with the Hashtag you are looking for.

page

Optional

Page to find the records. It starts at 0. Default 0.

size

Optional

The amount of records wanted to be returned in the page. Default 10.

sort

Optional

Field name used for sorting the records in a DESC way. Default sort by "id".

Response

HTTP/1.1 200 OK

Example:

  {
    "result": [
      {
        "user": {
        "id": 246,
        "identification": "john.doe@qastarmeup.com",
        "email": "john.doe@email.com",
        "firstName": "John",
        "lastName": "Doe",
        "project": "StarMeUp OS",
        "job": "Developer",
        "profileImageUrl": "https://qa.starmeup.com/starmeup-api/v2/image/tdstjgeoqowriusiqhow_jpg/80/80/1",
        "area": "Quality Control",
        "account": "Globant",
        "office": "United States of America"
        },
        "id": 1,
        "creationDate": "2019-06-14T22:13:14.000Z",
        "title": "Best party ever",
        "backgroundColor": "#000000",
        "description": "We are having a good time.",
        "imageUrl": "https://findme.com",
        "postModerate": 1,
        "postImageInfo": "Best party ever",
        "hashTags": [
          "#GlobantParty",
          "#Dinner"
        ]
      }
    ],
    "page": {
      "number": 0,
      "numberOfElements": 0,
      "size": 0,
      "totalElements": 0,
      "totalPages": 0
    }
  }

Errors

HTTP/1.1 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not Found, 406 Not Acceptable

Example:

  {
    "timestamp": "2019-06-26",
    "message": "Internal Server Error",
    "details": "The hashTag wasn’t found",
    "type": "uri=/starmeup/public-api/v1/posts",
    "title": "Internal Server Error",
    "detail": "An unexpected or uncontrolled error has occurred in the application."
  }