Skip to content

Commit

Permalink
converted pages to content
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltester committed Mar 16, 2024
1 parent a7c6c6c commit 7bd01f5
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 198 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,13 @@ public void setup(final Challengers challengers,
// all html content that is parsed will be in content folder in resources so we don't need to add that in the url
String contentFolder = "content";
ClassLoader classLoader = getClass().getClassLoader();
InputStream inputStream = classLoader.getResourceAsStream(contentFolder + request.pathInfo() + ".md");

String contentPath = request.pathInfo();
if(contentPath.endsWith(".html")){
contentPath = contentPath.replace(".html", "");
}

InputStream inputStream = classLoader.getResourceAsStream(contentFolder + contentPath + ".md");
if(inputStream==null) {
pageNotFoundHtmlResponse(response, "");
}else{
Expand Down
41 changes: 41 additions & 0 deletions challenger/src/main/resources/content/learning.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
+++
title = Learning Utilities and Resources
+++

# Learning

## Mirror Mode

The Mirror mode is a good way to test out your tooling and see the details of your requests without using a proxy.

[Access the Mirror Mode Here](/mirror.html)

## Simulation Mode

The API has a simulation mode, it uses hard coded data in responses, but tries to mimic some conditions.

e.g. it expects you to post a specific JSON payload or XML payload and responds 'as if' you sent it. But... it also checks if you sent valid json, or valid xml, and responds based on your headers e.g. returning XML if you ask for it.

The simulator is stateless and does not track your usage, making it deterministic for multiple users.

The simulator is a good place to get started because it will respond nicely... unless you mess up the request syntax.

[Access the Simulator Here](/simulation.html)

## Automating and Testing a REST API Book

Alan Richardson wrote a book [Automating and Testing a REST API](https://www.eviltester.com/page/books/automating-testing-api-casestudy/)

Buying the book helps support this web site and application.

## Challenge Tutorials

All of the Challenges have solution tutorials that are available on the [EvilTester.com](https://eviltester.com) blog.

[Read the API Challenges Posts](https://www.eviltester.com/categories/api-challenges/)

## Open Source Workshops

All the material from Alan Richardson's REST API Training workshops have been released to Github.

[Find the Workshop Material Here](https://www.eviltester.com/post/rest-api-workshops/)
38 changes: 38 additions & 0 deletions challenger/src/main/resources/content/sponsors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
+++
title = Sponsors of API Challenges
+++

# Support and Sponsorship

This application is made available free to the public thanks to the generosity of our sponsors and supporters.

Their support helps:

- pay for hosting
- support ongoing development
- support creation of associated free training material

## Current Platinum sponsor

[![](https://www.eviltester.com/siteimages/evil_laugh_cleaned_transparent_h300.png)](https://eviltester.com)

- [EvilTester.com](https://eviltester.com) free online training and books related to Software Testing and Development. Also including The Evil Tester Show podcast, and YouTube video channel.

## Gold Sponsors

[![Bespoke Software Development Consultancy and Training](https://compendiumdev.co.uk/images/cut_down_logo_152_171_e.png)](https://compendiumdev.co.uk)

[Want to become a corporate sponsor of API Challenges?](https://eviltester.com/page/sponsor/corporate/)

## Patreon

Thank you to everyone who helps supports this project by being a part of our Patreon programme:

- [Patreon](https://patreon.com/eviltester)

## Historic Sponsors

Thank you to all previous sponsors:

- [EvilTester.com](https://eviltester.com)
- [Compendium Developments](https://compendiumdev.co.uk)
85 changes: 0 additions & 85 deletions challenger/src/main/resources/public/learning.html

This file was deleted.

112 changes: 0 additions & 112 deletions challenger/src/main/resources/public/sponsors.html

This file was deleted.

0 comments on commit 7bd01f5

Please sign in to comment.