FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
rozek
rozekGDI_URLParserService
Remix of rozek/GDI_ServerTimeService
Public
Like
GDI_URLParserService
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
1
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
10/6/2024
README.md

This val is part of a series of examples to introduce "val.town" in my computer science course at Stuttgart University of Applied Sciences.

The idea is to motivate even first-semester students not to wait but to put their ideas into practice from the very beginning and implement web apps with frontend and backend.

It contains a very simple HTTP end point which extracts the URL path (after the val base URL) and any query/search parameters. In contrast to some other solutions (including the one suggested by Townie), this code takes into account that query parameters may appear multiple times in order to represent a list of values.

In order to use it, send a request similar to the following

https://rozek-gdi_urlparserservice.web.val.run/url/path?bool=true&number=3.14&string=text&list=false&list=2,72&list="hi!"

The code was created using Townie - with only a few small manual corrections.

This val is licensed under the MIT License.

Migrated from folder: GDI_Examples/GDI_URLParserService

Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.