Visitar URL original
Provide snapshot content as JSON by zudov · Pull Request #152 · commercialhaskell/stackage-server · GitHub
Skip to content

Provide snapshot content as JSON - #152

Merged
snoyberg merged 1 commit into
lts-5from
snapshot-json
Feb 2, 2016
Merged

snoyberg merged 1 commit into
lts-5from
snapshot-json

Conversation

@zudov

@zudov zudov commented Feb 2, 2016

Copy link
Copy Markdown
Collaborator
$ http --json http://localhost:4000/lts-5.1
{
  "snapshot": {
    "ghc": "7.10.3",
    "created": "2016-01-30",
    "name": "lts-5.1"
  },
  "packages": [
    {
      "isCore": false,
      "name": "abstract-deque",
      "version": "0.3",
      "synopsis": "Abstract, parameterized interface to mutable Deques."
    },
    {
      "isCore": false,
      "name": "abstract-par",
      "version": "0.3.3",
      "synopsis": "Type classes generalizing the functionality of the 'monad-par' library."
    },
    ...
  ]
}

```json
$ http --json http://localhost:4000/lts-5.1
{
  "snapshot": {
    "ghc": "7.10.3",
    "created": "2016-01-30",
    "name": "lts-5.1"
  },
  "packages": [
    {
      "isCore": false,
      "name": "abstract-deque",
      "version": "0.3",
      "synopsis": "Abstract, parameterized interface to mutable Deques."
    },
    {
      "isCore": false,
      "name": "abstract-par",
      "version": "0.3.3",
      "synopsis": "Type classes generalizing the functionality of the 'monad-par' library."
    },
    ...
  ]
}

```
@snoyberg snoyberg changed the title Provide snapshot content as JSON Provide snapshot content as JSON Feb 2, 2016
@phadej

phadej commented Feb 2, 2016

Copy link
Copy Markdown

👍

It would be great to have flags information also available, but seems it's not included in base types; so that's another issue.

snoyberg added a commit that referenced this pull request Feb 2, 2016
Provide snapshot content as JSON
@snoyberg
snoyberg merged commit 5bd4a45 into lts-5 Feb 2, 2016
@snoyberg
snoyberg deleted the snapshot-json branch February 2, 2016 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants