placeholders not detected in path #1

Closed
opened 2021-01-18 17:21:06 +03:00 by vtolstov · 2 comments
vtolstov commented 2021-01-18 17:21:06 +03:00 (Migrated from github.com)

path param not handled

  1. check in method path
  2. find {} placeholders
  3. get from struct placeholder data, if field not found - return error.BadRequest
  4. switch on request method, if get - all other struct fields encode via https://github.com/google/go-querystring/blob/v1.0.0/query/encode.go
  5. if not get - check body element and fills url path, in body send only specified field
  6. do request

all logic handled in micro-client-http

path param not handled 1. check in method path 2. find {} placeholders 3. get from struct placeholder data, if field not found - return error.BadRequest 4. switch on request method, if get - all other struct fields encode via https://github.com/google/go-querystring/blob/v1.0.0/query/encode.go 5. if not get - check body element and fills url path, in body send only specified field 6. do request all logic handled in micro-client-http
vtolstov commented 2021-01-19 04:13:18 +03:00 (Migrated from github.com)

done, may be needs additional stuff to support slice/maps

done, may be needs additional stuff to support slice/maps
vtolstov commented 2021-03-24 15:51:06 +03:00 (Migrated from github.com)

close for now

close for now
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unistack-org/micro-client-http#1
No description provided.