Project

General

Profile

Actions

Feature #691

closed

Implement simple status service

Added by Lukas Zapletal about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Simple status (ping) service that would respond with JSON

{ "status":"ok" }

Actions #1

Updated by Lukas Zapletal about 13 years ago

  • Assignee set to Lukas Zapletal
Actions #2

Updated by Lukas Zapletal about 13 years ago

I have implemented this: https://github.com/ohadlevy/foreman/pull/6

Here is how to use it:

$ curl -k -H "Accept: application/json" http://localhost:3001/status
{"db_duration_ms":"2","result":"ok"}
Actions #3

Updated by Lukas Zapletal about 13 years ago

  • Status changed from New to Pending
  • % Done changed from 0 to 100
Actions #4

Updated by Ohad Levy about 13 years ago

would you mind sending it to foreman-dev mailing list as a patch? - see Contribute

Actions #5

Updated by Lukas Zapletal about 13 years ago

I will do that. I dont know why it did not send me an email when you updated the task. Need to get familiar with RedMine :-)

Actions #6

Updated by Lukas Zapletal about 13 years ago

Moving to the home controller and creating functional test. I will re-send my patch to the list.

Actions #7

Updated by Lukas Zapletal about 13 years ago

Sending new patch to the list:

- moved to home controller
- returns HTTP CODE 200 when ok, 500 on error
- functional test

Actions #8

Updated by Anonymous about 13 years ago

  • Status changed from Pending to Ready For Testing
Actions #9

Updated by Ohad Levy about 13 years ago

  • Status changed from Ready For Testing to Closed
  • Target version set to 0.2
Actions

Also available in: Atom PDF