Skip to content

API access. Swagger return. #7

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jjaquinta
Copy link

I've added in API access to your logic on the /api/chargen URL. It returns the character in JSON.
The format of the JSON and the path to it is defined in the api.swagger doc.
I also made the api self documenting. When you browse to /api it returns to you the swagger.
You can cut and paste this into editor.swagger.io, or open the URL from that site directly to view pretty documentation for the API, and generate stubs to call it in many languages.

@Golan2072
Copy link
Owner

Many thanks! Will try that out later today.

@jjaquinta
Copy link
Author

If I've got the pull request thing right, I'll start looking at making the radio button sticky, and adding in things like career choice if you are moving on to subsector generation.

@Golan2072
Copy link
Owner

Yes, you got it right. The functionality I want to add is:

  • "Sticky" radio buttons.
  • Career choice.
  • Generation to a downloadable Excel file of multiple characters.

@jjaquinta
Copy link
Author

So I've got an update for sticky radio buttons. It's unclear to me if it added it to the existing pull request, or how I create a new pull request when this one hasn't been merged. If you are OK with the API additions, can you merge? Then it will be clear if I have to do another one for the sticky radio buttons.

@jjaquinta
Copy link
Author

Yeah, I did another update for career choice, and now I see conflicts. I'll hold off until we get the merge sequence sorted out.

@Golan2072
Copy link
Owner

Thanks!

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.

2 participants