Logentry Resource

The full JSON-encoded content of a single logentry may be accessed by URL matching the pattern "https://logbooks.jlab.org/api/elog/entries/####" where #### is the desired lognumber (for example https://logbooks.jlab.org/api/elog/entries/3587330)

Custom Request Parameters

JSON-encoded content for a user-defined set of log entries may be accessed by appending one or more of the parameters below to the base API url "https://logbooks.jlab.org/api/elog/entries" (for example https://logbooks.jlab.org/api/elog/entries?book=HCLOG)

titlestringRequests entries whose title contains the given string
authorusernameRequests entries by specific author
startdatestring        

Specifies the beginning of a date range to limit entries.  Default is -180 days.  The string may contain absolute or relative date.  For example:

  • -30 days
  • 2015-01-01

See http://php.net/manual/en/datetime.formats.php for details.

enddatestringSpecifies the end of a date range to limit entries. Default is now().  Same format rules as startdate
limitinteger

Limit on number of entries returned.

  • If omitted, the server default limit will apply
  • If 0, the server max limit will be applied.
bookstringLimits entries to a specific logbook.  May be repeated to specify multiple logbooks.  Prefix the string with - (a dash) to invese the logic and exclude the specified logbook.  Example -TLOG would exclude entries in the Test Logbook.
tagstringLimits entries to a specific tag.  May be repeated to specify multiple tags.  Prefix the string with - (a dash) to invese the logic and exclude the specified tag.  Example -Autolog would exclude entries tagged as Autolog
fieldstringSpecifies a field the user would like returned.  If ommitted, the default set of fields will be returned consisting of lognumber, created, title.  The full list of fields is documented in the next section.