hexpm / specifications

Specifications for using and implementing Hex protocols
48 stars 26 forks source link

JSON package meta-data is not specified #29

Open htgoebel opened 4 years ago

htgoebel commented 4 years ago

The JSON data (application/vnd.hex+json) delivered by

is not documented.

While most of the fields delivered can be guessed, some are not obvious. Some examples:

Beside a description of the fields, it would be nice to have a specification one can rely on.

(FYI: I'm building a importer from hex.pm packages into guix, for which I need to query this data.)

ericmj commented 4 years ago

See https://github.com/hexpm/specifications/blob/master/apiary.apib#L400 and https://github.com/hexpm/specifications/blob/master/apiary.apib#L471.

Some fields are not documented for every resource because they are following conventions or assume some knowledge about elixir and hex.

You can find information about the package metadata here: https://github.com/hexpm/specifications/blob/master/package_metadata.md.

If you feel anything is missing in the HTTP API docs please send pull requests that fill in the missing information as you learn more. Thank you.