Skip to content

Write a http-client tutorial #42

Closed
@milancurcic

Description

@milancurcic

Start from zero, and go through the steps in order:

  1. Start a Fortran application from scratch with fpm;
  2. Add http-client to dependencies;
  3. Make a few GET requests to get some data
  4. Parse and do something with the data
  5. Parse the headers
  6. Send some information with headers, perhaps an API token
  7. Use POST to send data? Maybe we can use a mock server to CRUD a resource with POST, GET, PUT/PATCH, and DELETE. (this could be the 2nd part of the tutorial, 1st being just getting and parsing the data).

Project ideas:

  1. For the first part of the tutorial (getting and parsing data), perhaps we can use api.github.com to query Fortran-lang repos and do some simple analysis of projects, e.g. list 10 most starred or most active Fortran-lang repositories and list them in descending order.
  2. For the second part of the tutorial (CRUD), maybe we can use a mock server that preserves resources to simulate a CRUD operation from Fortran.

Let's start discussing ideas for a tutorial but we don't have to rush to work on it immediately while the API is still in early flux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions