Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for "POST /appraisal" endpoint #23

Closed
sudorandom opened this issue Jul 2, 2017 · 4 comments
Closed

Add documentation for "POST /appraisal" endpoint #23

sudorandom opened this issue Jul 2, 2017 · 4 comments

Comments

@sudorandom
Copy link
Contributor

No description provided.

@fscreene
Copy link

Is there any specific part of the code we could look at until this is done?

@sudorandom
Copy link
Contributor Author

sudorandom commented Jul 25, 2017

This is the file: https://github.com/evepraisal/go-evepraisal/blob/master/web/handle_appraisal.go#L25

The gist is:

  • appraisal contents get sent as the "raw_textarea" parameter or as a file via "uploadappraisal" with a multi-part request.
  • The "market" is sent in as the "market" parameter. The valid options for that are "jita", "amarr", "dodixie", "hek" and "universe".

If successful, the new appraisal ID will be in an HTTP header called "X-Appraisal-ID" and you'll have a status code of 200.

@fscreene
Copy link

That's great, thanks for the explanation!

I look forward to using the JSON endpoint instead but this works in the meantime.

@sudorandom
Copy link
Contributor Author

I added the JSON endpoint for creating new appraisals and have documented the API a bit better here: http://evepraisal.com/about/api

I'll close this issue but let me know how I can improve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants